BabelDOC: Arbitrary Code Execution via CMap Pickle Deserialization in babeldoc/pdfminer/cmapdb.py
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-502.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| funstory-ai | BabelDOC | before 0.6.3 | 0.6.3 | Patch available | CNA |
| — | BabelDOC (PyPI) | before 0.6.3 | 0.6.3 | Patch available | GHSA-m8gf-v64p-gfmg |
- BabelDOC Vendorfunstory-ai Affected before 0.6.3 Fixed in 0.6.3 Patch available CNA
- BabelDOC (PyPI) Vendor— Affected before 0.6.3 Fixed in 0.6.3 Patch available GHSA-m8gf-v64p-gfmg
Remediation
- Fix · CNA BabelDOC (funstory-ai) Fixed in 0.6.3
- Fix · GHSA-m8gf-v64p-gfmg BabelDOC (PyPI) Fixed in 0.6.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54071
- 2026-10-03 Alias added: GHSA-m8gf-v64p-gfmg
References
Other 5
- https://github.com/funstory-ai/BabelDOC/security/advisories/GHSA-m8gf-v64p-gfmg
- https://github.com/funstory-ai/BabelDOC/commit/28f784ca6b437dbba040bfd9c67110373cd0924b
- https://github.com/funstory-ai/BabelDOC/blob/main/docs/release-notes/v0.6.3.md
- https://github.com/funstory-ai/BabelDOC/releases/tag/v0.6.3
- https://github.com/funstory-ai/BabelDOC
Sources
- CVE-2026-54071 · CVE Program
- CVE-2026-54071 · NVD
- FIRST EPSS
- GHSA-m8gf-v64p-gfmg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences