CVE-2019-16228 py-lmdb Divide by Zero interruptions
An attacker can cause a denial of service in the py-lmdb library by providing a malicious data file that triggers a divide-by-zero error.
- 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-16228?
CVE-2019-16228 is a high-severity denial of service 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. 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.
Weakness: CWE-369
Which versions are affected by CVE-2019-16228?
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-16228?
Upgrade lmdb to 0.98 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2019-16228 being exploited?
There is no known exploitation of CVE-2019-16228 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2019-16228, ECHO-3df1-1eaf-4827, GHSA-ggwq-vrgp-6gv4, PYSEC-2019-240, UBUNTU-CVE-2019-16228.