# CVE-2026-54071: BabelDOC: Arbitrary Code Execution via CMap Pickle Deserialization in babeldoc/pdfminer/cmapdb.py

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-07-10T19:32:44.000Z
- Modified: 2026-10-14T19:10:00.297Z
- Also known as: GHSA-m8gf-v64p-gfmg, PYSEC-2026-2389
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- funstory-ai BabelDOC: < 0.6.3
- babeldoc (PyPI): before 0.6.3

## Every score

- GitHub_M: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/funstory-ai/BabelDOC/security/advisories/GHSA-m8gf-v64p-gfmg> (web)
- <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> (package)
- <https://pypi.org/project/babeldoc> (package)
- <https://github.com/advisories/GHSA-m8gf-v64p-gfmg> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54071> (advisory)

## Sources

- CVE List: [CVE-2026-54071](https://www.cve.org/CVERecord?id=CVE-2026-54071), CVE Terms of Use, modified 2026-08-21
- GitHub Advisory Database: [GHSA-m8gf-v64p-gfmg](https://github.com/advisories/GHSA-m8gf-v64p-gfmg), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-54071](https://nvd.nist.gov/vuln/detail/CVE-2026-54071), Public domain, modified 2026-10-14
- PyPA Advisory Database: [PYSEC-2026-2389](https://osv.dev/vulnerability/PYSEC-2026-2389), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-54071 · Whole record: https://cve.day/CVE-2026-54071.json · Rebuilt by cve.day 2026-11-25T22:59:34.811Z
