{"id":"CVE-2026-54071","published":"2026-08-21T18:55:42Z","modified":"2026-08-21T21:43:28Z","title":"BabelDOC: Arbitrary Code Execution via CMap Pickle Deserialization in babeldoc/pdfminer/cmapdb.py","vendor":"funstory-ai","product":"BabelDOC","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0038,"percentile":0.32817,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/funstory-ai/BabelDOC/security/advisories/GHSA-m8gf-v64p-gfmg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/funstory-ai/BabelDOC/commit/28f784ca6b437dbba040bfd9c67110373cd0924b","tags":["x_refsource_MISC"]},{"url":"https://github.com/funstory-ai/BabelDOC/blob/main/docs/release-notes/v0.6.3.md","tags":["x_refsource_MISC"]},{"url":"https://github.com/funstory-ai/BabelDOC/releases/tag/v0.6.3","tags":["x_refsource_MISC"]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":6.56},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"funstory-ai","affectedVersions":[{"vendor":"funstory-ai","product":"BabelDOC","versions":["< 0.6.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-21T21:00:08.745343Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"BabelDOC","vulnerableRanges":["<0.6.3"],"patched":["0.6.3"],"from":["GHSA-m8gf-v64p-gfmg","PYSEC-2026-2389"],"provenance":"source"}],"summary":{"text":"BabelDOC's vendored PDF parser, in the babeldoc/pdfminer/cmapdb.py component, deserializes untrusted pickle data when it loads CMap files, because PDF-controlled Encoding or CMapName values can point the loader at attacker-chosen paths. An attacker who can get a crafted PDF processed by BabelDOC, with a user interaction such as opening or translating the file and no prior authentication, can use absolute paths or traversal sequences to select an attacker-writable pickle file and execute arbitrary Python code with the privileges of the BabelDOC process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:30Z"},"euvd":{"id":"EUVD-2026-64058","exploited":false,"provenance":"source"}}