CVE-2026-22185 MEDIUM

CVE-2026-22185: OpenLDAP LMDB mdb_load Heap Buffer Underflow in readline()

Vendor Openldap Foundation
Product OpenLDAP
Weakness CWE-125
Published January 7, 2026
Last update May 25, 2026

CVSS base score

4.6/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

CVSS 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

What the vulnerability does

01Description

OpenLDAP Lightning Memory-Mapped Database (LMDB) versions up to and including 0.9.14, 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.

Key dates

02Disclosure timeline

January 7, 2026 CVE published
May 25, 2026 Record updated