UBUNTU-CVE-2025-64512
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.
UBUNTU-CVE-2025-64512
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:UBUNTU-CVE-2025-64512
pdfminer
Source reference: /affected/0/package/name
- Affected versions
- 20110515+dfsg-1
Source reference:
/affected/0/versions20140328+dfsg-1Source reference:
/affected/0/versions - Fixed versions
- 20140328+dfsg-1ubuntu0.16.04.1~esm1
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
pdfminer
Source reference: /affected/1/package/name
- Affected versions
- 20140328+dfsg-1
Source reference:
/affected/1/versions - Fixed versions
- 20140328+dfsg-1ubuntu0.18.04.1~esm1
Source reference:
/affected/1/ranges - Prerequisites
- Not stated in this record
pdfminer
Source reference: /affected/2/package/name
- Affected versions
- 20181108+dfsg-3
Source reference:
/affected/2/versions20191020+dfsg-1Source reference:
/affected/2/versions20191020+dfsg-2Source reference:
/affected/2/versions - Fixed versions
- 20191020+dfsg-2ubuntu0.1~esm1
Source reference:
/affected/2/ranges - Prerequisites
- Not stated in this record
pdfminer
Source reference: /affected/3/package/name
- Affected versions
- 20200726-1
Source reference:
/affected/3/versions20201018+dfsg-1Source reference:
/affected/3/versions20220319+dfsg-1Source reference:
/affected/3/versions - Fixed versions
- 20220319+dfsg-1ubuntu0.1~esm1
Source reference:
/affected/3/ranges - Prerequisites
- Not stated in this record
pdfminer
Source reference: /affected/4/package/name
- Affected versions
- 20221105+dfsg-1
Source reference:
/affected/4/versions - Fixed versions
- 20221105+dfsg-1ubuntu0.1~esm1
Source reference:
/affected/4/ranges - Prerequisites
- Not stated in this record
pdfminer
Source reference: /affected/5/package/name
- Affected versions
- 20221105+dfsg-1
Source reference:
/affected/5/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "20140328+dfsg-1ubuntu0.16.04.1~esm1"
}
]
}
],
"package": {
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps-legacy%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"20110515+dfsg-1",
"20140328+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20140328+dfsg-1ubuntu0.16.04.1~esm1"
},
{
"binary_name": "python-pdfminer",
"binary_version": "20140328+dfsg-1ubuntu0.16.04.1~esm1"
}
],
"availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "20140328+dfsg-1ubuntu0.18.04.1~esm1"
}
]
}
],
"package": {
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"20140328+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20140328+dfsg-1ubuntu0.18.04.1~esm1"
},
{
"binary_name": "python-pdfminer",
"binary_version": "20140328+dfsg-1ubuntu0.18.04.1~esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "20191020+dfsg-2ubuntu0.1~esm1"
}
]
}
],
"package": {
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"20181108+dfsg-3",
"20191020+dfsg-1",
"20191020+dfsg-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20191020+dfsg-2ubuntu0.1~esm1"
},
{
"binary_name": "python3-pdfminer",
"binary_version": "20191020+dfsg-2ubuntu0.1~esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "20220319+dfsg-1ubuntu0.1~esm1"
}
]
}
],
"package": {
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"20200726-1",
"20201018+dfsg-1",
"20220319+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20220319+dfsg-1ubuntu0.1~esm1"
},
{
"binary_name": "python3-pdfminer",
"binary_version": "20220319+dfsg-1ubuntu0.1~esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "20221105+dfsg-1ubuntu0.1~esm1"
}
]
}
],
"package": {
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps%2Fnoble",
"ecosystem": "Ubuntu:Pro:24.04:LTS"
},
"versions": [
"20221105+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20221105+dfsg-1ubuntu0.1~esm1"
},
{
"binary_name": "python3-pdfminer",
"binary_version": "20221105+dfsg-1ubuntu0.1~esm1"
}
],
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pdfminer",
"purl": "pkg:deb/ubuntu/pdfminer?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"20221105+dfsg-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pdfminer-data",
"binary_version": "20221105+dfsg-1"
},
{
"binary_name": "python3-pdfminer",
"binary_version": "20221105+dfsg-1"
}
]
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #23707 · Revision 1
- Added to Heist Feed
- Publisher date