Read the docs
TI-2026-39002 Aliases CVE-2026-54071GHSA-m8gf-v64p-gfmg

BabelDOC: Arbitrary Code Execution via CMap Pickle Deserialization in babeldoc/pdfminer/cmapdb.py

Priority LOW 36CWE-502Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0038 32nd percentileScored 2026-11-07
Fix Fixed BabelDOC (funstory-ai): 0.6.3BabelDOC (PyPI): 0.6.3

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

VendorProductAffected versionsFixed inStatusSource
funstory-aiBabelDOCbefore 0.6.30.6.3Patch availableCNA
—BabelDOC (PyPI)before 0.6.30.6.3Patch availableGHSA-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

  1. 2026-10-02 Threatist record created from CVE-2026-54071
  2. 2026-10-03 Alias added: GHSA-m8gf-v64p-gfmg

References

Sources