py-lmdb Invalid write operation
Date: 2022-05
Affected: pip/lmdb
Attack vector: other
Category: vulnerability-disclosure
Severity: Critical
CVE: CVE-2019-16227
CWE: CWE-787
CVSS: 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

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.


Mitigations:

Architectural layers (MAESTRO):