Every CVE Search/ Get API key

CVE-2026-22185

OpenLDAP LMDB mdb_load Heap Buffer Underflow in readline()

4.6 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Active

What an attacker can affect

Confidentiality
None
Integrity
None
Availability
Low

Exploit likelihood

0.15%Up 0.1 points since Jan 8, 2026
90%50%10%1%

What each source reports

CVE List Score used 4.6

OpenLDAP LMDB mdb_load Heap Buffer Underflow in readline()

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.

Record
CVE-2026-22185
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Weakness
CWE-125, CWE-191
Updated
2026-11-02
EUVDEUVD-2026-1169 4.6

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.

Record
EUVD-2026-1169
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-gcc9-wqf3-69qj 7.0

OpenLDAP Lightning Memory-Mapped Database (LMDB) mdb_load contains a heap buffer underflow...

OpenLDAP Lightning Memory-Mapped Database (LMDB) mdb_load contains a heap buffer underflow vulnerability in the readline() function. When processing malformed input, an unsigned offset calculation can underflow a heap pointer, resulting in an out-of-bounds read of one byte before the allocated heap buffer. This may allow a local attacker to cause a denial of service and potentially disclose limited heap memory contents.

Record
GHSA-gcc9-wqf3-69qj
CVSS 4.0
7.0 HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-125
Updated
2026-11-02
NVD 4.6

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.

Record
CVE-2026-22185
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness
CWE-125, CWE-191
Updated
2026-11-02
OSVDEBIAN-CVE-2026-22185 4.6

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.

Record
DEBIAN-CVE-2026-22185
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVOESA-2026-1334 4.6

openldap security update

OpenLDAP is an open source suite of LDAP (Lightweight Directory Access Protocol) applications and development tools. LDAP is a set of protocols for accessing directory services (usually phone book style information, but other information is possible) over the Internet, similar to the way DNS (Domain Name System) information is propagated over the Internet. The openldap package contains configuration files, libraries, and documentation for OpenLDAP.

Security Fix(es):

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.(CVE-2026-22185)

Record
OESA-2026-1334
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
Show 9 moreShow less
OSVOESA-2026-1335 4.6

openldap security update

OpenLDAP is an open source suite of LDAP (Lightweight Directory Access Protocol) applications and development tools. LDAP is a set of protocols for accessing directory services (usually phone book style information, but other information is possible) over the Internet, similar to the way DNS (Domain Name System) information is propagated over the Internet. The openldap package contains configuration files, libraries, and documentation for OpenLDAP.

Security Fix(es):

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.(CVE-2026-22185)

Record
OESA-2026-1335
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVOESA-2026-1425 4.6

openldap security update

OpenLDAP is an open source suite of LDAP (Lightweight Directory Access Protocol) applications and development tools. LDAP is a set of protocols for accessing directory services (usually phone book style information, but other information is possible) over the Internet, similar to the way DNS (Domain Name System) information is propagated over the Internet. The openldap package contains configuration files, libraries, and documentation for OpenLDAP.

Security Fix(es):

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.(CVE-2026-22185)

Record
OESA-2026-1425
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVOESA-2026-1426 4.6

openldap security update

OpenLDAP is an open source suite of LDAP (Lightweight Directory Access Protocol) applications and development tools. LDAP is a set of protocols for accessing directory services (usually phone book style information, but other information is possible) over the Internet, similar to the way DNS (Domain Name System) information is propagated over the Internet. The openldap package contains configuration files, libraries, and documentation for OpenLDAP.

Security Fix(es):

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.(CVE-2026-22185)

Record
OESA-2026-1426
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVOESA-2026-1427 4.6

openldap security update

OpenLDAP is an open source suite of LDAP (Lightweight Directory Access Protocol) applications and development tools. LDAP is a set of protocols for accessing directory services (usually phone book style information, but other information is possible) over the Internet, similar to the way DNS (Domain Name System) information is propagated over the Internet. The openldap package contains configuration files, libraries, and documentation for OpenLDAP.

Security Fix(es):

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.(CVE-2026-22185)

Record
OESA-2026-1427
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVOESA-2026-1428 4.6

openldap security update

OpenLDAP is an open source suite of LDAP (Lightweight Directory Access Protocol) applications and development tools. LDAP is a set of protocols for accessing directory services (usually phone book style information, but other information is possible) over the Internet, similar to the way DNS (Domain Name System) information is propagated over the Internet. The openldap package contains configuration files, libraries, and documentation for OpenLDAP.

Security Fix(es):

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.(CVE-2026-22185)

Record
OESA-2026-1428
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Updated
2026-11-02
OSVOESA-2026-3283 4.6

lmdb security update

Symas LMDB is an extraordinarily fast, memory-efficient database we developed for the OpenLDAP Project. With memory-mapped files, it has the read performance of a pure in-memory database while retaining the persistence of standard disk-based databases.

Security Fix(es):

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.(CVE-2026-22185)

Record
OESA-2026-3283
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Updated
2026-11-02
OSVROOT-OS-DEBIAN-12-CVE-2026-22185 6.8

CVE-2026-22185 in lmdb - Patched by Root

Root has patched CVE-2026-22185 in the lmdb package for Root:Debian:12. Multiple fixed versions available.

Record
ROOT-OS-DEBIAN-12-CVE-2026-22185
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2026-22185 4.6

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.

Record
UBUNTU-CVE-2026-22185
CVSS 4.0
4.6 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Updated
2026-11-05
OSVSUSE-SU-2026:0256-1 No score

Security update for openldap2_5

This update for openldap2_5 fixes the following issues:

Security fixes:

  • CVE-2026-22185: Fixed possible crash in malicious DB (bsc#1256297)

Other fixes:

  • Update to version 2.5.20+11:

    • ITS#10421 mdb_load: check for malicious input
Record
SUSE-SU-2026:0256-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
lmdb
Alpaquita:23
0.9.29-r2 up to 0.9.29-r3
0.9.29-r3
openldap
Alpaquita:23
2.6.3-r6 up to 2.6.3-r8
2.6.3-r8
lmdb
Alpaquita:25
0.9.33-r0 up to 0.9.33-r1
0.9.33-r1
openldap
Alpaquita:25
2.6.8-r1 up to 2.6.8-r2
2.6.8-r2
lmdb
Alpaquita:stream
0.9.29-r2 up to 0.9.33-r1
0.9.33-r1
openldap
Alpaquita:stream
2.6.4-r3 up to 2.6.10-r1
2.6.10-r1
lmdb
Debian:12
All versions, plus listed versions
0.9.24-10.9.31-10.9.35-1
None known
lmdb
Debian:13
All versions, plus listed versions
0.9.31-10.9.35-1
None known
lmdb
Debian:14
All versions, plus listed versions
0.9.31-10.9.35-1
None known
openldap
Debian:12
All versions, plus listed versions
1:1.2.12-12.5.13+dfsg-52.5.13+dfsg-5+loong642.5.16+dfsg-12.5.16+dfsg-2
Show 27 moreShow less
2.5.17+dfsg-12.5.18+dfsg-12.5.18+dfsg-22.5.18+dfsg-32.5.19+dfsg-12.6.10+dfsg-12.6.13+dfsg-12.6.14+dfsg-12.6.14+dfsg-22.6.2+dfsg-1~exp12.6.2+dfsg-1~exp22.6.3+dfsg-1~exp12.6.4+dfsg-1~exp12.6.5+dfsg-1~exp12.6.6+dfsg-1~exp12.6.6+dfsg-1~exp22.6.7+dfsg-1~exp12.6.8+dfsg-1~exp12.6.8+dfsg-1~exp22.6.8+dfsg-1~exp32.6.8+dfsg-1~exp42.6.9+dfsg-12.6.9+dfsg-1~exp12.6.9+dfsg-1~exp22.6.9+dfsg-22:1.2.12.1-12:1.2.12.1-1.0.1
None known
Show 28 moreShow less
Affected packages
PackageAffectedFixed
openldap
Debian:13
All versions, plus listed versions
1:1.2.12-12.6.10+dfsg-12.6.13+dfsg-12.6.14+dfsg-12.6.14+dfsg-22:1.2.12.1-12:1.2.12.1-1.0.1
None known
openldap
Debian:14
All versions, plus listed versions
1:1.2.12-12.6.10+dfsg-12.6.13+dfsg-12.6.14+dfsg-12.6.14+dfsg-22:1.2.12.1-12:1.2.12.1-1.0.1
None known
openldap
openEuler:24.03-LTS-SP3
before 2.6.5-7.oe2403sp3
2.6.5-7.oe2403sp3
openldap
openEuler:20.03-LTS-SP4
before 2.4.50-10.oe2003sp4
2.4.50-10.oe2003sp4
openldap
openEuler:22.03-LTS-SP4
before 2.6.0-11.oe2203sp4
2.6.0-11.oe2203sp4
openldap
openEuler:24.03-LTS
before 2.6.5-7.oe2403
2.6.5-7.oe2403
openldap
openEuler:24.03-LTS-SP1
before 2.6.5-7.oe2403sp1
2.6.5-7.oe2403sp1
openldap
openEuler:24.03-LTS-SP2
before 2.6.5-7.oe2403sp2
2.6.5-7.oe2403sp2
lmdb
openEuler:24.03-LTS-SP1
before 0.9.31-3.oe2403sp1
0.9.31-3.oe2403sp1
lmdb
openEuler:24.03-LTS-SP3
before 0.9.31-3.oe2403sp3
0.9.31-3.oe2403sp3
lmdb
openEuler:24.03-LTS-SP4
before 0.9.31-3.oe2403sp4
0.9.31-3.oe2403sp4
lmdb
openEuler:20.03-LTS-SP4
before 0.9.24-5.oe2003sp4
0.9.24-5.oe2003sp4
lmdb
openEuler:22.03-LTS-SP4
before 0.9.30-3.oe2203sp4
0.9.30-3.oe2203sp4
lmdb
Root:Debian:12
before 0.9.24-1.root.io.2
0.9.24-1.root.io.20.9.24-1.root.io.10.9.24-1.aikido.3
openldap
Root:Debian:12
before 2.5.13+dfsg-5.root.io.6
2.5.13+dfsg-5.root.io.62.5.13+dfsg-5.aikido.7
rootio-lmdb
Root:Debian:12
before 0.9.24-1.root.io.2
0.9.24-1.root.io.20.9.24-1.root.io.10.9.24-1.aikido.3
rootio-openldap
Root:Debian:12
before 2.5.13+dfsg-5.root.io.6
2.5.13+dfsg-5.root.io.62.5.13+dfsg-5.aikido.7
openldap2_5
SUSE:Linux Enterprise Module for Basesystem 15 SP7
before 2.5.20+11-150500.11.38.1
2.5.20+11-150500.11.38.1
openldap2_5
SUSE:Linux Enterprise Module for Server Applications 15 SP7
before 2.5.20+11-150500.11.38.1
2.5.20+11-150500.11.38.1
openldap2_5
openSUSE:Leap 15.6
before 2.5.20+11-150500.11.38.1
2.5.20+11-150500.11.38.1
lmdb
Ubuntu:16.04:LTS
All versions, plus listed versions
0.9.15-10.9.16-10.9.17-10.9.17-3
None known
lmdb
Ubuntu:18.04:LTS
All versions, plus listed versions
0.9.21-10.9.21-1ubuntu0.1
None known
lmdb
Ubuntu:20.04:LTS
All versions, plus listed versions
0.9.23-0ubuntu10.9.24-1
None known
lmdb
Ubuntu:22.04:LTS
All versions, plus listed versions
0.9.24-10.9.24-1build10.9.24-1build2
None known
lmdb
Ubuntu:24.04:LTS
All versions, plus listed versions
0.9.31-10.9.31-1build1
None known
lmdb
Ubuntu:25.10
All versions, plus listed versions
0.9.31-1build1
None known
lmdb
Ubuntu:26.10
All versions, plus listed versions
0.9.31-1build20.9.35-1
None known
lmdb
Ubuntu:26.04:LTS
All versions, plus listed versions
0.9.31-1build10.9.31-1build2
None known

History

History
RecordedChangedSources
factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2026-22185 is a medium vulnerability (CVSS 4.6) in Openldap Foundation Openldap, published January 7, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.15%, the 4th percentile. Fixed in lmdb 0.9.29-r3.

References

Show 15 moreShow less
MoveEnter Open