Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.7
CVE-2019-16228: Zero Division Error in py-lmdb 0.97 Can Crash Software
CVE-2019-16228 · published 7 years ago
Summary
A bug in py-lmdb 0.97 can cause a crash if it tries to open a specially crafted database file. This could happen if an attacker provides a malicious database file. To stay safe, update to a fixed version of py-lmdb.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| pip | david wilson | lmdb | <= 0.97 |
| – | py-lmdb_project | py-lmdb |
<= 0.97 cpe:2.3:a:py-lmdb_project:py-lmdb:*:*:*:*:*:*:*:* |
| Ubuntu:16.04:LTS | canonical | py-lmdb | All versions |
Original advisory text
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 occur...
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-16228
- https://github.com/pypa/advisory-database/tree/main/vulns/lmdb/PYSEC-2019-240.ya...
- https://pypi.org/project/lmdb
- https://github.com/advisories/GHSA-ggwq-vrgp-6gv4
- https://ubuntu.com/security/CVE-2019-16228 Third Party Advisory
- https://github.com/TeamSeri0us/pocs/tree/master/lmdb/FPE Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2019-16228 Third Party Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker partial control (estimated)
Type
CWE-369Divide By Zero
Timeline
Published11 Sep 2019
Updated11 Nov 2026
First seen6 Mar 2026
Sources
GHSA-ggwq-vrgp-6gv4 · GHSA
CVE-2019-16228 · NVD
UBUNTU-CVE-2019-16228 · OSV
CVE-2019-16228 · OSV
Track software like this
Free during beta