CVE-2024-48651
High · 7.5CVSS
7.5
EPSS
2.2%
Published
Nov 29, 2024
CISA due date
—
Cloudanix analysis
A flaw in popular FTP server software can let logged-in users reach files they are not supposed to see, raising the chance that private information gets exposed.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Supplemental group inheritance in ProFTPD fails to incorporate groups from mod_sql, allowing authenticated users to access resources owned by GID 0.
Why it matters to the business
Attackers can read or interact with files and directories restricted to the root group, increasing the risk of sensitive data exposure on FTP servers that use SQL-based authentication.
How an attack unfolds
An attacker connects to a ProFTPD server using mod_sql for user authentication, logs in with valid credentials, and leverages the missing supplemental group population to inherit GID 0 access, bypassing intended authorization controls. The issue is weaponized in public exploits targeting the pre-cec01cc code.
How to fix it
Upgrade ProFTPD to the commit cec01cc0a2523453e5da5a486bc6d977c3768db1 or a later release that restores proper supplemental group handling from mod_sql.
How to confirm the fix worked
Confirm the running binary or source tree contains commit cec01cc0a2523453e5da5a486bc6d977c3768db1, then test that SQL-authenticated sessions receive the expected supplemental groups and cannot access GID 0 resources unintentionally.
Typical attack path
- Identify a ProFTPD instance running a version prior to commit cec01cc that uses mod_sql
- Authenticate to the server using SQL-stored credentials
- Request access to files or directories whose permissions rely on GID 0 membership
- Obtain unauthorized read access due to incorrect supplemental group inheritance
How to detect it
Review ProFTPD access logs and SQL authentication events for sessions that accessed paths normally restricted to GID 0; correlate with mod_sql query logs to identify unexpected group inheritance.
What your security team should do
- Apply the fixed commit immediately on all internet-facing ProFTPD deployments
- Audit mod_sql configurations for any reliance on GID 0 group membership
- Monitor EPSS trend and exploit availability for prioritization of remaining instances
- Replace mod_sql with alternative authentication modules if group inheritance cannot be validated
The record
In ProFTPD through 1.3.8b before cec01cc, supplemental group inheritance grants unintended access to GID 0 because of the lack of supplemental groups from mod_sql.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | proftpd-dfsg | 0 | 1.3.7a+dfsg-12+deb11u3 |
| Debian:12 | proftpd-dfsg | 0 | 1.3.8+dfsg-4+deb12u4 |
| Debian:13 | proftpd-dfsg | 0 | 1.3.8.b+dfsg-4 |
| Mageia:9 | proftpd | 0 | 1.3.8c-1.mga9 |
| SUSE:Linux Enterprise Module for Server Applications 15 SP6 | proftpd | 0 | 1.3.8b-150600.13.6.1 |
| Ubuntu:20.04:LTS | proftpd-dfsg | 0 | 1.3.6c-2ubuntu0.1 |
| Ubuntu:22.04:LTS | proftpd-dfsg | 0 | No fix |
| Ubuntu:22.04:LTS | proftpd-dfsg | 0 | 1.3.7c+dfsg-1ubuntu0.1 |
| Ubuntu:24.04:LTS | proftpd-dfsg | 0 | No fix |
| Ubuntu:24.04:LTS | proftpd-dfsg | 0 | 1.3.8.b+dfsg-1ubuntu0.1 |
| Ubuntu:24.10 | proftpd-dfsg | 0 | No fix |
| openSUSE:Leap 15.6 | proftpd | 0 | 1.3.8b-150600.13.6.1 |
| openSUSE:Tumbleweed | proftpd | 0 | 1.3.8c-1.1 |
Related vulnerabilities
- CVE-2015-3306 The mod_copy module in ProFTPD 1.3.5 allows remote attackers to read and write to… Also affects proftpd-dfsg
- CVE-2011-4130 Use-after-free vulnerability in the Response API in ProFTPD before 1.3.3g allows remote… Also affects proftpd-dfsg
- CVE-2011-1137 Integer overflow in the mod_sftp (aka SFTP) module in ProFTPD 1.3.3d and earlier allows… Also affects proftpd-dfsg
- CVE-2010-4652 Heap-based buffer overflow in the sql_prepare_where function (contrib/mod_sql.c) in… Also affects proftpd-dfsg
- CVE-2010-4221 Multiple stack-based buffer overflows in the pr_netio_telnet_gets function in netio.c in… Also affects proftpd-dfsg
- CVE-2009-0543 ProFTPD Server 1.3.1, with NLS support enabled, allows remote attackers to bypass SQL… Also affects proftpd-dfsg
- CVE-2009-0542 SQL injection vulnerability in ProFTPD Server 1.3.1 through 1.3.2rc2 allows remote… Also affects proftpd-dfsg
- CVE-2007-2165 The Auth API in ProFTPD before 20070417, when multiple simultaneous authentication… Also affects proftpd-dfsg