CVE-2026-42167
mod_sql in ProFTPD before 1.3.10rc1 allows remote attackers to execute arbitrary code via a...
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).
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.1
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).
- Record
CVE-2026-42167- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
EUVDEUVD-2026-26157
8.1
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).
- Record
EUVD-2026-26157- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-q25r-7mmc-3mcj
8.1
mod_sql in ProFTPD before 1.3.10rc1 allows remote attackers to execute arbitrary code via a...
mod_sql in ProFTPD before 1.3.10rc1 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).
- Record
GHSA-q25r-7mmc-3mcj- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
NVD
8.1
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).
- Record
CVE-2026-42167- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
OSVALPINE-CVE-2026-42167
8.1
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).
- Record
ALPINE-CVE-2026-42167- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSV
8.1
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).
- Record
CVE-2026-42167- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-89
- Updated
- 2026-11-02
Show 9 moreShow less
OSVDEBIAN-CVE-2026-42167
8.1
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).
- Record
DEBIAN-CVE-2026-42167- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-2158
8.1
proftpd security update
ProFTPD is an enhanced FTP server with a focus toward simplicity, security, and ease of configuration. It features a very Apache-like configuration syntax, and a highly customizable server infrastructure, including support for multiple 'virtual' FTP servers, anonymous FTP, and permission-based directory visibility. This package defaults to the standalone behavior of ProFTPD, but all the needed scripts to have it run by systemd instead are included.
Security Fix(es):
mod_sql in ProFTPD before 1.3.10rc1 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).(CVE-2026-42167)
- Record
OESA-2026-2158- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-2159
8.1
proftpd security update
ProFTPD is an enhanced FTP server with a focus toward simplicity, security, and ease of configuration. It features a very Apache-like configuration syntax, and a highly customizable server infrastructure, including support for multiple 'virtual' FTP servers, anonymous FTP, and permission-based directory visibility. This package defaults to the standalone behavior of ProFTPD, but all the needed scripts to have it run by systemd instead are included.
Security Fix(es):
mod_sql in ProFTPD before 1.3.10rc1 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).(CVE-2026-42167)
- Record
OESA-2026-2159- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-2264
8.1
proftpd security update
ProFTPD is an enhanced FTP server with a focus toward simplicity, security, and ease of configuration. It features a very Apache-like configuration syntax, and a highly customizable server infrastructure, including support for multiple 'virtual' FTP servers, anonymous FTP, and permission-based directory visibility. This package defaults to the standalone behavior of ProFTPD, but all the needed scripts to have it run by systemd instead are included.
Security Fix(es):
mod_sql in ProFTPD before 1.3.10rc1 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).(CVE-2026-42167)
In ProFTPD through 1.3.9a before 7666224, a SQL injection vulnerability in sqltab_fetch_clients_cb() in contrib/mod_wrap2_sql.c allows a remote attacker to inject arbitrary SQL commands via a crafted domain name that is accessed in a reverse DNS lookup. When "UseReverseDNS on" is enabled, the attacker-supplied hostname is passed unescaped into SQL queries. The character restrictions of DNS names may affect exploitability.(CVE-2026-44331)
- Record
OESA-2026-2264- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-2266
8.1
proftpd security update
ProFTPD is an enhanced FTP server with a focus toward simplicity, security, and ease of configuration. It features a very Apache-like configuration syntax, and a highly customizable server infrastructure, including support for multiple 'virtual' FTP servers, anonymous FTP, and permission-based directory visibility. This package defaults to the standalone behavior of ProFTPD, but all the needed scripts to have it run by systemd instead are included.
Security Fix(es):
mod_sql in ProFTPD before 1.3.10rc1 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).(CVE-2026-42167)
In ProFTPD through 1.3.9a before 7666224, a SQL injection vulnerability in sqltab_fetch_clients_cb() in contrib/mod_wrap2_sql.c allows a remote attacker to inject arbitrary SQL commands via a crafted domain name that is accessed in a reverse DNS lookup. When "UseReverseDNS on" is enabled, the attacker-supplied hostname is passed unescaped into SQL queries. The character restrictions of DNS names may affect exploitability.(CVE-2026-44331)
- Record
OESA-2026-2266- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2026-2760
8.1
proftpd security update
ProFTPD is an enhanced FTP server with a focus toward simplicity, security, and ease of configuration. It features a very Apache-like configuration syntax, and a highly customizable server infrastructure, including support for multiple 'virtual' FTP servers, anonymous FTP, and permission-based directory visibility. This package defaults to the standalone behavior of ProFTPD, but all the needed scripts to have it run by systemd instead are included.
Security Fix(es):
mod_sql in ProFTPD before 1.3.10rc1 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).(CVE-2026-42167)
- Record
OESA-2026-2760- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-42167
8.1
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).
- Record
UBUNTU-CVE-2026-42167- CVSS 3.1
- 8.1 High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2026-0200 No score
Updated proftpd packages fix security vulnerabilities
CVE-2026-42167 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). CVE-2026-44331 a SQL injection vulnerability in sqltab_fetch_clients_cb() in contrib/mod_wrap2_sql.c allows a remote attacker to inject arbitrary SQL commands via a crafted domain name that is accessed in a reverse DNS lookup. When "UseReverseDNS on" is enabled, the attacker-supplied hostname is passed unescaped into SQL queries. The character restrictions of DNS names may affect
- Record
MGASA-2026-0200- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11352-1 No score
proftpd-1.3.9c-1.1 on GA media
These are all security issues fixed in the proftpd-1.3.9c-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11352-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
proftpdAlpine:v3.22 |
before 1.3.9a-r0 | 1.3.9a-r0 |
proftpd-dfsgDebian:12 |
before 1.3.8+dfsg-4+deb12u5, plus listed versions 1.3.8+dfsg-41.3.8+dfsg-4+deb12u11.3.8+dfsg-4+deb12u21.3.8+dfsg-4+deb12u31.3.8+dfsg-4+deb12u4 |
1.3.8+dfsg-4+deb12u5 |
proftpd-dfsgDebian:13 |
before 1.3.8.c+dfsg-4+deb13u2, plus listed versions 1.3.8.c+dfsg-41.3.8.c+dfsg-4+deb13u1 |
1.3.8.c+dfsg-4+deb13u2 |
proftpd-dfsgDebian:14 |
before 1.3.9~dfsg-5, plus listed versions 1.3.8.c+dfsg-41.3.9~dfsg-11.3.9~dfsg-21.3.9~dfsg-31.3.9~dfsg-4 |
1.3.9~dfsg-5 |
proftpdMageia:9 From an advisory covering 2 CVEs |
before 1.3.8c-1.2.mga9 | 1.3.8c-1.2.mga9 |
proftpdopenEuler:24.03-LTS-SP3 |
before 1.3.9a-1.oe2403sp3 | 1.3.9a-1.oe2403sp3 |
proftpdopenEuler:24.03-LTS |
before 1.3.9a-1.oe2403 | 1.3.9a-1.oe2403 |
proftpdopenEuler:22.03-LTS-SP4 From an advisory covering 2 CVEs |
before 1.3.9a-2.oe2203sp4 | 1.3.9a-2.oe2203sp4 |
proftpdopenEuler:24.03-LTS-SP1 From an advisory covering 2 CVEs |
before 1.3.9a-2.oe2403sp1 | 1.3.9a-2.oe2403sp1 |
proftpdopenEuler:20.03-LTS-SP4 |
before 1.3.8b-6.oe2003sp4 | 1.3.8b-6.oe2003sp4 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
proftpd-dfsgUbuntu:16.04:LTS |
All versions, plus listed versions 1.3.5-21.3.5a-11.3.5a-1build11.3.5a-1ubuntu0.1 |
None known |
proftpd-dfsgUbuntu:18.04:LTS |
All versions, plus listed versions 1.3.5d-11.3.5e-1build1 |
None known |
proftpd-dfsgUbuntu:20.04:LTS |
All versions, plus listed versions 1.3.6-6build21.3.6c-11.3.6c-21.3.6c-2ubuntu0.1 |
None known |
proftpd-dfsgUbuntu:22.04:LTS |
All versions, plus listed versions 1.3.7b+dfsg-11.3.7c+dfsg-1build11.3.7c+dfsg-1ubuntu0.1 |
None known |
proftpd-dfsgUbuntu:24.04:LTS |
All versions, plus listed versions 1.3.8+dfsg-81.3.8.a+dfsg-11.3.8.b+dfsg-11.3.8.b+dfsg-1build11.3.8.b+dfsg-1build21.3.8.b+dfsg-1build31.3.8.b+dfsg-1ubuntu0.1 |
None known |
proftpd-dfsgUbuntu:25.10 |
All versions, plus listed versions 1.3.8.c+dfsg-21.3.8.c+dfsg-41.3.9~dfsg-3 |
None known |
proftpd-dfsgUbuntu:26.10 |
All versions, plus listed versions 1.3.9~dfsg-41.3.9b~dfsg-11.3.9d~dfsg-1 |
None known |
proftpd-dfsgUbuntu:26.04:LTS |
All versions, plus listed versions 1.3.9~dfsg-31.3.9~dfsg-4 |
None known |
proftpdopenSUSE:Tumbleweed |
before 1.3.9c-1.1 | 1.3.9c-1.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | ZeroPathAI/proftpd-CVE-2026-42167-poc | 2026-04-28 |
| PoC in GitHub | dinosn/proftpd-CVE-2026-42167-analysis | 2026-04-29 |
| PoC in GitHub | Sl4cK0TH/CVE-2026-42167-PoC | 2026-05-01 |
| PoC in GitHub | efeanilarslan/CVE-2026-42167-Exploit | 2026-05-02 |
| PoC in GitHub | jimmexploit/CVE-2026-42167-PoC | 2026-05-02 |
| PoC in GitHub | kaleth4/CVE-2026-42167 | 2026-05-04 |
| Exploit-DB | CVE-2026-42167 - ProFTPD mod_sql post-authentication SQLi - RCE | 2026-08-25 |
| Nuclei | ProFTPD mod_sql - Preauth User Backdoor |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected | OSV | |
| affected, aliases, exploits, references | OSV | |
| first indexed | CVE List, EUVD, Exploit-DB, GitHub Advisories, Nuclei, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-42167 is a high vulnerability (CVSS 8.1) in Proftpd, published April 28, 2026. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 7.39%, the 94th percentile. Fixed in proftpd 1.3.9a-r0.
References
proftpd.org/docs/RELEASE_NOTES-1.3.10rc1
github.com/proftpd/proftpd/issues/2052
zeropath.com/blog/proftpd-cve-2026-42167-auth-bypass-privesc-rce
github.com/ZeroPathAI/proftpd-CVE-2026-42167-poc
openwall.com/lists/oss-security/2026/05/01/4
openwall.com/lists/oss-security/2026/05/01/13
Show 17 moreShow less
nvd.nist.gov/vuln/detail/CVE-2026-42167
github.com/advisories/GHSA-q25r-7mmc-3mcj
security.alpinelinux.org/vuln/CVE-2026-42167
github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42167.json
security-tracker.debian.org/tracker/CVE-2026-42167
advisories.mageia.org/MGASA-2026-0200.html
bugs.mageia.org/show_bug.cgi?id=35445
lists.fedoraproject.org/archives/list/[email protected]/message/BEM6GPOFEILUHBP4D2KWIUHVXL5546WE
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2158
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2159
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2264
nvd.nist.gov/vuln/detail/CVE-2026-44331
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2266
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2026-2760
ubuntu.com/security/CVE-2026-42167
cve.org/CVERecord?id=CVE-2026-42167
suse.com/security/cve/CVE-2026-42167