---
id: "CVE-2026-124553"
page: "https://infrastack.ai/live/CVE-2026-124553"
kind: "vulnerability"
aliases: ["CVE-2026-124553"]
title: "BabelDOC: crafted PDF exhausts CPU and memory, stalling translation"
severity: "high"
cvss: 8.7
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["package", "pdf", "python", "translation"]
not_affected_if: ["trusted-input-only", "versions-before-0.3.61-or-0.7.0-plus"]
published_at: "2026-11-08T15:16:51+00:00"
first_seen_at: "2026-11-08T15:18:22+00:00"
updated_at: "2026-11-08T15:20:09+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-124553", "first_seen_at": "2026-11-08T15:18:22+00:00"}]
exploit_sources: []
---

# BabelDOC: crafted PDF exhausts CPU and memory, stalling translation

Link for people: https://infrastack.ai/live/CVE-2026-124553 (this .md is for agents)

BabelDOC, a PDF translation library, mishandles huge bfrange and cidrange spans in embedded ToUnicode CMaps. A remote attacker who submits a crafted PDF can exhaust CPU and memory and stall the translation worker.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed BabelDOC version with `pip show babeldoc` and compare it to the fixed range below.
- Look for services that accept untrusted PDFs and pass them to BabelDOC for translation.

## Fix

- BabelDOC `0.7.0` (affected range is `0.3.61` before `0.7.0`).

## Timeline

- 2026-11-08T15:18:22+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-124553

## Documents

- [advisory] Vendor advisory: github.com https://github.com/funstory-ai/BabelDOC/security/advisories/GHSA-wrv8-h9rp-6fqq
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/babeldoc-from-0.3.61-before-0.7.0-denial-of-service-via-tounicode-cmap-parsing
- [fix] Patch: github.com https://github.com/funstory-ai/BabelDOC/commit/39a6e9eafeecd39404b94b2f71e88ea058753dd5

## From the sources

BabelDOC from 0.3.61 before 0.7.0 contains a resource exhaustion vulnerability that allows remote attackers to exhaust CPU and memory by supplying unbounded bfrange and cidrange spans. Attackers can submit a crafted PDF whose embedded ToUnicode CMap declares a huge range, driving billions of loop iterations and stalling the translation worker.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
