Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| phpLDAPadmin | phpLDAPadmin | 1.2.1, 1.2.6.7 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | phpldapadmin | 1.2.6.7-4 | — |
| Debian 13 | phpldapadmin | 1.2.6.7-4 | — |
| Debian 12 | phpldapadmin | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | phpldapadmin | No fix yet | — |
| Ubuntu 26.04 LTS | phpldapadmin | No fix yet | — |
| Ubuntu 25.10 | phpldapadmin | No fix yet | — |
| Ubuntu 24.04 LTS | phpldapadmin | No fix yet | — |
| Ubuntu 22.04 LTS | phpldapadmin | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | phpldapadmin | No fix yet | — |
| Ubuntu 18.04 LTS | phpldapadmin | No fix yet | — |
| Ubuntu 16.04 LTS | phpldapadmin | No fix yet | — |
References
- https://www.redguard.ch/blog/2024/12/19/security-advisory-phpldapadmin/ third-party-advisory
- 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/