---
id: CVE-2022-29155
title: >-
  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
summary: >-
  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 s…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-89
vendor: openldap
product: openldap
affected:
  - 'openldap >= 2.0, < 2.5.12'
  - 'openldap >= 2.6.0, < 2.6.2'
  - debian_linux = 9.0
  - debian_linux = 10.0
  - debian_linux = 11.0
  - h300s_firmware
  - h500s_firmware
  - h700s_firmware
  - h700e_firmware
  - h410s_firmware
  - h410c_firmware
patched:
  - openldap 2.6.2
published: '2022-05-04'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T17:17:38.260'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-29155'
references:
  - url: 'https://bugs.openldap.org/show_bug.cgi?id=9815'
    label: cve@mitre.org
  - url: 'https://lists.debian.org/debian-lts-announce/2022/05/msg00032.html'
    label: cve@mitre.org
  - url: 'https://security.netapp.com/advisory/ntap-20220609-0007/'
    label: cve@mitre.org
  - url: 'https://www.debian.org/security/2022/dsa-5140'
    label: cve@mitre.org
  - url: 'https://bugs.openldap.org/show_bug.cgi?id=9815'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2022/05/msg00032.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20220609-0007/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.debian.org/security/2022/dsa-5140'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.64487
epssPercentile: 0.99229
ingestedAt: '2026-10-14T17:44:53.595Z'
---

## Overview

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

- `openldap >= 2.0, < 2.5.12`
- `openldap >= 2.6.0, < 2.6.2`
- `debian_linux = 9.0`
- `debian_linux = 10.0`
- `debian_linux = 11.0`
- `h300s_firmware`
- `h500s_firmware`
- `h700s_firmware`
- `h700e_firmware`
- `h410s_firmware`
- `h410c_firmware`

## Remediation

Upgrade past the affected range:

- `openldap 2.6.2`
