CVE-2026-42167
Received Received - Intake
Remote Code Execution via SQL Injection in ProFTPD mod_sql

Publication date: 2026-04-28

Last updated on: 2026-05-01

Assigner: MITRE

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).
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-28
Last Modified
2026-05-01
Generated
2026-05-07
AI Q&A
2026-04-29
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
proftpd mod_sql *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability impact me? :

The vulnerability can have severe impacts including unauthorized remote code execution. An attacker can run arbitrary code on the affected system without any privileges or user interaction, potentially leading to full system compromise.


Can you explain this vulnerability to me?

This vulnerability exists in the mod_sql module of ProFTPD versions before 1.3.10rc1. It allows remote attackers to execute arbitrary code by exploiting the way usernames are logged when USER requests are processed. Specifically, if the logging configuration includes an expansion such as %U and the SQL backend supports commands like COPY TO PROGRAM, an attacker can inject malicious commands via the username field.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart