CVE-2022-29155CWE-89sql-injection

CVE-2022-29155

Critical · published May 5, 2022

Patch now

High probability of exploitation

CVSS calls it critical at 9.8. It sits in the 99.2th percentile for exploit probability.

CVSS v3.1
9.8
EPSS
64%
Percentile
99.2
In the wild
Unconfirmed
What it is

⚠️ A sneaky SQL injection is hiding in OpenLDAP's experimental back-sql backend! This flaw can exploit a search operation through improper escaping, and it’s critical to address it. 🔥 Think of this SQL injection as a delivery driver who misreads a package address—if the driver doesn’t double-check, they might drop that package right at the wrong house! In this case, the wrong query could spill sensitive data instead of safely delivering it to the intended recipient. An attacker could craft a malicious LDAP query that, when processed, results in unintended SQL commands being executed. This could lead to unauthorized access, data leaks, or even complete database manipulation. Yikes!

Put simply

Think of this SQL injection as a delivery driver who misreads a package address—if the driver doesn’t double-check, they might drop that package right at the wrong house! In this case, the wrong query could spill sensitive data instead of safely delivering it to the intended recipient. This vulnerability in OpenLDAP allows attackers to inject SQL commands into LDAP queries during search operations, due to inadequate input escaping. The affected versions are OpenLDAP 2.x before 2.5.12 and 2.6.x before 2.6.2.

What to do

An attacker could craft a malicious LDAP query that, when processed, results in unintended SQL commands being executed. This could lead to unauthorized access, data leaks, or even complete database manipulation. Yikes! Upgrade OpenLDAP to version 2.5.12 or 2.6.2 immediately to patch this vulnerability. It’s also advisable to review any custom queries for proper escaping to ensure they're immune to injection attacks. Don't leave anything to chance! You've got this! With a quick update, you can safeguard your LDAP setup and keep your data secure! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.64487 · 99.2th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2022-05-05T00:15Z
Affected products (11)
ProductVersionsFixed in
openldap/openldap≥ 2.0, < 2.5.122.5.12
openldap/openldap≥ 2.6.0, < 2.6.22.6.2
debian/debian_linuxall versions—
debian/debian_linuxall versions—
debian/debian_linuxall versions—
netapp/h300s_firmwareall versions—
netapp/h500s_firmwareall versions—
netapp/h700s_firmwareall versions—
netapp/h700e_firmwareall versions—
netapp/h410s_firmwareall versions—
netapp/h410c_firmwareall versions—
References (9)
EPSS history
Timeline
  • 04 MAY 19:06Z
    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…
    cvelistv5