CVE-2026-42167
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 · uneditedmod_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 coverageSurfaced 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 confidencemod_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.
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<= 1.3.9bCVSS 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 checksWork through these to decide whether this CVE applies to you.
-
Check installed ProFTPD versionRun `proftpd -v` or `proftpd --version` to determine the version numberAffected if Version is 1.3.9b or earlier (1.3.9, 1.3.8, etc.)
-
Verify mod_sql module is loadedCheck 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
-
Identify if SQL logging with %U expansion is configuredExamine proftpd.conf and any included SQL log configuration files for LogFormat or SQLLog directives containing the %U variable, particularly for USER command loggingAffected if Logging is configured using %U expansion for USER requests (e.g., LogFormat with %U in the format string used for authentication logging)
-
Check SQL backend permissions for command executionReview 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.
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 · scopedUpgrade 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.
ProFTPD 1.3.9a or later (e.g., 1.3.9b if not already on it)
- 1. Identify the currently installed ProFTPD version using 'proftpd -v' or checking your package manager.
- 2. Verify mod_sql is loaded by checking the ProFTPD configuration file (typically /etc/proftpd/proftpd.conf or /etc/proftpd.conf).
- 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. Back up your current ProFTPD configuration files before making changes.
- 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. After upgrading, verify the new version is running with 'proftpd -v'.
- 7. Test that FTP authentication and mod_sql functionality work correctly after the upgrade.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-42167 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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