# CVE-2019-16226: LMDB invalid write

- 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.57%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-09-11T14:47:13.000Z
- Modified: 2026-06-17T02:21:56.273Z
- Also known as: GHSA-r8g9-w4f3-9crm, PYSEC-2019-238
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

An issue was discovered in py-lmdb 0.97. mdb_node_del does not validate a memmove in the case of an unexpected node->mn_hi, leading to an invalid write operation. 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/lmdb%20memory%20corruption%20vuln> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-16226> (advisory)
- <https://github.com/jnwatson/py-lmdb/issues/210> (web)
- <https://github.com/LMDB/lmdb/blob/mdb.master/libraries/liblmdb/mdb.c#L8443-L8498> (web)
- <https://github.com/jnwatson/py-lmdb> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/lmdb/PYSEC-2019-238.yaml> (web)
- <https://pypi.org/project/lmdb> (package, web)
- <https://github.com/advisories/GHSA-r8g9-w4f3-9crm> (advisory)

## Sources

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

---

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