ubuntu-cve-2025-64512
Vulnerability from osv_ubuntu
Published
2025-11-10 22:15
Modified
2026-05-20 15:22
Summary
Details
Pdfminer.six is a community maintained fork of the original PDFMiner, a tool for extracting information from PDF documents. Prior to version 20251107, pdfminer.six will execute arbitrary code from a malicious pickle file if provided with a malicious PDF file. The CMapDB._load_data() function in pdfminer.six uses pickle.loads() to deserialize pickle files. These pickle files are supposed to be part of the pdfminer.six distribution stored in the cmap/ directory, but a malicious PDF can specify an alternative directory and filename as long as the filename ends in .pickle.gz. A malicious, zipped pickle file can then contain code which will automatically execute when the PDF is processed. Version 20251107 fixes the issue.
Severity
8.6 (High)
7.8 (High)
N/A (UNKNOWN)
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20140328+dfsg-1"
},
{
"binary_name": "python-pdfminer",
"binary_version": "20140328+dfsg-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer@20140328+dfsg-1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20110515+dfsg-1",
"20140328+dfsg-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20140328+dfsg-1"
},
{
"binary_name": "python-pdfminer",
"binary_version": "20140328+dfsg-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer@20140328+dfsg-1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20140328+dfsg-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20191020+dfsg-2"
},
{
"binary_name": "python3-pdfminer",
"binary_version": "20191020+dfsg-2"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer@20191020+dfsg-2?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20181108+dfsg-3",
"20191020+dfsg-1",
"20191020+dfsg-2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20220319+dfsg-1"
},
{
"binary_name": "python3-pdfminer",
"binary_version": "20220319+dfsg-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer@20220319+dfsg-1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20200726-1",
"20201018+dfsg-1",
"20220319+dfsg-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20221105+dfsg-1"
},
{
"binary_name": "python3-pdfminer",
"binary_version": "20221105+dfsg-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer@20221105+dfsg-1?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20221105+dfsg-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20221105+dfsg-1"
},
{
"binary_name": "python3-pdfminer",
"binary_version": "20221105+dfsg-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer@20221105+dfsg-1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20221105+dfsg-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20260107+dfsg-1"
},
{
"binary_name": "python3-pdfminer",
"binary_version": "20260107+dfsg-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer@20260107+dfsg-1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20221105+dfsg-1",
"20221105+dfsg-1.1",
"20260107+dfsg-1"
]
}
],
"aliases": [],
"details": "Pdfminer.six is a community maintained fork of the original PDFMiner, a tool for extracting information from PDF documents. Prior to version 20251107, pdfminer.six will execute arbitrary code from a malicious pickle file if provided with a malicious PDF file. The `CMapDB._load_data()` function in pdfminer.six uses `pickle.loads()` to deserialize pickle files. These pickle files are supposed to be part of the pdfminer.six distribution stored in the `cmap/` directory, but a malicious PDF can specify an alternative directory and filename as long as the filename ends in `.pickle.gz`. A malicious, zipped pickle file can then contain code which will automatically execute when the PDF is processed. Version 20251107 fixes the issue.",
"id": "UBUNTU-CVE-2025-64512",
"modified": "2026-05-20T15:22:58Z",
"published": "2025-11-10T22:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2025-64512"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2025-64512"
},
{
"type": "REPORT",
"url": "https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp"
},
{
"type": "REPORT",
"url": "https://github.com/pdfminer/pdfminer.six/commit/b808ee05dd7f0c8ea8ec34bdf394d40e63501086"
},
{
"type": "REPORT",
"url": "https://github.com/pdfminer/pdfminer.six/releases/tag/20251107"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2025-64512"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…