Critical Remote Code Execution Vulnerability in phpLDAPadmin

phpldapadmin Updated 02 Oct 2025

Summary

02/11/2011
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2011-4075: 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 ex... Affects phpldapadmin versions < 1.2.0.5-2.1. Fixed in 1.2.0.5-2.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

phpLDAPadmin is a web-based application used for managing LDAP directories. It provides a user-friendly interface to perform various operations on LDAP entries, making it easier for administrators to manage directory services. However, certain versions of phpLDAPadmin are vulnerable to a critical security flaw that allows remote attackers to execute arbitrary PHP code, potentially compromising the entire system.

Vulnerability Detail

The vulnerability arises from the masort function in lib/functions.php in phpLDAPadmin versions 1.2.x prior to 1.2.2. It allows remote attackers to execute arbitrary PHP code via the orderby parameter (also known as the sortby variable) in a query_engine action to cmd.php. This flaw was actively exploited in the wild in October 2011, posing significant risks to systems running affected versions of the software.

How To Fix

Minimum fixed version

1.2.0.5-2.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpldapadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, you can disable the affected functionality by restricting access to the cmd.php file or by validating and sanitizing the input parameters to prevent unauthorized code execution. However, the best practice is to apply the patch as soon as possible.

Conclusion

The phpLDAPadmin vulnerability (CVE-2011-4075) poses a significant risk to systems using affected versions of the software. It is essential to update to the patched version to mitigate potential threats. Regular monitoring and proactive vulnerability management are crucial for maintaining system security.

See every vulnerability recorded for phpldapadmin →

Share this vulnerability

FAQ

phpLDAPadmin is a web-based tool for managing LDAP directories, providing an interface for users to perform various directory operations.

The vulnerability allows attackers to execute arbitrary PHP code on the server, which can lead to full system compromise.

You can check your version of phpLDAPadmin by accessing the application and looking for version information in the interface or by checking the installed package version on your server.

Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.

If immediate updates are not possible, consider implementing input validation and restricting access to vulnerable scripts as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for phpldapadmin.

How To Fix

Minimum fixed version

1.2.0.5-2.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade phpldapadmin

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback