CVE-2026-54071 json
BabelDOC: Arbitrary Code Execution via CMap Pickle Deserialization in babeldoc/pdfminer/cmapdb.py
published 2026-07-10 3 mo ago modified 2026-10-14 25 d ago also GHSA-m8gf-v64p-gfmg , PYSEC-2026-2389 , EUVD-2026-64058
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 32%
- public exploits
- 0
- none known
Summary
BabelDOC is a document translation tool. Prior to 0.6.3, BabelDOC's vendored PDF parser in babeldoc/pdfminer/cmapdb.py deserializes untrusted pickle data when CMapDB._load_data() loads CMap files. PDF-controlled Encoding or CMapName values and embedded PostScript usecmap operators can reach this sink after path separators are decoded, while _normalize_cmap_name() removes only a leading slash. Absolute paths or traversal sequences can escape the trusted CMap directories through os.path.join(), select an attacker-writable .pickle.gz file, and cause pickle.loads() to execute arbitrary Python code with the privileges of the BabelDOC process. This issue is fixed in version 0.6.3.
Patch / fix
- pypi babeldoc 0.6.3
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 2 mo ago
Exploit prediction
0.38% chance of exploitation in the next 30 days, higher than 32% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | babeldoc | <0.6.3 |
0.6.3 |
Affected products
- funstory-ai BabelDOC
Classification
- Weakness
-
- CWE-502 Deserialization of Untrusted Data
References
- github.com /funstory-ai/BabelDOC/commit/28f784ca6b437dbba040bfd9c67110373cd0924b
-
github.com
/funstory-ai/BabelDOC/security/advisories/GHSA-m8gf-v64p-gfmg
web
- github.com /funstory-ai/BabelDOC/blob/main/docs/release-notes/v0.6.3.md
- github.com /funstory-ai/BabelDOC/releases/tag/v0.6.3
-
github.com
/funstory-ai/BabelDOC
package
-
pypi.org
/project/babeldoc
package
-
github.com
/advisories/GHSA-m8gf-v64p-gfmg
advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-54071
advisory
Sources
- CVE List CVE-2026-54071
- GitHub Advisory GHSA-m8gf-v64p-gfmg
- NVD CVE-2026-54071
- OSV PYSEC-2026-2389
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.