LDAP Injection in phpLDAPadmin

phpldapadmin Updated 02 Oct 2025

Summary

22/06/2018
N/A
No i
Critical
9.8

CVE-2018-12689: phpLDAPadmin 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 the login panel. Affects phpldapadmin versions 1.2.6.3-0.3 – 1.2.6.7-4. No fix is published. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

phpLDAPadmin is a web-based LDAP client that allows users to manage LDAP servers. It provides an easy-to-use interface for performing various LDAP operations. However, a vulnerability has been discovered in phpLDAPadmin version 1.2.2 that allows for LDAP injection attacks.

Vulnerability Detail

The vulnerability, identified as CVE-2018-12689, can be exploited by injecting malicious LDAP queries through the 'server_id' parameter in a 'cmd.php?cmd=login_form' request or by providing crafted usernames and passwords in the login panel. This allows an attacker to execute arbitrary LDAP commands and potentially gain unauthorized access to the LDAP server or manipulate its data.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can implement input validation and sanitization to prevent LDAP injection attacks. It is crucial to validate and sanitize user-supplied input before using it in LDAP queries. This can be achieved by using proper input validation techniques and LDAP query parameterization.

Conclusion

In conclusion, phpLDAPadmin version 1.2.2 is vulnerable to LDAP injection attacks. It is crucial to upgrade to a patched version or apply the recommended workarounds to mitigate the risk. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for phpldapadmin →

Share this vulnerability

FAQ

phpLDAPadmin is a web-based LDAP client used for managing LDAP servers. It provides an intuitive interface for performing various LDAP operations.

LDAP injection is a type of security vulnerability that occurs when untrusted data is inserted into an LDAP query without proper validation or sanitization. It allows an attacker to manipulate the query and potentially execute arbitrary LDAP commands.

An attacker can exploit this vulnerability by injecting malicious LDAP queries through the 'server_id' parameter in a 'cmd.php?cmd=login_form' request or by providing crafted usernames and passwords in the login panel. This allows them to execute arbitrary LDAP commands and potentially gain unauthorized access to the LDAP server or manipulate its data.

The consequences of this vulnerability include unauthorized access to the LDAP server, manipulation of LDAP data, and potential exposure of sensitive information stored in the LDAP directory.

Yes, the developers of phpLDAPadmin have released a fix for this vulnerability in subsequent versions. It is recommended to update to the latest version to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for phpldapadmin.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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