Out-of-bounds Write Affecting lmdb package, versions [,0.98)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.42% (61st 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-11959240
  • published18 Aug 2025
  • disclosed11 Sept 2019
  • creditUnknown

Introduced: 11 Sep 2019

CVE-2019-16224  (opens in a new tab)
CWE-787  (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 Out-of-bounds Write. An issue was discovered in py-lmdb 0.97. For certain values of md_flags, mdb_node_add does not properly set up a memcpy destination, leading to an invalid write operation. NOTE: this outcome occurs when accessing a data.mdb file supplied by an attacker.

References

CVSS Base Scores

version 3.1