CVE-2026-22185
OpenLDAP vulnerability analysis and mitigation

Overview

CVE-2026-22185 is a heap buffer underflow vulnerability in OpenLDAP's Lightning Memory-Mapped Database (LMDB) mdb_load utility, specifically in its readline() function. Affecting LMDB versions up to and including 0.9.14 (prior to commit 8e1fda8), the flaw is triggered when processing malformed input containing an embedded NUL byte, causing an unsigned offset calculation to underflow and produce an out-of-bounds read of one byte before the allocated heap buffer. This can crash mdb_load, resulting in a limited denial-of-service condition. The CVE was published on January 7, 2026, and assigned by VulnCheck. The CNA-assigned CVSS v4.0 base score is 4.6 (Medium) (VulnCheck Advisory).

Technical details

The root cause is an integer underflow (CWE-191) in an unsigned offset calculation within the readline() function of mdb_load, which then leads to an out-of-bounds read (CWE-125). When mdb_load processes a malformed input file containing an embedded NUL byte (\0), the unsigned arithmetic used to compute a buffer offset wraps around to a very large value, causing the program to read one byte before the start of the allocated heap buffer. The attack vector is local (AV:L), requires no privileges (PR:N), and requires active user interaction (UI:A) — meaning an attacker must supply a crafted input file to a user or process running mdb_load. The vulnerability was reported via the OpenLDAP bug tracker (bug #10421) and disclosed on the Full Disclosure mailing list (VulnCheck Advisory, Full Disclosure).

Impact

Successful exploitation causes mdb_load to crash, resulting in a limited denial-of-service condition for the affected utility. There is a secondary, limited risk of leaking one byte of heap memory contents adjacent to the allocated buffer, which could theoretically expose sensitive data in memory, though this is considered a low-severity information disclosure risk. Confidentiality and integrity impacts are assessed as none to negligible; the primary impact is on availability of the mdb_load process. The vulnerability does not affect the LMDB library itself during normal database operations, limiting its scope to the mdb_load data import tool (VulnCheck Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2026-22185. The EPSS score is approximately 0.014% (0.000140), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access and user interaction (supplying a malformed input file to mdb_load), significantly limiting its practical attack surface (VulnCheck Advisory).

Exploitation steps

  1. Craft malicious input: Create a malformed LMDB dump file that contains an embedded NUL byte (\0) at a position that triggers the unsigned offset underflow in the readline() function of mdb_load.
  2. Deliver the file: Provide the crafted file to a target user or automated process that invokes mdb_load (e.g., as part of a database restore or import workflow).
  3. Trigger the vulnerability: When mdb_load processes the malformed input, the unsigned offset calculation underflows, causing a read of one byte before the heap buffer boundary.
  4. Achieve denial of service: The out-of-bounds read causes mdb_load to crash, interrupting any database import operation in progress. Optionally, the attacker may attempt to infer limited heap memory contents from the crash behavior, though this is highly constrained (VulnCheck Advisory, Full Disclosure).

Indicators of compromise

  • Logs: Unexpected crash or segmentation fault entries in system logs (e.g., dmesg, /var/log/syslog) referencing the mdb_load process.
  • Process: Abnormal termination of mdb_load with a signal such as SIGSEGV or SIGABRT, particularly when processing externally supplied input files.
  • File System: Presence of unusually crafted LMDB dump files (containing embedded NUL bytes in unexpected positions) in directories used for database import/restore operations.

Mitigation and workarounds

The fix is available in the OpenLDAP LMDB repository as commit 8e1fda8, which corrects the unsigned offset calculation in the readline() function. Users should update to an LMDB version incorporating this commit (post-0.9.14). As a workaround, restrict access to the mdb_load utility and validate or sanitize all input files before processing. Linux distributions (e.g., SUSE) have begun issuing updated packages addressing this vulnerability (VulnCheck Advisory, OpenLDAP Bug Tracker).

Community reactions

The vulnerability was initially disputed by VulnCheck (a "disputed" tag was added on January 8, 2026, then removed on January 14, 2026), suggesting some initial disagreement about its severity or exploitability before the final assessment was settled. Coverage has been limited to vulnerability aggregators, security mailing lists (Full Disclosure), and distribution security advisories (e.g., SUSE, INCIBE-CERT), with no notable broader media or researcher commentary (Full Disclosure, Full Disclosure Jan/8).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

openldap

Affected

sid

openldap

Affected

trixie

openldap

Affected

Ubuntu

Unknown

bionic (esm-apps)

lmdb

Deferred

bionic (esm-infra)

openldap

Not Affected

devel

openldap

Not Affected

focal (esm-infra)

openldap

Not Affected

jammy

openldap

Not Affected

noble

openldap

Not Affected

questing

openldap

Not Affected

resolute

openldap

Not Affected

RHEL / CentOS

Affected

OpenShift

openshift/ose-rhel-coreos-8

Affected

RHEL 8

openldap.src

Affected

RHEL 9

openldap.src

Affected

RHEL 10

openldap.src

Affected

SourceThis report was generated using AI

Related OpenLDAP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2022-29155CRITICAL9.8
  • NixOS logoNixOS
  • openldap2-devel-32bit
NoYesMay 04, 2022
CVE-2023-2953HIGH7.5
  • NixOS logoNixOS
  • openldap2-back-perl
NoYesMay 30, 2023
CVE-2020-25710HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:openldap:openldap
NoYesMay 28, 2021
CVE-2020-25709HIGH7.5
  • NixOS logoNixOS
  • compat-libldap-2_3-0
NoYesMay 18, 2021
CVE-2026-22185MEDIUM4.6
  • OpenLDAP logoOpenLDAP
  • openldap2_5-contrib
NoYesJan 07, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management