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).

Severity (CVSS 4.0)4.6Medium
Exploit odds (30 days)0.2%top 95.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12lmdbno fix listedDEBIAN-CVE-2026-22185
Debian:13lmdbno fix listedDEBIAN-CVE-2026-22185
Debian:14lmdbno fix listedDEBIAN-CVE-2026-22185
Debian:12openldapno fix listedDEBIAN-CVE-2026-22185
Debian:13openldapno fix listedDEBIAN-CVE-2026-22185
Debian:14openldapno fix listedDEBIAN-CVE-2026-22185
Ubuntu:22.04:LTSlmdbno fix listedUBUNTU-CVE-2026-22185
Ubuntu:24.04:LTSlmdbno fix listedUBUNTU-CVE-2026-22185
Ubuntu:25.10lmdbno fix listedUBUNTU-CVE-2026-22185
Ubuntu:26.04:LTSlmdbno fix listedUBUNTU-CVE-2026-22185
Ubuntu:26.10lmdbno fix listedUBUNTU-CVE-2026-22185

Affected products (as reported)

VendorProductVersions
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