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


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.03% (82nd 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 Learn

Learn about Out-of-bounds Write vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-PYLMDB-2371702
  • published26 Jan 2022
  • 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 py-lmdb to version 0.98 or higher.

Overview

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