Cloudanix VulnDB

CVE-2024-9102

None

CVSS

—

EPSS

0.4%

Published

Dec 19, 2024

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

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

  1. Obtain LDAP write privileges or compromise an account that can modify directory entries
  2. Insert spreadsheet formula payloads into LDAP attributes
  3. Trigger or wait for an export operation through phpLDAPadmin CSV export feature
  4. Deliver the resulting CSV file to a target user who opens it in spreadsheet software
  5. 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