cbcvebase.
CVE-2022-29155
published 2022-05-04

CVE-2022-29155: 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…

PriorityP273critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
69.90%
99.3th percentile
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

12 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debiandebian_linux
debianopenldap< openldap 2.5.12+dfsg-1 (bookworm)openldap 2.5.12+dfsg-1 (bookworm)
msrccbl2_openldap_2.4.57-7_on_cbl_mariner_2.0
msrccm1_openldap_2.4.57-3_on_cbl_mariner_1.0
openldapopenldap>= 0 < 2.4.57+dfsg-3+deb11u12.4.57+dfsg-3+deb11u1
openldapopenldap>= 0 < 2.5.12+dfsg-12.5.12+dfsg-1
openldapopenldap>= 0 < 2.5.12+dfsg-12.5.12+dfsg-1
openldapopenldap>= 0 < 2.5.12+dfsg-12.5.12+dfsg-1
openldapopenldap>= 2.0 < 2.5.122.5.12
openldapopenldap>= 2.6.0 < 2.6.22.6.2

Detection & IOCsextracted from sources · hover to see the quote

  • Vulnerability is exploitable via a crafted LDAP search filter containing a SQL statement targeting the back-sql backend of slapd; monitor LDAP search operations for anomalous filter content
  • Attack vector is network-based (remote exploit over LDAP protocol); monitor for unexpected or malformed LDAP search requests from external sources
  • Exploitation can result in arbitrary database modifications; monitor back-sql backend database for unexpected INSERT/UPDATE/DELETE operations correlated with LDAP search activity
  • Only deployments using the experimental back-sql (openldap-servers-sql) backend are affected; audit slapd configuration for 'back-sql' backend usage as a triage step
  • ·Only the experimental back-sql backend to slapd is vulnerable; standard OpenLDAP deployments without back-sql are not affected
  • ·Red Hat Enterprise Linux 8 and 9 are not affected because the openldap-servers package (which includes back-sql) was not shipped
  • ·Affected versions are OpenLDAP 2.x before 2.5.12 and 2.6.x before 2.6.2; fixed versions are 2.5.12 and 2.6.2 respectively

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_msrc9.8CRITICAL
vendor_oracle9.8CRITICAL
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.