Remote Code Execution Vulnerability in phpLDAPadmin 1.2.x

phpldapadmin Updated 02 Oct 2025

Summary

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

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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

phpLDAPadmin is a web-based application used for managing LDAP directories. It provides a user-friendly interface for performing various LDAP operations, such as browsing, editing, and managing directory entries. The application is widely used in environments where LDAP is employed for authentication and directory services. However, versions 1.2.x prior to 1.2.2 are vulnerable to a critical security flaw that allows remote attackers to execute arbitrary PHP code, posing significant risks to the integrity and confidentiality of the system.

Vulnerability Detail

The vulnerability arises from the masort function in lib/functions.php, which fails to properly sanitize the 'orderby' parameter in a query_engine action to cmd.php. This oversight allows attackers to manipulate the input and execute arbitrary PHP code on the server. The exploitation of this vulnerability can lead to unauthorized access, data breaches, and complete system compromise, making it a severe threat to any deployment of phpLDAPadmin that has not been updated.

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

If immediate upgrading is not feasible, a temporary workaround is to restrict access to the phpLDAPadmin interface by implementing firewall rules or using web server configurations to limit access to trusted IP addresses only. This can help mitigate the risk of exploitation until the software can be updated.

Conclusion

The CVE-2011-4075 vulnerability in phpLDAPadmin poses a significant risk due to its potential for remote code execution. Users are strongly advised to upgrade to the latest version to safeguard their systems. Implementing workarounds can provide temporary relief, but a permanent fix through upgrading is essential for long-term 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 LDAP operations.

The vulnerability affects phpLDAPadmin versions 1.2.x prior to 1.2.2.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Not fixing this vulnerability can lead to remote code execution, allowing attackers to gain unauthorized access, manipulate data, or compromise the entire system.

Yes, Vulert can monitor and alert in real-time for open-source vulnerabilities in your software by using a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for phpldapadmin.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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