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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | openldap | 2.4.44+dfsg-5+deb9u9 | DLA-3017-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | openldap-servers-sql | 2.4.44-23.amzn2.0.4 | ALAS2-2022-1796 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | openldap | 2.4.57-7 | — |
Advisories 14
- SSA-398330 SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5 Siemens ProductCERT · Oct 13, 2026
- USN-5424-2 openldap vulnerability Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-5424-1 openldap vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-5140-1 openldap - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3017-1 openldap - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2022:1670-1 Security update for openldap2 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1685-1 Security update for openldap2 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1671-1 Security update for openldap2 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1771-1 Security update for openldap2 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:1832-1 Security update for openldap2 SUSE / openSUSE Security Updates · Feb 4, 2026
- ICSA-23-348-10 Siemens SIMATIC S7-1500 CISA ICS & IT advisories · Aug 12, 2025
- WID-SEC-2023-0455 OpenLDAP: Schwachstelle ermöglicht Manipulation von Dateien BSI CERT-Bund (WID) · Oct 14, 2024
- WID-SEC-2024-0114 Oracle Systems: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 16, 2024
- ALAS2-2022-1796 Critical: openldap security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · May 24, 2022