CVE-2026-44331

SQL Injection via Reverse DNS Lookup in ProFTPD

Published May 5, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A flaw in ProFTPD version 1.3.9a and earlier allows a remote attacker to inject arbitrary SQL commands when Reverse DNS lookups are enabled, as the hostname supplied during a lookup is passed unescaped into SQL statements within sqltab_fetch_clients_cb(). This can lead to unauthorized data disclosure, modification, or deletion, depending on the database user's privileges.

Affected Systems

The vulnerability affects ProFTPD deployments that use the mod_wrap2_sql module, run on version 1.3.9a or earlier, and have the configuration directive 'UseReverseDNS on'. Any instance that has not applied the commit 766622456440fbca33abd7927c523673a11d1ed1 is susceptible.

Risk and Exploitability

With a CVSS score of 8.1 the issue is considered high severity; the EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is remote, requiring an attacker to craft a domain name containing malicious SQL and trigger a reverse DNS lookup performed by the FTP server. Although DNS name character restrictions may limit payload length, an attacker can still inject effective SQL statements if the database user has sufficient privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the patch provided by commit 766622456440fbca33abd7927c523673a11d1ed1 or upgrade ProFTPD to a version that includes this fix.
  • Disable Reverse DNS lookups by setting 'UseReverseDNS off' if they are not required for your environment.
  • Configure ProFTPD to use a database account with the least privileges necessary, such as read‑only access, to mitigate the impact of any potential injection.

Generated by OpenCVE AI on May 5, 2026 at 21:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Title SQL Injection via Reverse DNS Lookup in ProFTPD
Type Values Removed Values Added
Description 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.
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 6, 2026, 3:25 PM
Reserved
May 5, 2026, 7:41 PM
Status
Awaiting Analysis
Published
May 5, 2026, 8:16 PM
Modified
Jul 24, 2026, 8:10 PM