CVE-2024-9102: phpLDAPadmin: 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Before CSV export, sanitize cell strings by removing all leading special/control characters up to the first legitimate character—including @, carriage return (0x0D), =, -, +, and tab (0x09)—rather than removing only the first character, to prevent CSV formula injection.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-9102?
The severity of CVE-2024-9102 is considered to be moderate due to potential command execution risks when exporting CSV files.
How do I fix CVE-2024-9102?
To fix CVE-2024-9102, upgrade phpLDAPadmin to version 1.2.6.8 or later, which addresses the vulnerability.
Who is affected by CVE-2024-9102?
CVE-2024-9102 affects all versions of phpLDAPadmin from 1.2.0 to 1.2.6.7.
What types of attacks are possible due to CVE-2024-9102?
Due to CVE-2024-9102, attackers can exploit the vulnerability to execute commands on a user's system via malicious CSV files.
Is there a workaround for CVE-2024-9102?
A temporary workaround for CVE-2024-9102 is to sanitize exported data to ensure no special characters that could be interpreted as commands are included.