cve.bz

CVE-2022-29155 SQL Injection

9.8 criticalExploit referenceEPSS 64%

Critical (9.8). EPSS 64% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
64% (unchanged from 64% a week ago; 64% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-29155 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-29155?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-29155?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-29155 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2022-29155

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2022-29155](https://cve.bz/cve/badge/CVE-2022-29155.svg)](https://cve.bz/cve/CVE-2022-29155)

HTML:

<a href="https://cve.bz/cve/CVE-2022-29155"><img src="https://cve.bz/cve/badge/CVE-2022-29155.svg" alt="CVE-2022-29155"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openldap:openldapfrom 2.0 before 2.5.12
openldap:openldapfrom 2.6.0 before 2.6.2
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9openldap2.4.44+dfsg-5+deb9u9DLA-3017-1
Debian10openldap2.4.47+dfsg-3+deb10u7DSA-5140-1
Debian11openldap2.4.57+dfsg-3+deb11u1DSA-5140-1
Debian12, 13, 14openldap2.5.12+dfsg-1DEBIAN-CVE-2022-29155
Ubuntu18.04:LTSopenldap2.4.45+dfsg-1ubuntu1.11UBUNTU-CVE-2022-29155 USN-5424-1
Ubuntu20.04:LTSopenldap2.4.49+dfsg-2ubuntu1.9UBUNTU-CVE-2022-29155 USN-5424-1
Ubuntu22.04:LTSopenldap2.5.11+dfsg-1~exp1ubuntu3.1UBUNTU-CVE-2022-29155 USN-5424-1
UbuntuPro:14.04:LTSopenldap2.4.31-1+nmu2ubuntu8.5+esm5UBUNTU-CVE-2022-29155 USN-5424-2
UbuntuPro:16.04:LTSopenldap2.4.42+dfsg-2ubuntu3.13+esm1UBUNTU-CVE-2022-29155 USN-5424-2
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 moreopenldap22.4.46-150000.9.71.1SUSE-SU-2022:1832-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 13 moreopenldap22.4.46-150200.14.8.1SUSE-SU-2022:1670-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 4 moreopenldap22.4.41-18.89.1SUSE-SU-2022:1671-1
SUSELinux Enterprise Module for Legacy 12, Linux Enterprise Server for SAP Applications 12 SP3, Linux Enterprise Server for SAP Applications 12 SP4 and 1 moreopenldap22.4.41-42.1SUSE-SU-2022:1685-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP4 and 4 moreopenldap22.4.41-22.10.1SUSE-SU-2022:1771-1
openSUSELeap 15.3, Leap 15.4openldap22.4.46-150200.14.8.1SUSE-SU-2022:1670-1
Alpinev3.15, v3.16, v3.17 and 7 moreopenldap2.6.2-r0ALPINE-CVE-2022-29155
Azure Linux2openldap2.4.57-7AZL-9672

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Enterprise Linux 8 and 9 are not affected as we have not shipped the OpenLDAP-servers package.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6compat-openldapOut of support scope
Red Hat Enterprise Linux 6openldapOut of support scope
Red Hat Enterprise Linux 7compat-openldapOut of support scope
Red Hat Enterprise Linux 7openldapWill not fix
Red Hat Enterprise Linux 8openldapNot affected
Red Hat Enterprise Linux 9openldapNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-29155.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON