Description
Cross-site scripting (XSS) vulnerability in cmd.php in phpLDAPadmin 1.2.x before 1.2.2 allows remote attackers to inject arbitrary web script or HTML via an _debug command.
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.0.5-2.1 | — |
| Debian 13 | phpldapadmin | 1.2.0.5-2.1 | — |
| Debian 12 | phpldapadmin | 1.2.0.5-2.1 | — |
| Debian 6.0 | phpldapadmin | 1.2.0.5-2+squeeze1 | DSA-2333-1 |
| Debian 5.0 | phpldapadmin | 1.1.0.5-6+lenny2 | DSA-2333-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- phpLDAPadmin 1.2.1.1 - Remote PHP Code Injection (1) EDB-18021 · webapps · Oct 23, 2011 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- DSA-2333-1 phpldapadmin - several issues Debian Security (DSA / DLA) · Mar 9, 2026
References
- 50331 vdb-entry
- [oss-security] 20111025 Re: CVE request: phpldapadmin <= 1.2.1.1 XSS and and code injection flaws mailing-list
- 46672 third-party-advisory
- 46551 third-party-advisory
- [oss-security] 20111024 CVE request: phpldapadmin <= 1.2.1.1 XSS and and code injection flaws mailing-list
- 76593 vdb-entry
- http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page
- DSA-2333 vendor-advisory
- http://phpldapadmin.git.sourceforge.net/git/gitweb.cgi?p=phpldapadmin/phpldapadmin%3Ba=blobdiff%3Bf=htdocs/cmd.php%3Bh=0ddf0044355abc94160be73122eb34f3e48ab2d9%3Bhp=34f3848fe4a6d4c00c7c568afa81f59579f5d724%3Bhb=64668e882b8866fae0fa1b25375d1a2f3b4672e2%3Bhpb=caeba72171ade4f588fef1818aa4f6243a68b85e