Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. BabelDOC
  4. ›
  5. CVE-2026-54071

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

July 10, 2026

BabelDOC’s vendored PDF parser (babeldoc/pdfminer/cmapdb.py) deserializes untrusted pickle data when loading CMap files. The _load_data() method strips only NUL bytes from a PDF-controlled CMap name, then passes it directly to os.path.join() and pickle.loads(). Because Python’s os.path.join() discards all preceding path components when it encounters an absolute path segment, an attacker who embeds a hex-encoded absolute path in a crafted PDF’s /Encoding name (e.g., /#2Ftmp#2Fattacker#2Fevil) can redirect deserialization to any attacker-writable .pickle.gz file on the local system. Processing such a PDF results in arbitrary Python code execution with the privileges of the BabelDOC process.

References

  • github.com/advisories/GHSA-m8gf-v64p-gfmg
  • github.com/funstory-ai/BabelDOC/security/advisories/GHSA-m8gf-v64p-gfmg
  • nvd.nist.gov/vuln/detail/CVE-2026-54071

Code Behaviors & Features

Detect and mitigate CVE-2026-54071 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.6.3

Fixed versions

  • 0.6.3

Solution

Upgrade to version 0.6.3 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

pypi/BabelDOC/CVE-2026-54071.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:05 +0000.