Description
An issue was discovered in py-lmdb 0.97. There is a divide-by-zero error in the function mdb_env_open2 if mdb_env_read_header obtains a zero value for a certain size field. NOTE: this outcome occurs when accessing a data.mdb file supplied by an attacker.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | lmdb +1 | No fix yet | — |
| Debian 13 | lmdb +1 | No fix yet | — |
| Debian 12 | lmdb +1 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | py-lmdb | No fix yet | — |
| Ubuntu 26.04 LTS | py-lmdb | No fix yet | — |
| Ubuntu 25.10 | py-lmdb | No fix yet | — |
| Ubuntu 24.04 LTS | py-lmdb | No fix yet | — |
| Ubuntu 22.04 LTS | py-lmdb | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | py-lmdb | No fix yet | — |
| Ubuntu 18.04 LTS | py-lmdb | No fix yet | — |
| Ubuntu 16.04 LTS | py-lmdb | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-lmdb | 2.1.1-1.1 | openSUSE-SU-2026:10430-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | lmdb | <= 0.97 | — | GHSA-ggwq-vrgp-6gv4 |
| PyPI | lmdb | < 0.98 | 0.98 | PYSEC-2019-240 |
Advisories 1
- openSUSE-SU-2026:10430-1 python311-lmdb-2.1.1-1.1 on GA media SUSE / openSUSE Security Updates · Mar 26, 2026