CVE-2022-29155: 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. This can occur during an LDAP search operation when the search filter is processed, due to a lack of proper escaping.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/openldapto a version that resolves this vulnerability.Fixed in 2.6.2-r0 - Upgrade
Upgrade
debian/openldapto a version that resolves this vulnerability.Fixed in 2.5.12+dfsg-1 - Upgrade
Upgrade
debian/openldapto a version that resolves this vulnerability.Fixed in 2.4.44+dfsg-5+deb9u9Fixed in 2.4.47+dfsg-3+deb10u7Fixed in 2.4.57+dfsg-3+deb11u1Fixed in 2.5.12+dfsg-1 - Upgrade
Upgrade
ubuntu/openldapto a version that resolves this vulnerability.Fixed in 2.4.31-1+nmu2ubuntu8.5+esm5 - Upgrade
Upgrade
ubuntu/openldapto a version that resolves this vulnerability.Fixed in 2.4.42+dfsg-2ubuntu3.13+esm1 - Upgrade
Upgrade
ubuntu/openldapto a version that resolves this vulnerability.Fixed in 2.4.45+dfsg-1ubuntu1.11 - Upgrade
Upgrade
ubuntu/openldapto a version that resolves this vulnerability.Fixed in 2.4.49+dfsg-2ubuntu1.9 - Upgrade
Upgrade
ubuntu/openldapto a version that resolves this vulnerability.Fixed in 2.5.11+dfsg-1~exp1ubuntu3.1
Event History
Frequently Asked Questions
What is CVE-2022-29155?
CVE-2022-29155 is a SQL injection vulnerability in OpenLDAP 2.x before 2.5.12 and 2.6.x before 2.6.2, allowing SQL statements within an LDAP query.
How does CVE-2022-29155 occur?
CVE-2022-29155 occurs when a SQL statement is included in an LDAP search filter, due to a lack of proper escaping.
What is the severity of CVE-2022-29155?
CVE-2022-29155 has a severity rating of 9.8 (Critical).
Which software versions are affected by CVE-2022-29155?
OpenLDAP versions 2.x before 2.5.12 and 2.6.x before 2.6.2 are affected by CVE-2022-29155.
How can I fix CVE-2022-29155?
Update to OpenLDAP version 2.5.12 or later to fix CVE-2022-29155.