Skip to content
OpenAdvisories
Unscored CVE-2022-29155 EUVD-2022-33563GHSA-9rm2-9q89-9524

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, v…

Published May 4, 2022 · Updated Oct 14, 2026 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 openldap 2.5.12+dfsg-1 —
Debian 13 openldap 2.5.12+dfsg-1 —
Debian 12 openldap 2.5.12+dfsg-1 —
Debian 11 openldap 2.4.57+dfsg-3+deb11u1 DSA-5140-1
Debian 10 openldap 2.4.47+dfsg-3+deb10u7 DSA-5140-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 openldap 2.4.44+dfsg-5+deb9u9 DLA-3017-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS openldap 2.5.11+dfsg-1~exp1ubuntu3.1 USN-5424-1
Ubuntu 20.04 LTS openldap 2.4.49+dfsg-2ubuntu1.9 USN-5424-1
Ubuntu 18.04 LTS openldap 2.4.45+dfsg-1ubuntu1.11 USN-5424-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS openldap 2.4.42+dfsg-2ubuntu3.13+esm1 USN-5424-2
Ubuntu Pro 14.04 LTS openldap 2.4.31-1+nmu2ubuntu8.5+esm5 USN-5424-2
ReleasePackageFixed inAdvisory
SLES 15 SP4 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
SLES 15 SP3 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
SLES 15 SP2 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
SLES 15 SP1 openldap2 2.4.46-150000.9.71.1 SUSE-SU-2022:1832-1
SLES 15 openldap2 2.4.46-150000.9.71.1 SUSE-SU-2022:1832-1
Show 26 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 openldap2 2.4.41-22.10.1 SUSE-SU-2022:1771-1
SLES 12 SP4 openldap2 2.4.41-22.10.1 SUSE-SU-2022:1771-1
SLES 12 SP3 openldap2 2.4.41-18.89.1 SUSE-SU-2022:1671-1
SLES 12 SP2 openldap2 2.4.41-18.89.1 SUSE-SU-2022:1671-1
SLES 12 openldap2 2.4.41-42.1 SUSE-SU-2022:1685-1
SLES for SAP 15 SP2 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
SLES for SAP 15 SP1 openldap2 2.4.46-150000.9.71.1 SUSE-SU-2022:1832-1
SLES for SAP 15 openldap2 2.4.46-150000.9.71.1 SUSE-SU-2022:1832-1
SLES for SAP 12 SP5 openldap2 2.4.41-22.10.1 SUSE-SU-2022:1771-1, SUSE-SU-2022:1685-1
SLES for SAP 12 SP4 openldap2 2.4.41-22.10.1 SUSE-SU-2022:1771-1, SUSE-SU-2022:1685-1
SLES for SAP 12 SP3 openldap2 2.4.41-18.89.1 SUSE-SU-2022:1685-1, SUSE-SU-2022:1671-1
SLE Micro 5.2 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
SLE Micro 5.1 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
SLE HPC 15 SP2 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
SLE HPC 15 SP1 openldap2 2.4.46-150000.9.71.1 SUSE-SU-2022:1832-1
SLE HPC 15 openldap2 2.4.46-150000.9.71.1 SUSE-SU-2022:1832-1
SUSE OpenStack Cloud Crowbar 9 openldap2 2.4.41-22.10.1 SUSE-SU-2022:1771-1
SUSE OpenStack Cloud Crowbar 8 openldap2 2.4.41-18.89.1 SUSE-SU-2022:1671-1
SUSE OpenStack Cloud 9 openldap2 2.4.41-22.10.1 SUSE-SU-2022:1771-1
SUSE OpenStack Cloud 8 openldap2 2.4.41-18.89.1 SUSE-SU-2022:1671-1
SUSE Manager Server 4.1 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
SUSE Manager Retail Branch Server 4.1 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
SUSE Manager Proxy 4.1 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
SUSE HPE Helion OpenStack 8 openldap2 2.4.41-18.89.1 SUSE-SU-2022:1671-1
SUSE Enterprise Storage 7 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
SUSE Enterprise Storage 6 openldap2 2.4.46-150000.9.71.1 SUSE-SU-2022:1832-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.4 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
openSUSE Leap 15.3 openldap2 2.4.46-150200.14.8.1 SUSE-SU-2022:1670-1
ReleasePackageFixed inAdvisory
Alpine v3.24 openldap 2.6.2-r0 —
Alpine v3.23 openldap 2.6.2-r0 —
Alpine v3.22 openldap 2.6.2-r0 —
Alpine v3.21 openldap 2.6.2-r0 —
Alpine v3.20 openldap 2.6.2-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 openldap 2.6.2-r0 —
Alpine v3.18 openldap 2.6.2-r0 —
Alpine v3.17 openldap 2.6.2-r0 —
Alpine v3.16 openldap 2.6.2-r0 —
Alpine v3.15 openldap 2.6.2-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 openldap-servers-sql 2.4.44-23.amzn2.0.4 ALAS2-2022-1796

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) openldap 2.4.57-7 —

Advisories 14

References