CVE-2026-42167 Details
Description
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).
A SQL injection vulnerability has been identified in ProFTPD versions prior to 1.3.10rc1, specifically within the mod_sql module. This vulnerability allows remote attackers to execute arbitrary SQL commands by exploiting a flaw in the SQL logging mechanism. The issue arises when the 'USER' request logging includes attacker-controlled variables, such as the username, and the SQL backend permits certain commands. Attackers can leverage this vulnerability to inject backdoor users into the FTP authentication database or execute arbitrary code on the database host, particularly with PostgreSQL or SQLite backends that support stacked queries.
Users are advised to upgrade to ProFTPD version 1.3.10 or later. For those unable to upgrade immediately, a temporary measure can be implemented by using a 'mod_rewrite' configuration to filter out 'USER' names containing suspicious characters.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ZeroPathAI/proftpd-CVE-2026-42167-poc | CISA-ADP | ExploitThird Party Advisory |
| http://www.openwall.com/lists/oss-security/2026/05/01/13 | CVE | Mailing List |
| http://www.openwall.com/lists/oss-security/2026/05/01/4 | CVE | Mailing List |
| https://github.com/proftpd/proftpd/issues/2052 | [email protected] | ExploitIssue TrackingPatch |
| https://github.com/ZeroPathAI/proftpd-CVE-2026-42167-poc | [email protected] | ExploitThird Party Advisory |
| https://www.openwall.com/lists/oss-security/2026/05/01/4 | [email protected] | Mailing List |
| https://zeropath.com/blog/proftpd-cve-2026-42167-auth-bypass-privesc-rce | [email protected] | ExploitPress/Media CoverageThird Party Advisory |
| http://www.proftpd.org/docs/RELEASE_NOTES-1.3.10rc1 | [email protected] | Release Notes |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| proftpd proftpd | <= 1.3.9b |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jul 8, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 1, 2026 | CVE Modified | CVE |
| May 1, 2026 | CVE Modified | [email protected] |
| May 1, 2026 | CVE Modified | CVE |
| Apr 29, 2026 | CVE Modified | CISA-ADP |
| Apr 28, 2026 | New CVE Received | [email protected] |