Divide By Zero Affecting lmdb package, versions [,0.98)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (40th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-LMDB-11959241
  • published18 Aug 2025
  • disclosed11 Sept 2019
  • creditUnknown

Introduced: 11 Sep 2019

CVE-2019-16228  (opens in a new tab)
CWE-369  (opens in a new tab)

How to fix?

Upgrade lmdb to version 0.98 or higher.

Overview

lmdb is an Universal Python binding for the LMDB 'Lightning' Database.

Affected versions of this package are vulnerable to Divide By Zero. 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.

References

CVSS Base Scores

version 3.1