ProftpdApplication

CVE-2026-42167

HIGH · 8.1 CVSS v3.1 Published 2026-04-28
Fix available
A fix is available. Upgrade to after 1.3.9b or later.
See remediation →
90/100
Remediation priority · Urgent
Public exploit Remotely reachable No privileges Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
mod_sql in ProFTPD before 1.3.9a allows remote attackers to execute arbitrary code via a username, in scenarios where there is logging of USER requests with an expansion such as %U, and the SQL backend allows commands (e.g., COPY TO PROGRAM).

In the news

Third-party coverage
Trending covered by 1 outlet this week · latest 6mo ago

Surfaced from public web coverage — external links open in a new tab.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

mod_sql in ProFTPD before 1.3.9a contains a command injection vulnerability where a remote attacker can execute arbitrary code through a specially crafted username. The exploit requires two conditions: logging of USER requests using %U expansion, and a SQL backend that permits command execution (such as COPY TO PROGRAM). The username is logged with expansion, allowing injection of malicious content that the SQL backend then executes.

MitigationUpgrade to ProFTPD 1.3.9a or later. Additionally, disable SQL command execution features in the backend if not required, and review logging configurations to avoid untrusted input expansion.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
ProftpdApplication
Affected:<= 1.3.9b

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check installed ProFTPD version
    Run `proftpd -v` or `proftpd --version` to determine the version number
    Affected if Version is 1.3.9b or earlier (1.3.9, 1.3.8, etc.)
  2. Verify mod_sql module is loaded
    Check the configuration file (typically /etc/proftpd/proftpd.conf or /etc/proftpd/modules.conf) for `LoadModule mod_sql.c` or check running process with `proftpd -l`
    Affected if mod_sql module is loaded and active
  3. Identify if SQL logging with %U expansion is configured
    Examine proftpd.conf and any included SQL log configuration files for LogFormat or SQLLog directives containing the %U variable, particularly for USER command logging
    Affected if Logging is configured using %U expansion for USER requests (e.g., LogFormat with %U in the format string used for authentication logging)
  4. Check SQL backend permissions for command execution
    Review SQL database configuration or mod_sql settings for permissions allowing dangerous commands such as COPY TO PROGRAM, INSERT, or other command execution functions. Check SQL user privileges in the database backend.
    Affected if SQL backend user has permissions to execute OS commands (e.g., COPY TO PROGRAM, pg_execute, or similar functions that allow shell command execution)

Environment is affected if running a vulnerable ProFTPD version with mod_sql enabled, %U expansion used in SQL logging for USER commands, AND SQL backend permissions allow command execution functions.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to a release after 1.3.9b
Vendor patch github.com →
Interim mitigation

Upgrade to ProFTPD 1.3.9a or later. Additionally, disable SQL command execution features in the backend if not required, and review logging configurations to avoid untrusted input expansion.

Recommended fix High confidence

ProFTPD 1.3.9a or later (e.g., 1.3.9b if not already on it)

  1. 1. Identify the currently installed ProFTPD version using 'proftpd -v' or checking your package manager.
  2. 2. Verify mod_sql is loaded by checking the ProFTPD configuration file (typically /etc/proftpd/proftpd.conf or /etc/proftpd.conf).
  3. 3. If mod_sql is in use, review the SQLLog directive in the configuration to check for %U expansion in USER logging, as this is part of the exploit condition.
  4. 4. Back up your current ProFTPD configuration files before making changes.
  5. 5. Upgrade ProFTPD to version 1.3.9a or later. For source installations, download from https://www.proftpd.org/ and compile with './configure && make && make install'. For package managers, use 'apt-get update && apt-get install proftpd' or 'yum update proftpd' depending on your OS.
  6. 6. After upgrading, verify the new version is running with 'proftpd -v'.
  7. 7. Test that FTP authentication and mod_sql functionality work correctly after the upgrade.
Caveat Verify that any custom modules or configuration directives compatible with 1.3.8 and earlier still function in 1.3.9a+; some configuration options may have changed

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Proftpd Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing3.0 h
  • Review / QA2.0 h
12.0 hours of engineering $2,130
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,408.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-42167 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-42167 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data