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.
Published: 2026-05-05
Score: 8.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Tue, 05 May 2026 21:45:00 +0000

Type Values Removed Values Added
Title SQL Injection via Reverse DNS Lookup in ProFTPD

Tue, 05 May 2026 20:00:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-05-05T19:48:12.487Z

Reserved: 2026-05-05T19:41:03.998Z

Link: CVE-2026-44331

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-05-05T20:16:39.680

Modified: 2026-05-05T20:16:39.680

Link: CVE-2026-44331

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-05T21:30:05Z

Weaknesses