CVE-2022-29155Openldap SQL Injection
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.
Published May 4, 2022 · Updated Nov 15, 2026 · Also known as ALPINE-CVE-2022-29155, BIT-openldap-2022-29155, CLEANSTART-2026-YM99872, CLSA-2022-1652986454, CLSA-2022-1652986513, CLSA-2022-1652987203, DEBIAN-CVE-2022-29155, DLA-3017-1, DSA-5140-1, JLSEC-2026-174, MGASA-2022-0205, OESA-2022-1654, SUSE-SU-2022:1670-1, SUSE-SU-2022:1671-1, SUSE-SU-2022:1685-1, SUSE-SU-2022:1771-1, SUSE-SU-2022:1832-1, UBUNTU-CVE-2022-29155, USN-5424-1, USN-5424-2
Key Facts
Patch immediately- CVE-2022-29155 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Openldap, Debian Linux, H300s Firmware (Netapp) and 22 more products.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 64% probability of exploitation in the next 30 days.
- Fixed versions are available, including compat-libldap-2_3-0 2.3.37-42.1, ldap-utils 2.4.42+dfsg-2ubuntu3.13.tuxcare.els1, libldap-2_4-2 2.4.41-18.89.1.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
64%
Higher than 99.2% of all scored CVEs
Exploit maturity
None known
ATLAS score
35/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
None known
Public exploit code
0
Proof-of-concept links
In-the-wild evidence
1
Reports of active use
Advisories And Exploit References
- advisoryhttps://www.cve.org/CVERecord?id=CVE-2022-29155
- advisoryhttps://security.alpinelinux.org/vuln/CVE-2022-29155
- advisoryhttps://security-tracker.debian.org/tracker/CVE-2022-29155
- advisoryhttps://ubuntu.com/security/CVE-2022-29155
- advisoryhttps://advisories.mageia.org/MGASA-2022-0205.html
- advisoryhttps://bugs.mageia.org/show_bug.cgi?id=30439
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.
Affected Products
476 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| OpenldapOpenldap | >= 2.0.0 | 2.5.12 |
| Debian LinuxDebian | 10.0, 11.0, 9.0 | n/a |
| H300s FirmwareNetapp | See advisory | n/a |
| H410c FirmwareNetapp | See advisory | n/a |
| H410s FirmwareNetapp | See advisory | n/a |
Patched Releases
compat-libldap-2_3-0
2.3.37-42.1
ldap-utils
2.4.42+dfsg-2ubuntu3.13.tuxcare.els1
libldap-2_4-2
2.4.41-18.89.1, 2.4.41-22.10.1, 2.4.46-150000.9.71.1, 2.4.46-150200.14.8.1
libldap-2_4-2-32bit
2.4.41-18.89.1, 2.4.41-22.10.1, 2.4.46-150000.9.71.1, 2.4.46-150200.14.8.1
libldap-2.4-2
2.4.42+dfsg-2ubuntu3.13.tuxcare.els1
libldap-data
2.4.46-150000.9.71.1, 2.4.46-150200.14.8.1
libldap2-dev
2.4.42+dfsg-2ubuntu3.13.tuxcare.els1
Openldap
2.4.31-1+nmu2ubuntu8.5+esm5, 2.4.40-16.el6.tuxcare.els2, 2.4.42+dfsg-2ubuntu3.13+esm1, 2.4.44-25.el7_9.tuxcare.els1, 2.4.44+dfsg-5+deb9u9, 2.4.45+dfsg-1ubuntu1.11, 2.4.46-17.el8_4.tuxcare.els2, 2.4.47+dfsg-3+deb10u7, 2.4.49+dfsg-2ubuntu1.9, 2.4.50-7.oe1, 2.4.57-1.2.mga8, 2.4.57-3, 2.4.57-3.ph2, 2.4.57-3.ph3, 2.4.57-3.ph4, 2.4.57-7, 2.4.57+dfsg-3+deb11u1, 2.5.11+dfsg-1~exp1ubuntu3.1, 2.5.12, 2.5.12+dfsg-1, 2.6.0-3.oe2203, 2.6.2, 2.6.2-1, 2.6.2-r0
openldap-clients
2.4.40-16.el6.tuxcare.els2, 2.4.44-25.el7_9.tuxcare.els1, 2.4.46-17.el8_4.tuxcare.els2
openldap-devel
2.4.40-16.el6.tuxcare.els2, 2.4.44-25.el7_9.tuxcare.els1, 2.4.46-17.el8_4.tuxcare.els2
openldap-servers
2.4.40-16.el6.tuxcare.els2, 2.4.44-25.el7_9.tuxcare.els1, 2.4.46-17.el8_4.tuxcare.els2
openldap-servers-sql
2.4.40-16.32.amzn1, 2.4.40-16.el6.tuxcare.els2, 2.4.44-23.amzn2.0.4, 2.4.44-25.el7_9.tuxcare.els1
openldap2
2.4.41-18.89.1, 2.4.41-22.10.1, 2.4.41-42.1, 2.4.46-150000.9.71.1, 2.4.46-150200.14.8.1
openldap2-back-meta
2.4.41-18.89.1, 2.4.41-22.10.1, 2.4.46-150000.9.71.1, 2.4.46-150200.14.8.1
openldap2-back-perl
2.4.41-22.10.1, 2.4.46-150000.9.71.1, 2.4.46-150200.14.8.1
openldap2-back-sock
2.4.46-150200.14.8.1
openldap2-back-sql
2.4.46-150200.14.8.1
openldap2-client
2.4.41-18.89.1, 2.4.41-22.10.1, 2.4.46-150000.9.71.1, 2.4.46-150200.14.8.1
openldap2-contrib
2.4.46-150200.14.8.1
openldap2-devel
2.4.41-22.10.1, 2.4.46-150000.9.71.1, 2.4.46-150200.14.8.1
openldap2-devel-32bit
2.4.46-150000.9.71.1, 2.4.46-150200.14.8.1
openldap2-devel-static
2.4.41-22.10.1, 2.4.46-150000.9.71.1, 2.4.46-150200.14.8.1
openldap2-doc
2.4.41-18.89.1, 2.4.41-22.10.1, 2.4.46-150200.14.8.1
openldap2-ppolicy-check-password
1.2-150000.9.71.1, 1.2-150200.14.8.1, 1.2-18.89.1, 1.2-22.10.1
OpenLDAPClient_jll
2.5.14+0
Timeline
Publicly disclosed
May 4, 2022
Last updated
Nov 15, 2026
Weakness Type
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
- advisorycve.org · CVERecord
- advisorysecurity.alpinelinux.org · CVE-2022-29155
- advisorysecurity-tracker.debian.org · CVE-2022-29155
- advisoryubuntu.com · CVE-2022-29155
- advisoryadvisories.mageia.org · MGASA-2022-0205.html
FAQ
Common Questions.
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.
Affected: Openldap versions >= 2.0.0; Debian Linux versions 10.0, 11.0, 9.0; H300s Firmware (Netapp), among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including compat-libldap-2_3-0 2.3.37-42.1, ldap-utils 2.4.42+dfsg-2ubuntu3.13.tuxcare.els1, libldap-2_4-2 2.4.41-18.89.1.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-29155 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo