← Vulnerability feed

Vulnerability record · CVE-2011-4075 · published 2 November 2011

CVE-2011-4075: phpLDAPadmin masort function PHP code injection via orderby parameter

Phpldapadmin Project · Phpldapadmin

The masort function in lib/functions.php in phpLDAPadmin 1.2.x before 1.2.2 fails to safely handle the orderby (sortby) parameter, allowing remote attackers to inject and execute arbitrary PHP code through a query_engine action to cmd.php. This is a code injection flaw in a web-facing LDAP administration tool, and the record states it was exploited in the wild in October 2011.

7.5 CVSS 2.0 High EPSS 52% · top 1.1% CWE-94 · Code injection
7.5CVSS 2.0 base score
52%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
24References, 8 tagged exploit
16 Jun 2026Last modified by NVD

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.

AV:N/AC:L/Au:N/C:P/I:P/A:P

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: high.

critical priorityUnauthenticated remote code execution in a network-exposed administrative tool, with in-the-wild exploitation reported and a very high EPSS score.

What it is

The masort function in lib/functions.php in phpLDAPadmin 1.2.x before 1.2.2 fails to safely handle the orderby (sortby) parameter, allowing remote attackers to inject and execute arbitrary PHP code through a query_engine action to cmd.php. This is a code injection flaw in a web-facing LDAP administration tool, and the record states it was exploited in the wild in October 2011.

Impact

An attacker can execute arbitrary PHP code on the phpLDAPadmin server, which typically leads to full compromise of the web application and its underlying host. Because phpLDAPadmin holds directory credentials, the attacker may also gain access to the LDAP directory it manages.

Attack surface

Reachable over the network via HTTP requests to cmd.php with a crafted orderby parameter in a query_engine action. The CVSS vector AV:N/AC:L/Au:N indicates no authentication is required and no user interaction is needed.

Exploitation

The record states the flaw was exploited in the wild in October 2011, and multiple references are tagged Exploit, including Exploit-DB and Metasploit issue trackers. It is not listed in CISA KEV, but EPSS is high at 0.51891 (98.9th percentile).

What to do

  • Upgrade phpLDAPadmin to 1.2.2 or later, which contains the fix for the masort function.
  • If immediate upgrade is not possible, restrict network access to phpLDAPadmin so only trusted administrative hosts can reach cmd.php.
  • Apply the vendor patch referenced in the openwall and git diff links if a package update is unavailable.
  • Run phpLDAPadmin with least privilege and avoid using directory administrator credentials for the web application.
  • Monitor for and block requests to cmd.php containing suspicious orderby or sortby parameter values.

Detection

  • Inspect web server logs for requests to cmd.php with query_engine action and unusual orderby or sortby parameters.
  • Look for PHP code execution indicators in phpLDAPadmin process behavior, such as unexpected child processes or outbound connections.
  • Use the available Exploit-DB and Metasploit references to build signatures for known exploit payloads against cmd.php.
  • Review file integrity of lib/functions.php and other phpLDAPadmin files for unauthorized modification.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2011-4075 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2018-12689Phpldapadmin project phpldapadmin vulnerabilityphpLDAPadmin 1.2.2 allows LDAP injection via a crafted server_id parameter in a cmd.php?cmd=login_form request, or a crafted username and password in…EPSS 1.8%7.5CVE-2011-4082Phpldapadmin project phpldapadmin uncontrolled resource consumption vulnerabilityA local file inclusion flaw was found in the way the phpLDAPadmin before 0.9.8 processed certain values of the "Accept-Language" HTTP header. A remot…EPSS 1.7%7.5CVE-2009-4427Phpldapadmin project phpldapadmin path traversal vulnerabilityDirectory traversal vulnerability in cmd.php in phpLDAPadmin 1.1.0.5 allows remote attackers to include and execute arbitrary local files via a .. (d…EPSS 10.0%7.5CVE-2005-2793Phpldapadmin project phpldapadmin command injection vulnerabilityPHP remote file inclusion vulnerability in welcome.php in phpLDAPadmin 0.9.6 and 0.9.7 allows remote attackers to execute arbitrary PHP code via the …EPSS 2.7%7.5CVE-2005-2654Phpldapadmin project phpldapadmin vulnerabilityphpldapadmin before 0.9.6c allows remote attackers to gain anonymous access to the LDAP server, even when disable_anon_bind is set, via an HTTP reque…EPSS 1.8%6.1CVE-2017-11107Phpldapadmin project phpldapadmin cross-site scripting vulnerabilityphpLDAPadmin through 1.2.3 has XSS in htdocs/entry_chooser.php via the form, element, rdn, or container parameter.EPSS 2.1%5.4CVE-2020-35132Phpldapadmin project phpldapadmin cross-site scripting vulnerabilityAn XSS issue has been discovered in phpLDAPadmin before 1.2.6.2 that allows users to store malicious values that may be executed by other users at a …EPSS 1.3%5.0CVE-2005-2792Phpldapadmin project phpldapadmin path traversal vulnerabilityDirectory traversal vulnerability in welcome.php in phpLDAPadmin 0.9.6 and 0.9.7 allows remote attackers to read arbitrary files via a .. (dot dot) i…EPSS 12%

Source: NIST National Vulnerability Database (record CVE-2011-4075), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.