← Vulnerability feed

Vulnerability record · CVE-2022-29155 · published 4 May 2022

CVE-2022-29155: OpenLDAP back-sql backend SQL injection via LDAP search filter

Openldap · Openldap

OpenLDAP 2.x before 2.5.12 and 2.6.x before 2.6.2 contain a SQL injection flaw in the experimental back-sql backend to slapd. A SQL statement embedded in an LDAP query is not properly escaped when the search filter is processed during an LDAP search operation. The affected backend is experimental, so exposure depends on whether it is deployed.

9.8 CVSS 3.1 Critical EPSS 64% · top 0.8% CWE-89 · SQL injection
9.8CVSS 3.1 base score, v2 7.5
64%EPSS exploitation probability, 30 days
NoNot in CISA KEV
8Affected product versions listed by NVD
8References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

In OpenLDAP 2.x before 2.5.12 and 2.6.x before 2.6.2, a SQL injection vulnerability exists in the experimental back-sql backend to slapd, via a SQL statement within an LDAP query. This can occur during an LDAP search operation when the search filter is processed, due to a lack of proper escaping.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

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

high priorityCritical CVSS 9.8 with high EPSS and public exploit detail, tempered by the flaw being limited to the experimental back-sql backend.

What it is

OpenLDAP 2.x before 2.5.12 and 2.6.x before 2.6.2 contain a SQL injection flaw in the experimental back-sql backend to slapd. A SQL statement embedded in an LDAP query is not properly escaped when the search filter is processed during an LDAP search operation. The affected backend is experimental, so exposure depends on whether it is deployed.

Impact

An unauthenticated remote attacker can inject SQL through an LDAP search filter, potentially reading or modifying the underlying SQL database and, per the CVSS vector, compromising confidentiality, integrity and availability.

Attack surface

Reached over the network through an LDAP search operation against a slapd instance configured with the back-sql backend; the CVSS vector indicates no authentication and no user interaction are required.

Exploitation

Not listed in CISA KEV and no ransomware usage is documented, but EPSS is high (0.64487, 99.2nd percentile) and the vendor bug report is tagged Exploit, indicating public exploit detail exists.

What to do

  • Upgrade OpenLDAP to 2.5.12 or 2.6.2 or later; apply the Debian DSA-5140 update where applicable.
  • If back-sql is not required, disable or do not load the experimental back-sql backend.
  • Restrict network access to slapd LDAP ports to trusted clients only.
  • Apply the NetApp advisory guidance for affected H-series firmware products.
  • Review database accounts used by back-sql for least privilege.

Detection

  • Inspect slapd logs for LDAP search filters containing SQL syntax such as quotes, UNION, or comment sequences.
  • Monitor the backend SQL database for anomalous queries or errors originating from the slapd host.
  • Audit slapd configuration to identify hosts running the back-sql backend.
  • Alert on unexpected changes to data reachable through the back-sql mapping.

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

Affected products

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

References

Track CVE-2022-29155 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.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2024-54085AMI MegaRAC SPx BMC authentication bypass via Redfish Host InterfaceAMI's SPx BMC implementation contains an authentication bypass reachable remotely through the Redfish Host Interface, classified as CWE-290 (authenti…KEVEPSS 61%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed

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