CVE-2019-16227: py-lmdb Invalid write operation
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.40955%
CWE
Published
5/24/2022
Updated
9/30/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| lmdb | pip | <= 0.97 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly identifies mdb_cursor_set as the trigger and mdb_xcursor_init1 as the location of the invalid memcpy operation. Both functions are part of the LMDB C code embedded in py-lmdb (typically in lib/mdb.c). The CWE-787 classification confirms an out-of-bounds write, which aligns with the described memcpy behavior. The functions' roles in cursor initialization and flag handling directly match the attack vector involving malicious data.mdb files.