CVE-2024-9102
NoneCVSS
—
EPSS
0.4%
Published
Dec 19, 2024
CISA due date
—
Cloudanix analysis
A directory management tool can create spreadsheet files that run commands when opened, letting someone who controls the directory data potentially take over a user's computer.
- Exploitation
- Requires User Interaction
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
The application exports LDAP directory data to CSV without sanitizing special characters that spreadsheet applications interpret as formulas, enabling CSV formula injection.
Why it matters to the business
Users opening exported files in spreadsheet software may trigger unintended command execution or data exfiltration, increasing risk of follow-on compromise; the issue remains unaddressed by maintainers, requiring organizations to implement their own controls.
How an attack unfolds
An attacker with write access to the LDAP directory places formula payloads into attribute values; an administrator later exports the data to CSV via phpLDAPadmin; when the recipient opens the file in a spreadsheet product the formulas execute, potentially running commands or leaking data.
How to fix it
Apply the fix from commit ea17aadef46fd29850160987fe7740ceed1381ad in the leenooks/phpldapadmin repository; alternatively, implement output sanitization that prefixes cells containing formula characters with a single quote or neutral character before CSV generation.
How to confirm the fix worked
Confirm the presence of the commit ea17aadef46fd29850160987fe7740ceed1381ad or test export functionality with known formula-triggering input to verify cells are neutralized; periodically retest after any LDAP data changes.
Typical attack path
- Obtain LDAP write privileges or compromise an account that can modify directory entries
- Insert spreadsheet formula payloads into LDAP attributes
- Trigger or wait for an export operation through phpLDAPadmin CSV export feature
- Deliver the resulting CSV file to a target user who opens it in spreadsheet software
- Execute commands or exfiltrate data via the triggered formulas
How to detect it
Review exported CSV files for cells beginning with formula characters (=, +, -, @, |); inspect phpLDAPadmin logs or web server access logs for repeated or unusual export requests; correlate with LDAP modification events preceding exports.
What your security team should do
- Immediately review all LDAP data sources feeding phpLDAPadmin exports for untrusted input
- Apply the referenced commit or add pre-export sanitization controls
- Educate administrators on risks of opening exported CSV files in spreadsheet applications
- Monitor EPSS trend and any new exploit maturity signals for increased urgency
The record
phpLDAPadmin since at least version 1.2.0 through the latest version 1.2.6.7 allows users to export elements from the LDAP directory into a Comma-Separated Value (CSV) file, but it does not neutralize special elements that could be interpreted as a command when the file is opened by a spreadsheet product. Thus, this could lead to CSV Formula Injection. NOTE: This vulnerability will not be addressed, the maintainer's position is that it is not the intention of phpLDAPadmin to control what data Administrators can put in their LDAP database, nor filter it on export.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:12 | phpldapadmin | 0 | No fix |
| Debian:13 | phpldapadmin | 0 | No fix |
| Debian:14 | phpldapadmin | 0 | No fix |
| Ubuntu:16.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:18.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:20.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:22.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:24.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:24.10 | phpldapadmin | 0 | No fix |
| Ubuntu:25.04 | phpldapadmin | 0 | No fix |
| Ubuntu:25.10 | phpldapadmin | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | phpldapadmin | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | phpldapadmin | 0 | No fix |
Related vulnerabilities
- CVE-2024-9101 A reflected cross-site scripting (XSS) vulnerability in the 'Entry Chooser' of… Also affects phpldapadmin
- CVE-2017-11107 phpLDAPadmin through 1.2.3 has XSS in htdocs/entry_chooser.php via the form, element… Also affects phpldapadmin
- CVE-2011-4075 The masort function in lib/functions.php in phpLDAPadmin 1.2.x before 1.2.2 allows remote… Also affects phpldapadmin
- CVE-2005-2792 Directory traversal vulnerability in welcome.php in phpLDAPadmin 0.9.6 and 0.9.7 allows… Also affects phpldapadmin
- CVE-2026-89246 WWBN AVideo through commit c3edcc274c389816d434acadac07ee78eaf330c1 contains a CSV… CWE-1236
- CVE-2026-86257 wger before 2.6 fails to sanitize first_name and last_name fields in the gym member TSV… CWE-1236
- CVE-2026-9852 A CSV injection vulnerability exists in SYS600. CWE-1236
- CVE-2026-56652 Dool in versions up to 1.3.8 is vulnerable to a CSV injection vulnerability when… CWE-1236