CVE-2011-4075

high
Published 2011-11-02 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
8.5

Description

The masort function in lib/functions.php in phpLDAPadmin 1.2.x before 1.2.2 allows remote attackers to execute arbitrary PHP code via the orderby parameter (aka sortby variable) in a query_engine action to cmd.php, as exploited in the wild in October 2011.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-18021 webapps php verified
EgiX ยท 2011-10-23

phpLDAPadmin 1.2.1.1 - Remote PHP Code Injection (1)

Source code queued for fetch โ€” refresh in a moment.
EDB-18031 webapps php verified
Metasploit ยท 2011-10-25

phpLDAPadmin 1.2.1.1 - Remote PHP Code Injection (Metasploit) (2)

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

phpLDAPadmin query_engine Remote PHP Code Injection
Source fetch failed: fetch_error โ€” view the original via the link above.

OS impact

debian Debian Fixed 4 releases
VersionStatusFixed in
trixie Fixed 1.2.0.5-2.1
sid Fixed 1.2.0.5-2.1
forky Fixed 1.2.0.5-2.1
bookworm Fixed 1.2.0.5-2.1

Application impact

VendorProductVersionsFixed
phpldapadmin_projectphpldapadmin1.2.0
phpldapadmin_projectphpldapadmin1.2.0.1
phpldapadmin_projectphpldapadmin1.2.0.2
phpldapadmin_projectphpldapadmin1.2.0.3
phpldapadmin_projectphpldapadmin1.2.0.4
phpldapadmin_projectphpldapadmin1.2.0.5
phpldapadmin_projectphpldapadmin1.2.1
phpldapadmin_projectphpldapadmin1.2.1.1

References

CWEs

CWE-94

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.