# CVE-2019-16228: py-lmdb Divide by Zero interruptions

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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): 1.77%, higher than 78% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-09-11T14:46:45.000Z
- Modified: 2026-06-17T02:21:56.553Z
- Also known as: GHSA-ggwq-vrgp-6gv4, PYSEC-2019-240
- Weaknesses: CWE-369
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- lmdb (PyPI): up to 0.97; before 0.98
- py-lmdb_project py-lmdb: up to 0.97

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/TeamSeri0us/pocs/tree/master/lmdb/FPE> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-16228> (advisory)
- <https://github.com/jnwatson/py-lmdb> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/lmdb/PYSEC-2019-240.yaml> (web)
- <https://pypi.org/project/lmdb> (package, web)
- <https://github.com/advisories/GHSA-ggwq-vrgp-6gv4> (advisory)

## Sources

- CVE List: [CVE-2019-16228](https://www.cve.org/CVERecord?id=CVE-2019-16228), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-ggwq-vrgp-6gv4](https://github.com/advisories/GHSA-ggwq-vrgp-6gv4), CC-BY-4.0, modified 2024-09-30
- NVD: [CVE-2019-16228](https://nvd.nist.gov/vuln/detail/CVE-2019-16228), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2019-240](https://osv.dev/vulnerability/PYSEC-2019-240), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2019-16228 · Whole record: https://cve.day/CVE-2019-16228.json · Rebuilt by cve.day 2026-11-25T22:57:46.910Z
