Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-90 (LDAP查询中使用的特殊元素转义处理不恰当(LDAP注入)) — Vulnerability Class 51

51 vulnerabilities classified as CWE-90 (LDAP查询中使用的特殊元素转义处理不恰当(LDAP注入)). AI Chinese analysis included.

CWE-90 represents a critical input validation weakness where applications construct Lightweight Directory Access Protocol queries using untrusted user data without properly sanitizing special characters. Attackers typically exploit this vulnerability by injecting malicious LDAP syntax, such as logical operators or wildcards, into input fields like usernames or search filters. This manipulation allows adversaries to bypass authentication mechanisms, extract sensitive directory information, or alter query logic to gain unauthorized access. To prevent LDAP injection, developers must strictly enforce input validation by rejecting unexpected characters and employing parameterized queries or safe API wrappers that treat user input as data rather than executable code. Additionally, implementing least-privilege principles for service accounts and conducting regular code reviews ensures that dynamic query construction remains secure against malicious manipulation.

MITRE CWE Description
The product constructs all or part of an LDAP query using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended LDAP query when it is sent to a downstream component.
Common Consequences (1)
Confidentiality, Integrity, AvailabilityExecute Unauthorized Code or Commands, Read Application Data, Modify Application Data
An attacker could include input that changes the LDAP query which allows unintended commands or code to be executed, allows sensitive data to be read or modified or causes other unintended behavior.
Mitigations (1)
ImplementationAssume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range…
Examples (1)
The code below constructs an LDAP query using user input address data:
context = new InitialDirContext(env); String searchFilter = "StreetAddress=" + address; NamingEnumeration answer = context.search(searchBase, searchFilter, searchCtls);
Bad · Java
CVE IDTitleCVSSSeverityPublished
CVE-2025-4573 LDAP Injection in Mattermost Enterprise Edition When Using Active Directory — Mattermost 4.1 Medium2025-06-11
CVE-2025-27686 Dell Unisphere和Dell PowerMax 注入漏洞 — Unisphere for PowerMax 2.7 Low2025-04-07
CVE-2025-27631 Hitachi Energy TRMTracker 注入漏洞 — TRMTracker 6.5 Medium2025-03-25
CVE-2024-56841 Siemens Mendix 注入漏洞 — Mendix LDAP 7.4 High2025-01-14
CVE-2024-27310 DOS Vulnerability — ADSelfService Plus 5.3 Medium2024-05-27
CVE-2023-51446 GLPI LDAP Injection during authentication — glpi 5.9 Medium2024-02-01
CVE-2023-31025 CVE — DGX A100 6.5 Medium2024-01-12
CVE-2023-29050 Open-Xchange App Suite 安全漏洞 — OX App Suite 7.6 High2024-01-08
CVE-2023-6905 Jahastech NxFilter Bind Request ldap injection — NxFilter 4.3 Medium2023-12-17
CVE-2023-3447 Active Directory Integration / LDAP Integration <= 4.1.5 - Authenticated (Subscriber+) LDAP Injection — Active Directory Integration / LDAP Integration 7.6 High2023-06-29
CVE-2023-28853 Mastodon's blind LDAP injection in login allows the attacker to leak arbitrary attributes from LDAP database — mastodon 7.7 High2023-04-04
CVE-2022-4254 SSSD 注入漏洞 — SSSD 8.1 -2023-02-01
CVE-2015-10027 hydrian TTRSS-Auth-LDAP Username ldap injection — TTRSS-Auth-LDAP 5.5 Medium2023-01-07
CVE-2022-45910 Apache ManifoldCF: LDAP Injection Vulnerability - ActiveDirectory Authorities — Apache ManifoldCF 8.2 -2022-12-07
CVE-2021-43782 Indirect LDAP injection in Tuleap — tuleap 6.7 Medium2021-12-15
CVE-2021-43350 LDAP filter injection vulnerability in Traffic Ops — Apache Traffic Control 9.8 -2021-11-11
CVE-2021-41232 Improper Neutralization of Special Elements used in an LDAP Query — thunderdome-planning-poker 8.1 High2021-11-02
CVE-2021-32651 LDAP injection via OneDev may leak some LDAP directory information — onedev 3.1 Low2021-06-01
CVE-2020-5246 LDAP injection vulnerability in Traccar GPS Tracking System — Traccar 7.7 High2020-07-14
CVE-2020-5281 LDAP connector injection in Perun — perun 6.2 Medium2020-03-25
CVE-2019-11277 Volume Services is vulnerable to an LDAP injection attack — CF NFS volume release 8.1 -2019-09-23

Vulnerabilities classified as CWE-90 (LDAP查询中使用的特殊元素转义处理不恰当(LDAP注入)) represent 51 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.