CVE-2024-9102phpLDAPadmin: Improper Neutralization of Formula Elements
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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | phpldapadmin | Fix pending | UBUNTU-CVE-2024-9102 | |
| Ubuntu 26.04 | phpldapadmin | Under investigation | UBUNTU-CVE-2024-9102 | |
| Ubuntu 25.10 | phpldapadmin | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-9102 | |
| Ubuntu 24.04 | phpldapadmin | Under investigation | UBUNTU-CVE-2024-9102 | |
| Ubuntu 22.04 | phpldapadmin | Under investigation | UBUNTU-CVE-2024-9102 | |
| Ubuntu 20.04 | phpldapadmin | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-9102 | |
| Ubuntu 18.04 | phpldapadmin | Fix pending | UBUNTU-CVE-2024-9102 | |
| Ubuntu 16.04 | phpldapadmin | Fix pending | UBUNTU-CVE-2024-9102 | |
| Debian 14 | phpldapadmin | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2024-9102 | |
| Debian 13 | phpldapadmin | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2024-9102 | |
| Debian 12 | phpldapadmin | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2024-9102 |
What the vendor says
As published in the CVE record by NCSC.ch, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- phpLDAPadmin: affected: 1.2.0, 1.2.6.7
Solution: It is recommended that control characters at the beginning of character strings in cells are filtered before CSV export in order to avoid formula injection. As such functions always start with one of the following characters, these can be filtered specifically: - Equal (=) - Plus (+) - Minus (-) - At (@) - Tab (0x09) - Carriage return (0x0D) When filtering these special characters, care should be taken to ensure that not only the special characters in the first position are removed (for example in +-@=cmd|' /C calc.exe'!'A1'). Instead, all leading special characters up to the first legitimate character should be removed. As an alternative to the above-mentioned filtering, OWASP suggests also another sanitization method which includes three steps ( https://owasp.org/www-community/attacks/CSV_Injection ).
Workaround: It is advised that the Office settings in clients are configured in such a way that Dynamic Data Exchange (DDE) is disabled.
References
- https://www.redguard.ch/blog/2024/12/19/security-advisory-phpldapadmin/
- https://github.com/leenooks/phpLDAPadmin/commit/ea17aadef46fd29850160987fe7740ceed1381ad#diff-93b9f3e6d4c5bdacf469ea0ec74c1e9217ca6272da9be5a1bfd711f7da16f9e3R240
- https://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php5/1.2.0
- https://github.com/leenooks/phpLDAPadmin/issues/274#issuecomment-2586859072
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.