CVE-2026-42167

Published Apr 28, 2026 CVSS 3.1 · 8.1 High EPSS 7.4% KEV · Not listed
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).

Analysis

AI-generated

Technical impact

The vulnerability originates from the mod_sql component of ProFTPD versions older than 1.3.9a. An attacker can supply a specially crafted username in the FTP USER command. When the server logs USER requests using an expansion such as %U, the username value is passed directly to the SQL backend. If that backend accepts SQL commands such as COPY TO PROGRAM, the malicious input triggers execution of arbitrary shell commands on the server. This is a classic SQL injection (CWE‑89) that leads to remote code execution and can compromise confidentiality, integrity, and availability of the affected system.

Affected Systems

Vendor and product: ProFTPD, ProFTPD. The vulnerability exists in all releases prior to 1.3.9a. Users running the mod_sql module with any SQL backend that permits external command execution and with logging configured to expand the username field are exposed.

Risk and Exploitability

The CVSS score of 8.1 indicates a high severity risk. The EPSS score of 7% indicates a moderate to high likelihood of exploitation, though the vulnerability still requires specific configuration conditions (based on the description, it is inferred that mod_sql enabled, %U logging, and a permissive SQL backend). A remote attacker can exploit this via the FTP USER command, leveraging the vulnerable username handling. The vulnerability is not listed in CISA’s KEV catalog, but its remote nature and the straightforward input vector make it an attractive target for attackers. If the host without needing additional privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ProFTPD to version 1.3.10rc1 or later so that the mod_sql flaw is removed.
  • If an upgrade is not immediately possible, disable the mod_sql module or remove it from the configuration to eliminate the code path that processes the username input.
  • Reconfigure logging so that USER requests are not expanded with %U, or if logging must include the username, sanitize the value before it reaches the SQL backend.
  • Restrict the SQL backend to disallow commands such as COPY TO PROGRAM, ensuring that user input cannot trigger external command execution.

Generated by OpenCVE AI on August 26, 2026 at 14:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Remote Code Execution via SQL Injection in ProFTPD mod_sql
Type Values Removed Values Added
Title Remote Code Execution via SQL Injection in ProFTPD mod_sql
Type Values Removed Values Added
Title Remote Code Execution via Username in ProFTPD mod_sql
Type Values Removed Values Added
Title Remote Code Execution via Username in ProFTPD mod_sql
Type Values Removed Values Added
Title ProFTPD mod_sql SQL Injection Enables Remote Code Execution via USER Command
Type Values Removed Values Added
Title ProFTPD mod_sql SQL Injection Enables Remote Code Execution via USER Command
Type Values Removed Values Added
Title ProFTPD mod_sql SQL Injection with Username Logging Enables Remote Code Execution
Type Values Removed Values Added
Title ProFTPD mod_sql SQL Injection with Username Logging Enables Remote Code Execution
Type Values Removed Values Added
Title ProFTPD SQL Injection via USER Command in mod_sql Leading to Remote Code Execution
Type Values Removed Values Added
Title ProFTPD SQL Injection via USER Command in mod_sql Leading to Remote Code Execution
Type Values Removed Values Added
Title ProFTPD mod_sql Remote Code Execution via Username Injection
Type Values Removed Values Added
Description 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). 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).
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title ProFTPD mod_sql Remote Code Execution via Username Injection
Type Values Removed Values Added
Description 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).
First Time appeared Proftpd
Proftpd proftpd
Weaknesses CWE-89
CPEs cpe:2.3:a:proftpd:proftpd:*:*:*:*:*:*:*:*
Vendors & Products Proftpd
Proftpd proftpd
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
May 1, 2026, 6:22 PM
Reserved
Apr 24, 2026, 12:00 AM
Status
Analyzed
Published
Apr 28, 2026, 11:16 PM
Modified
Jul 24, 2026, 9:10 PM