CVEfocus › CVE database › CVE-2022-29155

CVE-2022-29155

CVSS 9.8 CriticalEPSS 2.6% (higher than 86% of CVEs)Published 2022-05-04Updated 2026-10-14Assigner: mitre

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.

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

16Fixed
2Fix pending
12Will not fix
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04openldapFixed2.5.11+dfsg-1~exp1ubuntu3.1UBUNTU-CVE-2022-29155
Ubuntu 20.04openldapFixed2.4.49+dfsg-2ubuntu1.9UBUNTU-CVE-2022-29155
Ubuntu 18.04openldapFixed2.4.45+dfsg-1ubuntu1.11UBUNTU-CVE-2022-29155
Ubuntu 16.04openldapFix pending2.4.42+dfsg-2ubuntu3.13+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-29155
Ubuntu 14.04openldapFix pending2.4.31-1+nmu2ubuntu8.5+esm5 (Ubuntu Pro)UBUNTU-CVE-2022-29155
Debian 14openldapFixed2.5.12+dfsg-1DEBIAN-CVE-2022-29155
Debian 13openldapFixed2.5.12+dfsg-1DEBIAN-CVE-2022-29155
Debian 12openldapFixed2.5.12+dfsg-1DEBIAN-CVE-2022-29155
Red Hat Enterprise Linux 9openldapNot affected
Red Hat Enterprise Linux 9openldap-clientsNot affected
Red Hat Enterprise Linux 9openldap-compatNot affected
Red Hat Enterprise Linux 9openldap-develNot affected
Red Hat Enterprise Linux 8openldapNot affected
Red Hat Enterprise Linux 8openldap-clientsNot affected
Red Hat Enterprise Linux 8openldap-develNot affected
Red Hat Enterprise Linux 8openldap-serversNot affected
Red Hat Enterprise Linux 7compat-openldapWill not fix
Out of support scope
Red Hat Enterprise Linux 7openldapWill not fix
Will not fix
Red Hat Enterprise Linux 7openldap-clientsWill not fix
Will not fix
Red Hat Enterprise Linux 7openldap-develWill not fix
Will not fix
Red Hat Enterprise Linux 7openldap-serversWill not fix
Will not fix
Red Hat Enterprise Linux 7openldap-servers-sqlWill not fix
Will not fix
Red Hat Enterprise Linux 6compat-openldapWill not fix
Out of support scope
Red Hat Enterprise Linux 6openldapWill not fix
Out of support scope
Red Hat Enterprise Linux 6openldap-clientsWill not fix
Out of support scope
Red Hat Enterprise Linux 6openldap-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6openldap-serversWill not fix
Out of support scope
Red Hat Enterprise Linux 6openldap-servers-sqlWill not fix
Out of support scope
Alpine Linux 3.24openldapFixed2.6.2-r0ALPINE-CVE-2022-29155
Alpine Linux 3.23openldapFixed2.6.2-r0ALPINE-CVE-2022-29155
Alpine Linux 3.22openldapFixed2.6.2-r0ALPINE-CVE-2022-29155
Alpine Linux 3.21openldapFixed2.6.2-r0ALPINE-CVE-2022-29155
Alpine Linux 3.20openldapFixed2.6.2-r0ALPINE-CVE-2022-29155
Alpine Linux 3.19openldapFixed2.6.2-r0ALPINE-CVE-2022-29155
Alpine Linux 3.18openldapFixed2.6.2-r0ALPINE-CVE-2022-29155
Alpine Linux 3.17openldapFixed2.6.2-r0ALPINE-CVE-2022-29155
Alpine Linux 3.16openldapFixed2.6.2-r0ALPINE-CVE-2022-29155
Alpine Linux 3.15openldapFixed2.6.2-r0ALPINE-CVE-2022-29155

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.