py-lmdb — security advisory
An issue was discovered in py-lmdb 0.97. For certain values of mp_flags, mdb_page_touch does not properly set up mc->mc_pg[mc->top], leading to an invalid write operation. NOTE: this outcome occurs when accessing a data.mdb file supplied by an attacker.
- Products
- py-lmdb
- Affected versions
- 0.86-1.1, 0.86-1.1build1, 0.86-1.2, 0.86-1.2build1, 0.86-1build1, 0.86-1build2, 0.86-1build4, 1.0.0-1build1, 1.0.0-1build2, 1.0.0-1build3, 1.4.1-2, 1.4.1-2build1, 1.4.1-2build2, 1.4.1-3build2, 1.4.1-3build3, 1.4.1-3build4
- Fixed versions
- Not specified
- CVEs
- CVE-2019-16225
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:28 UTC · Revision 1
Source evidence
An issue was discovered in py-lmdb 0.97. For certain values of mp_flags, mdb_page_touch does not properly set up mc->mc_pg[mc->top], leading to an invalid write operation. NOTE: this outcome occurs when accessing a data.mdb file supplied by an attacker.
osv:UBUNTU-CVE-2019-16225
py-lmdb
Fixed versions: Not specified
py-lmdb
Fixed versions: Not specified
py-lmdb
Fixed versions: Not specified
py-lmdb
Fixed versions: Not specified
py-lmdb
Fixed versions: Not specified
py-lmdb
Fixed versions: Not specified
py-lmdb
Fixed versions: Not specified
py-lmdb
Fixed versions: Not specified
Complete source record
{
"id": "e6f207261c29fa24c3c484ae427b115a89b67799c5ef9f5c30bbd3cd9b23bab5",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2019-16225",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2019-16225",
"summary": "An issue was discovered in py-lmdb 0.97. For certain values of mp_flags, mdb_page_touch does not properly set up mc->mc_pg[mc->top], leading to an invalid write operation. NOTE: this outcome occurs when accessing a data.mdb file supplied by an attacker.",
"evidence": "osv:UBUNTU-CVE-2019-16225",
"products": [
{
"name": {
"value": "py-lmdb",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.86-1build1",
"evidence": "/affected/0/versions"
},
{
"value": "0.86-1build2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "py-lmdb",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.86-1build4",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "py-lmdb",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.86-1.1",
"evidence": "/affected/2/versions"
},
{
"value": "0.86-1.1build1",
"evidence": "/affected/2/versions"
},
{
"value": "0.86-1.2",
"evidence": "/affected/2/versions"
},
{
"value": "0.86-1.2build1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "py-lmdb",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0.0-1build1",
"evidence": "/affected/3/versions"
},
{
"value": "1.0.0-1build2",
"evidence": "/affected/3/versions"
},
{
"value": "1.0.0-1build3",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "py-lmdb",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.4.1-2",
"evidence": "/affected/4/versions"
},
{
"value": "1.4.1-2build1",
"evidence": "/affected/4/versions"
},
{
"value": "1.4.1-2build2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "py-lmdb",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.4.1-3build2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "py-lmdb",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.4.1-3build4",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "py-lmdb",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.4.1-3build2",
"evidence": "/affected/7/versions"
},
{
"value": "1.4.1-3build3",
"evidence": "/affected/7/versions"
},
{
"value": "1.4.1-3build4",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2019-16225",
"aliases": [
"UBUNTU-CVE-2019-16225"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "py-lmdb",
"purl": "pkg:deb/ubuntu/py-lmdb?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"0.86-1build1",
"0.86-1build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-16225.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-lmdb",
"binary_version": "0.86-1build2"
},
{
"binary_name": "python3-lmdb",
"binary_version": "0.86-1build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "py-lmdb",
"purl": "pkg:deb/ubuntu/py-lmdb?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"0.86-1build4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-16225.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-lmdb",
"binary_version": "0.86-1build4"
},
{
"binary_name": "python3-lmdb",
"binary_version": "0.86-1build4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "py-lmdb",
"purl": "pkg:deb/ubuntu/py-lmdb?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.86-1.1",
"0.86-1.1build1",
"0.86-1.2",
"0.86-1.2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-16225.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-lmdb",
"binary_version": "0.86-1.2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "py-lmdb",
"purl": "pkg:deb/ubuntu/py-lmdb?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.0.0-1build1",
"1.0.0-1build2",
"1.0.0-1build3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-16225.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-lmdb",
"binary_version": "1.0.0-1build3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "py-lmdb",
"purl": "pkg:deb/ubuntu/py-lmdb?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.4.1-2",
"1.4.1-2build1",
"1.4.1-2build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-16225.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-lmdb",
"binary_version": "1.4.1-2build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "py-lmdb",
"purl": "pkg:deb/ubuntu/py-lmdb?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.4.1-3build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-16225.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-lmdb",
"binary_version": "1.4.1-3build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "py-lmdb",
"purl": "pkg:deb/ubuntu/py-lmdb?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.4.1-3build4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-16225.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-lmdb",
"binary_version": "1.4.1-3build4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "py-lmdb",
"purl": "pkg:deb/ubuntu/py-lmdb?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.4.1-3build2",
"1.4.1-3build3",
"1.4.1-3build4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-16225.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-lmdb",
"binary_version": "1.4.1-3build4"
}
]
}
}
],
"modified": "2026-10-17T12:55:25.071104900Z",
"provider": "osv",
"upstream": [
"CVE-2019-16225"
],
"references": [
"https://ubuntu.com/security/CVE-2019-16225",
"https://github.com/TeamSeri0us/pocs/tree/master/lmdb/lmdb%20write%20to%20illegal%20address",
"https://www.cve.org/CVERecord?id=CVE-2019-16225"
]
},
"related_cves": [
{
"value": "CVE-2019-16225",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 353717,
"published_at": "2019-09-11T15:15:00+00:00"
}