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.4% (60th 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-11959239
  • published18 Aug 2025
  • disclosed11 Sept 2019
  • creditUnknown

Introduced: 11 Sep 2019

CVE-2019-16227  (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 mn_flags, mdb_cursor_set triggers a memcpy with an invalid write operation within mdb_xcursor_init1. NOTE: this outcome occurs when accessing a data.mdb file supplied by an attacker.

References

CVSS Base Scores

version 3.1