CVE-2024-9101phpLDAPadmin: Reflected Cross-Site Scripting in entry_chooser.php
A reflected cross-site scripting (XSS) vulnerability in the 'Entry Chooser' of phpLDAPadmin (version 1.2.1 through the latest version, 1.2.6.7) allows attackers to execute arbitrary JavaScript in the user's browser via the 'element' parameter, which is unsafely passed to the JavaScript 'eval' function. However, exploitation is limited to specific conditions where 'opener' is correctly set.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have 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-9101 | |
| Ubuntu 26.04 | phpldapadmin | Under investigation | UBUNTU-CVE-2024-9101 | |
| Ubuntu 25.10 | phpldapadmin | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-9101 | |
| Ubuntu 24.04 | phpldapadmin | Under investigation | UBUNTU-CVE-2024-9101 | |
| Ubuntu 22.04 | phpldapadmin | Under investigation | UBUNTU-CVE-2024-9101 | |
| Ubuntu 20.04 | phpldapadmin | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-9101 | |
| Ubuntu 18.04 | phpldapadmin | Fix pending | UBUNTU-CVE-2024-9101 | |
| Ubuntu 16.04 | phpldapadmin | Fix pending | UBUNTU-CVE-2024-9101 | |
| Debian 14 | phpldapadmin | Fixed | 1.2.6.7-4 | DEBIAN-CVE-2024-9101 |
| Debian 13 | phpldapadmin | Fixed | 1.2.6.7-4 | DEBIAN-CVE-2024-9101 |
| Debian 12 | phpldapadmin | Fix pending | DEBIAN-CVE-2024-9101 |
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.1, 1.2.6.7
Solution: It is recommended to avoid using the eval() function, especially in combination with user-supplied input. Instead of using eval(), it is advised to access the DOM element directly in a safe manner.
References
- https://www.redguard.ch/blog/2024/12/19/security-advisory-phpldapadmin/
- https://github.com/leenooks/phpLDAPadmin/commit/f713afc8d164169516c91b0988531f2accb9bce6#diff-c2d6d7678ada004e704ee055169395a58227aaec86a6f75fa74ca18ff49bca44R27
- https://github.com/leenooks/phpLDAPadmin/blob/master/htdocs/entry_chooser.php
- https://sourceforge.net/projects/phpldapadmin/files/phpldapadmin-php5/1.2.1/
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.