CVE-2019-16227
py-lmdb Invalid write operation
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2019-16227- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2019-16227- Updated
- 2026-11-02
EUVDEUVD-2019-0080 No score
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.
- Record
EUVD-2019-0080- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-pf3p-v9xp-mrvf
9.3
py-lmdb Invalid write operation
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.
- Record
GHSA-pf3p-v9xp-mrvf- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2019-16227- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2019-16227
9.8
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.
- Record
DEBIAN-CVE-2019-16227- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVGHSA-pf3p-v9xp-mrvf
9.3
py-lmdb Invalid write operation
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.
- Record
GHSA-pf3p-v9xp-mrvf- CVSS 4.0
- 9.3 Critical
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2019-16227
9.8
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.
- Record
UBUNTU-CVE-2019-16227- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2026:10430-1 No score
python311-lmdb-2.1.1-1.1 on GA media
These are all security issues fixed in the python311-lmdb-2.1.1-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:10430-1- Updated
- 2026-11-02
OSVPYSEC-2019-239 No score
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.
- Record
PYSEC-2019-239- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
lmdbPyPI |
through 0.97 | None known |
lmdbDebian:12 |
All versions, plus listed versions 0.9.24-10.9.31-10.9.35-1 |
None known |
lmdbDebian:13 |
All versions, plus listed versions 0.9.31-10.9.35-1 |
None known |
lmdbDebian:14 |
All versions, plus listed versions 0.9.31-10.9.35-1 |
None known |
py-lmdbDebian:12 |
All versions, plus listed versions 1.4.0-11.4.1-11.4.1-21.4.1-3 |
None known |
py-lmdbDebian:13 |
All versions, plus listed versions 1.4.1-3 |
None known |
py-lmdbDebian:14 |
All versions, plus listed versions 1.4.1-3 |
None known |
lmdbPyPI |
through 0.97, plus listed versions 0.580.590.600.610.62 Show 32 moreShow less0.630.640.650.660.670.680.690.700.710.730.740.750.760.770.780.790.800.810.820.830.840.850.860.870.880.890.910.920.930.940.950.96 |
None known |
lmdbPyPI |
before 0.98, plus listed versions 0.580.590.600.610.62 Show 33 moreShow less0.630.640.650.660.670.680.690.700.710.730.740.750.760.770.780.790.800.810.820.830.840.850.860.870.880.890.910.920.930.940.950.960.97 |
0.98 |
py-lmdbUbuntu:16.04:LTS |
All versions, plus listed versions 0.86-1build10.86-1build2 |
None known |
Show 8 moreShow less
| Package | Affected | Fixed |
|---|---|---|
py-lmdbUbuntu:18.04:LTS |
All versions, plus listed versions 0.86-1build4 |
None known |
py-lmdbUbuntu:20.04:LTS |
All versions, plus listed versions 0.86-1.10.86-1.1build10.86-1.20.86-1.2build1 |
None known |
py-lmdbUbuntu:22.04:LTS |
All versions, plus listed versions 1.0.0-1build11.0.0-1build21.0.0-1build3 |
None known |
py-lmdbUbuntu:24.04:LTS |
All versions, plus listed versions 1.4.1-21.4.1-2build11.4.1-2build2 |
None known |
py-lmdbUbuntu:25.10 |
All versions, plus listed versions 1.4.1-3build2 |
None known |
py-lmdbUbuntu:26.10 |
All versions, plus listed versions 1.4.1-3build4 |
None known |
py-lmdbUbuntu:26.04:LTS |
All versions, plus listed versions 1.4.1-3build21.4.1-3build31.4.1-3build4 |
None known |
python-lmdbopenSUSE:Tumbleweed From an advisory covering 5 CVEs |
before 2.1.1-1.1 | 2.1.1-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2019-16227 is a critical vulnerability (CVSS 9.8) in Py-lmdb Project Py-lmdb, published September 11, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.04%, the 81st percentile. Fixed in lmdb 0.98.