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

- Severity: Medium 4.6 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 5% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-01-07T20:26:30.054Z
- Modified: 2026-10-29T21:17:22.293Z
- Weaknesses: CWE-125, CWE-191
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

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

(As written by CVE List.)

## Affected

- OpenLDAP Foundation OpenLDAP: from 0.9.14 before 0.9.34

## References

- <https://seclists.org/fulldisclosure/2026/Jan/5> (exploit, technical-description)
- <https://seclists.org/fulldisclosure/2026/Jan/8> (exploit, technical-description)
- <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)

## Sources

- CVE List: [CVE-2026-22185](https://www.cve.org/CVERecord?id=CVE-2026-22185), CVE Terms of Use, modified 2026-10-29
- NVD: [CVE-2026-22185](https://nvd.nist.gov/vuln/detail/CVE-2026-22185), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-22185 · Whole record: https://cve.day/CVE-2026-22185.json · Rebuilt by cve.day 2026-11-25T22:59:12.635Z
