CVE-2019-16226 LMDB invalid write
An attacker can trigger an invalid write operation in py-lmdb by providing a malicious data.mdb file, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-16226?
CVE-2019-16226 is a high-severity memory corruption vulnerability in n/a, published on 11 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-787
Which versions are affected by CVE-2019-16226?
3 open source packages ship an affected version, including lmdb. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
lmdb PyPI | All versions to 0.97 | None |
lmdb PyPI | All versions to 0.97 | None |
lmdb PyPI | All versions | 0.98 |
Products include Py-Lmdb Project Py-Lmdb.
How do I fix CVE-2019-16226?
Upgrade lmdb to 0.98 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2019-16226 being exploited?
There is no known exploitation of CVE-2019-16226 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2019-16226, ECHO-638f-24bb-6848, GHSA-r8g9-w4f3-9crm, PYSEC-2019-238, UBUNTU-CVE-2019-16226.