Skip to main content

ProFTPD CVE-2026-42167

HIGH
SQL Injection (CWE-89)
2026-04-28 mitre
8.1
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to exposed ProFTPD service
  2. Delivery
    Send USER command with SQL payload in username
  3. Exploit
    Injection interpolated via %U logging
  4. Execution
    COPY TO PROGRAM executes shell command
  5. Impact
    Arbitrary code execution as DB account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires all of the following concrete conditions: ProFTPD before 1.3.10rc1 running mod_sql; a logging configuration that records USER requests using a username expansion such as %U (so the raw pre-auth username is placed into a SQL query); and a SQL backend that permits command execution, with the description explicitly citing PostgreSQL's COPY TO PROGRAM as the escalation primitive. The username is accepted pre-authentication (PR:N), so no valid credentials are needed. Limiting factors that reduce real-world exposure: this is NOT the default configuration (USER-request %U logging must be enabled), the backend database role must be privileged enough to run command sinks like COPY TO PROGRAM, and CVSS AC:H plus SSVC Automatable=no reflect that these preconditions make exploitation non-trivial and non-mass-scannable. Where these conditions are absent, the flaw is not exploitable to RCE.

Impact

Signals are mixed and should be weighed together rather than by CVSS alone. CVSS 8.1 (AV:N/AC:H/PR:N/UI:N/C:H/I:H/A:H) reflects unauthenticated network reach with total impact but high attack complexity - the AC:H is meaningful here because exploitation is gated on non-default configuration (USER logging with %U) AND a permissive SQL backend. SSVC aligns with this: exploitation status 'poc' (not active), Automatable 'no' (consistent with the configuration dependency), Technical Impact 'total'. EPSS is low (0.24%, 46th percentile) and there is no KEV listing, so despite the availability of public POC code, real-world mass exploitation is not indicated - risk is realistic but conditional and likely targeted rather than opportunistic. Bottom line: this is a genuine RCE priority for any environment matching the vulnerable configuration, but a lower priority for the majority of ProFTPD installs that do not log USER via %U or do not use a command-capable SQL backend. Verify your own logging directives and SQL backend privileges before assuming exposure.

Exploit ScenarioDerived

An attacker connects to an internet-exposed ProFTPD server and sends a USER command whose username contains crafted SQL. On a server that logs USER requests with a %U expansion into a PostgreSQL backend, the payload injects a COPY TO PROGRAM statement that executes shell commands under the database account, yielding remote code execution before authentication. A public POC (github.com/ZeroPathAI/proftpd-CVE-2026-42167-poc) demonstrates the chain, though the AC:H complexity means the target must match the vulnerable logging and backend configuration.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

SQL injection escalating to remote code execution in ProFTPD's mod_sql before 1.3.10rc1 lets remote attackers inject SQL through the FTP USER (username) value, which is pre-authentication user-controlled data. Exploitation requires a deployment that logs USER requests via an expansion like %U and a SQL backend that permits command execution primitives (e.g. PostgreSQL COPY TO PROGRAM), turning the injection into arbitrary command execution on the host. A public proof-of-concept exists (ZeroPathAI), but there is no public exploit identified as actively used in the wild and it is not on CISA KEV; EPSS is low at 0.24%.

RemediationAI

Apply the vendor fix by upgrading to ProFTPD 1.3.10rc1 or later (Vendor-released patch: 1.3.10rc1), per http://www.proftpd.org/docs/RELEASE_NOTES-1.3.10rc1. If immediate upgrade is not possible, remove or alter mod_sql logging directives that expand the raw username (avoid %U in SQLLog/SQLNamedQuery INSERT logging paths) so attacker-controlled usernames are not interpolated into SQL. As a defense-in-depth measure, revoke command-execution capability from the database role ProFTPD uses - for PostgreSQL, ensure the login role is not a superuser and cannot run COPY TO PROGRAM, which breaks the RCE escalation even if injection occurs (trade-off: none for FTP function, since ProFTPD does not need superuser). Restricting network exposure of the FTP service to trusted ranges further reduces reachable attack surface. Reference the upstream issue https://github.com/proftpd/proftpd/issues/2052 and the oss-security disclosure at http://www.openwall.com/lists/oss-security/2026/05/01/4 for details.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ProFTPD is a widely deployed open-source FTP daemon, and mod_sql is its module for authenticating users and logging events against a SQL backend (MySQL, PostgreSQL, SQLite via mod_sql_* sub-modules). The root cause is CWE-89 (improper neutralization of SQL syntax): when the server is configured to log USER requests using a variable expansion such as %U, the attacker-supplied username is interpolated into a SQL statement without adequate sanitization. Because the username is accepted before authentication completes, the injection is reachable by any remote client. The escalation from data-layer injection to RCE depends on the backend exposing a command-execution sink - the canonical example being PostgreSQL's COPY ... TO PROGRAM, which runs shell commands under the database service account. The CPE cpe:2.3:a:proftpd:proftpd:*:*:*:*:*:*:*:* confirms the affected component is ProFTPD itself (all versions prior to the fix).

Know when Proftpd gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

Pre-auth username reaches the injection so PR:N/AV:N; AC:H because RCE needs non-default %U logging plus a command-capable SQL backend; total impact gives C/I/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
PoC Detected
May 01, 2026 - 19:16 vuln.today
Public exploit code
CVE Published
Apr 28, 2026 - 00:00 nvd
HIGH 8.1

DescriptionCVE.org

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).

Executive ViewAI

Why It Matters

Unpatched ProFTPD FTP servers are exposed to a critical vulnerability that allows remote attackers to seize system control and execute arbitrary commands without any login credentials required. This vulnerability specifically threatens organizations that rely on FTP for business operations and use SQL-based audit logging-a combination that opens a direct path to ransomware, data theft, and supply chain compromise. With patch availability confirmed, the remediation window is narrow and should be treated as a critical priority.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 54% exploitable
Prevalence
High
one of the most widely deployed open-source FTP servers on Linux
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment POC (1) Vendor Exploit-DB GitHub VulDB Nuclei

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

60
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)CVE.org

cpe:2.3:a:proftpd:proftpd:*:*:*:*:*:*:*:*
CVE-2015-3306 CRITICAL POC
10.0 May 18

The mod_copy module in ProFTPD 1.3.5 allows remote attackers to read and write to arbitrary files via the site cpfr and

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2019-12815 CRITICAL POC
9.8 Jul 19

An arbitrary file copy vulnerability in mod_copy in ProFTPD up to 1.3.5b allows for remote code execution and informatio

CVE-2026-44331 HIGH POC
8.1 May 05

SQL injection in ProFTPD 1.3.9a and earlier allows remote attackers to execute arbitrary SQL commands when the 'UseRever

CVE-2023-51713 HIGH POC
7.5 Dec 22

make_ftp_cmd in main.c in ProFTPD before 1.3.8a has a one-byte out-of-bounds read, and daemon crash, because of mishandl

CVE-2019-18217 HIGH POC
7.5 Oct 21

ProFTPD before 1.3.6b and 1.3.7rc before 1.3.7rc2 allows remote unauthenticated denial-of-service due to incorrect handl

CVE-2013-4359 MEDIUM POC
5.0 Sep 30

Integer overflow in kbdint.c in mod_sftp in ProFTPD 1.3.4d and 1.3.5r3 allows remote attackers to cause a denial of serv

CVE-2020-9273 HIGH
8.8 Feb 20

In ProFTPD 1.3.7, it is possible to corrupt the memory pool by interrupting the data transfer channel. Rated high severi

CVE-2026-63090 HIGH
8.7 Jul 20

Arbitrary code execution in ProFTPD's mod_sftp module (versions before 1.3.9c and 1.3.10rc3) allows authenticated low-pr

CVE-2026-35025 HIGH
8.6 Jun 24

Directory ACL bypass in ProFTPD (through 1.3.9b and 1.3.10rc2) lets authenticated FTP users reach files inside DenyAll-p

CVE-2026-53994 HIGH
7.7 Jul 18

Authenticated remote denial of service in ProFTPD's mod_sftp module allows any user with valid SFTP credentials to crash

CVE-2016-3125 HIGH
7.5 Apr 05

The mod_tls module in ProFTPD before 1.3.5b and 1.3.6 before 1.3.6rc2 does not properly handle the TLSDHParamFile direct

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Server Applications 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise Module for Server Applications 15 SP6 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy