Vulnerabilities / CVE-2022-29155

critical

CVE-2022-29155

openldap: OpenLDAP SQL injection

Published Modified CWE 89
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat6.5CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Julia9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Amazon, Bitnami, CBL-Mariner, Julia, Photon OS. Rated lower by Red Hat (medium), Ubuntu (medium).

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 packages and fixed versions

SourcePackageFixed in
amazon linux 1openldap-servers-sql2.4.40-16.32.amzn1
amazon linux 2openldap-servers-sql2.4.44-23.amzn2.0.4
bitnami::Bitnami Vulnerability Databaseopenldap2.5.12, 2.6.2
CBL-Mariner 1.0openldap0:2.4.57-3.cm1
CBL-Mariner 2.0openldap0:2.4.57-7.cm2
julia::Julia Ecosystem Security AdvisoriesOpenLDAPClient_jll2.5.14+0
Photon OS 2.0openldap2.4.57-3.ph2
Photon OS 3.0openldap2.4.57-3.ph3
Photon OS 4.0openldap2.4.57-3.ph4
alpine 3.15openldap2.6.2-r0
alpine 3.16openldap2.6.2-r0
alpine 3.17openldap2.6.2-r0
Show all 43 entries from 38 sources
SourcePackageFixed in
amazon linux 1openldap-servers-sql2.4.40-16.32.amzn1
amazon linux 2openldap-servers-sql2.4.44-23.amzn2.0.4
bitnami::Bitnami Vulnerability Databaseopenldap2.5.12, 2.6.2
CBL-Mariner 1.0openldap0:2.4.57-3.cm1
CBL-Mariner 2.0openldap0:2.4.57-7.cm2
julia::Julia Ecosystem Security AdvisoriesOpenLDAPClient_jll2.5.14+0
Photon OS 2.0openldap2.4.57-3.ph2
Photon OS 3.0openldap2.4.57-3.ph3
Photon OS 4.0openldap2.4.57-3.ph4
alpine 3.15openldap2.6.2-r0
alpine 3.16openldap2.6.2-r0
alpine 3.17openldap2.6.2-r0
alpine 3.18openldap2.6.2-r0
alpine 3.19openldap2.6.2-r0
alpine 3.20openldap2.6.2-r0
alpine 3.21openldap2.6.2-r0
alpine 3.22openldap2.6.2-r0
alpine 3.23openldap2.6.2-r0
alpine 3.24openldap2.6.2-r0
alpine edgeopenldap2.6.2-r0
debian 10openldap2.4.47+dfsg-3+deb10u7
debian 11openldap2.4.57+dfsg-3+deb11u1
debian 12openldap2.5.12+dfsg-1
debian 13openldap2.5.12+dfsg-1
debian 14openldap2.5.12+dfsg-1
debian 9openldap2.4.44+dfsg-5+deb9u9
echoopenldap2.5.12+dfsg-1
Red Hatcompat-openldapno fix listed
Red Hatopenldapno fix listed
Red Hatopenldap-clientsno fix listed
Red Hatopenldap-develno fix listed
Red Hatopenldap-serversno fix listed
Red Hatopenldap-servers-sqlno fix listed
root.io debian 11rootio-openldap2.4.57+dfsg-3+deb11u1
root.io debian 12rootio-openldap2.5.12+dfsg-1
ubuntu 14.04-ESMopenldap2.4.31-1+nmu2ubuntu8.5+esm5
ubuntu 16.04-ESMopenldap2.4.42+dfsg-2ubuntu3.13+esm1
ubuntu 18.04openldap2.4.45+dfsg-1ubuntu1.11
ubuntu 18.04-ESMopenldap2.4.45+dfsg-1ubuntu1.11
ubuntu 20.04openldap2.4.49+dfsg-2ubuntu1.9
ubuntu 20.04-ESMopenldap2.4.49+dfsg-2ubuntu1.9
ubuntu 21.10openldap2.5.6+dfsg-1~exp1ubuntu1.1
ubuntu 22.04openldap2.5.11+dfsg-1~exp1ubuntu3.1

References

All 10 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.