Vulnerability · Published Jan 7, 2026 · Assigned by VulnCheck
CVE-2026-22185OpenLDAP LMDB mdb_load Heap Buffer Underflow in readline()
Medium 4.6
In plain English
A medium-severity out-of-bounds read in OpenLDAP from OpenLDAP Foundation. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 4% of all known vulnerabilities).
Official description
OpenLDAP Lightning Memory-Mapped Database (LMDB) versions 0.9.14 before 0.9.34, prior to commit 8e1fda8, contain a heap buffer underflow in the readline() function of mdb_load. When processing malformed input containing an embedded NUL byte, an unsigned offset calculation can underflow and cause an out-of-bounds read of one byte before the allocated heap buffer. This can cause mdb_load to crash, leading to a limited denial-of-service condition.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | lmdb | no fix listed | DEBIAN-CVE-2026-22185 |
| Debian:13 | lmdb | no fix listed | DEBIAN-CVE-2026-22185 |
| Debian:14 | lmdb | no fix listed | DEBIAN-CVE-2026-22185 |
| Debian:12 | openldap | no fix listed | DEBIAN-CVE-2026-22185 |
| Debian:13 | openldap | no fix listed | DEBIAN-CVE-2026-22185 |
| Debian:14 | openldap | no fix listed | DEBIAN-CVE-2026-22185 |
| Ubuntu:22.04:LTS | lmdb | no fix listed | UBUNTU-CVE-2026-22185 |
| Ubuntu:24.04:LTS | lmdb | no fix listed | UBUNTU-CVE-2026-22185 |
| Ubuntu:25.10 | lmdb | no fix listed | UBUNTU-CVE-2026-22185 |
| Ubuntu:26.04:LTS | lmdb | no fix listed | UBUNTU-CVE-2026-22185 |
| Ubuntu:26.10 | lmdb | no fix listed | UBUNTU-CVE-2026-22185 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| OpenLDAP Foundation | OpenLDAP | 0.9.14 – before 0.9.34 |
Weakness: CWE-125, CWE-191 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
References
- https://seclists.org/fulldisclosure/2026/Jan/5 technical-description, exploit
- https://seclists.org/fulldisclosure/2026/Jan/8 technical-description, exploit
- https://www.openldap.org/ product
- https://www.vulncheck.com/advisories/openldap-lmdb-mdb-load-heap-buffer-underflow-in-readline third-party-advisory
- https://bugs.openldap.org/show_bug.cgi?id=10421 issue-tracking, patch