Skip to main content

BabelDOC CVE-2026-124553

| EUVDEUVD-2026-119609 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-11-08 VulnCheck GHSA-2w74-49x3-cmf5
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted PDF to translation worker
  2. Exploit
    Embedded ToUnicode CMap declares huge bfrange/cidrange
  3. Execution
    Parser materializes billions of mapping entries
  4. Impact
    CPU/memory exhausted, worker stalls or OOM-killed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a deployment feed an attacker-controlled PDF into BabelDOC's translation pipeline (versions 0.3.61 through 0.6.4); the malicious PDF must carry an embedded /ToUnicode CMap stream whose bfrange or cidrange declares an oversized span, because the legacy pdfminer CMapParser and the newer Python ToUnicode runtime insert one entry per value with only operand byte-length equality checked (no span cap). No authentication, user interaction, or special product configuration is needed (PR:N/UI:N) - the limiting factor is purely whether untrusted PDFs reach the parser. Risk is eliminated by upgrading to 0.7.0, where Rust interval-based parsing with a default-on limit replaces the vulnerable Python parsers; the maintainer notes subprocess/container isolation with hard memory, CPU, and timeout limits reduces exploit preconditions but is not equivalent to the fix, and no backports are provided for older release lines.

Impact

All signals agree this is a genuine but availability-only (DoS) issue, not a confidentiality/integrity compromise. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a remotely reachable, low-complexity trigger needing no authentication and no user interaction, and impact is confined to VA:H with VC:N/VI:N - the 8.7 score is driven entirely by the ease of exhausting resources, not by data exposure. The vendor/reporter priority (vuln.today 'this_week', not act_now/emergency) and the absence of CISA KEV indicate no confirmed active exploitation, so urgency is elevated-but-not-emergency. EPSS is not provided in the input, so probabilistic exploitation likelihood cannot be stated. The practical risk hinges on one deployment fact the raw score cannot capture: exploitation requires the BabelDOC translation worker to actually ingest attacker-supplied PDFs; where it does, the parser-level reproduction in the GHSA (a ~40-byte range yielding ~4.3e9 iterations, measured OOM-kill under a 1 GB limit on 0.6.4) shows the DoS is cheap and reliable. Where only trusted PDFs are processed, real-world risk drops sharply despite the high CVSS.

Exploit ScenarioDerived

An attacker submits a crafted PDF to a service or workflow that uses BabelDOC to translate documents. The PDF embeds a ToUnicode CMap whose bfrange/cidrange declares an enormous span (e.g. <00000000>-<FFFFFFFF>), forcing the parser to materialize billions of per-code entries and driving CPU to a stall or an out-of-memory kill of the translation worker. A parser-level reproduction with timing and OOM evidence against version 0.6.4 is documented in the GHSA advisory, though it is not verified as a packaged working exploit run through the full translation pipeline.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 08, 2026

Resource exhaustion in BabelDOC lets a crafted PDF stall or kill the translation worker that parses it: an embedded /ToUnicode CMap stream declaring an oversized bfrange or cidrange span drives per-value loop iterations running into the billions, consuming CPU and memory until the worker stalls or is OOM-killed in versions 0.3.61 through 0.6.4. Impact is availability-only - the CVSS 4.0 base of 8.7 carries VC:N/VI:N/VA:H, and both the published vector and the assessed CVSS:3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) confirm no privileges or user interaction are required, so the only precondition is that untrusted PDFs reach the translation pipeline. Version 0.7.0 replaces both vulnerable Python parsers with a Rust implementation that enforces a default-on mapping limit; no public exploit code was identified at time of analysis.

RemediationAI

Upgrade to BabelDOC 0.7.0, which is the vendor-released fix: the Rust ToUnicode parser added there represents range mappings as intervals, enforces a default-on limit on retained mapping data, and raises ParserResourceLimitError on oversized mappings instead of expanding them, and the same release applies default-on limits to other parser amplification points. The relevant changes are in commit 39a6e9eafeecd39404b94b2f71e88ea058753dd5 and documented in the release notes at https://github.com/funstory-ai/BabelDOC/blob/main/docs/release-notes/v0.7.0.md, with the advisory at https://github.com/funstory-ai/BabelDOC/security/advisories/GHSA-wrv8-h9rp-6fqq. Note that the maintainer publishes security fixes only in the latest release and does not provide backports for older minor, patch, or release lines, so pinning to a 0.6.x branch is not a supported remediation. If upgrading immediately is not possible, the maintainer's stated risk reduction is to isolate parsing in a subprocess or container with hard memory and CPU limits plus a timeout - this blocks the OOM/CPU-stall outcome by killing the constrained worker, but the maintainer explicitly states it reduces known exploit preconditions without being equivalent to the fix, and the same guidance recommends external timeouts and memory limits whenever untrusted PDFs are processed. Because exploitation needs no authentication or user interaction, any deployment that accepts PDFs from untrusted sources should be treated as exposed until it runs 0.7.0.

Affected VersionsENISA

BabelDOC 0.3.61 <0.7.0

Affected Packages

euvd babeldoc fix: 0.7.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PDF font dictionaries can carry a /ToUnicode CMap stream that maps character codes to Unicode values, and BabelDOC parses those streams with two separate Python implementations: the legacy pdfminer CMapParser (babeldoc/pdfminer/cmapdb.py, bfrange around line 435 and cidrange around line 385, reached from pdffont.py when constructing fonts from embedded streams) and the newer runtime at babeldoc/format/pdf/new_parser/runtime/to_unicode_parser_runtime.py (bfrange around line 155 and _apply_cidrange around line 124, where _nunpack accepts operands of any length). In both, the span computed as end - start + 1 from attacker-supplied hex strings drives a loop that inserts one mapping entry per value, and the only validation is that the operand byte lengths match - there is no cap on the span itself. Roughly 40 bytes of hex therefore express a span of about 4.3e9, and the reporter's saved parser-level runs show escalating times (0.41 s at a 0x000FFFFF span, 6.72 s at 0x00FFFFFF on the legacy parser, 18.44 s on the new runtime) with a full 0x00000000-0xFFFFFFFF span OOM-killing a 1 GB-constrained process with exit 137. This is CWE-770 (allocation of resources without limits or throttling), classified as CWE-400 in the upstream advisory; the weakness is amplification during CMap range expansion rather than memory corruption or any read/write primitive, which is consistent with the availability-only impact (VA:H, VC:N, VI:N). The 0.7.0 fix moves ToUnicode handling into a Rust parser that compiles range mappings as intervals instead of materializing every code in the range, applies a default-on limit to retained mapping data, and aborts oversized mappings with ParserResourceLimitError.

Know when Babeldoc gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

A crafted PDF is parsed remotely with no authentication or user interaction (AV:N/AC:L/PR:N/UI:N); impact is resource exhaustion only, so C:N/I:N/A:H with unchanged scope.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

Uncontrolled resource consumption (allocation of resources without limits or throttling; the advisory text files this under CWE-400, the assigned CWE is CWE-770).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-124553 is a high-severity flaw in BabelDOC (versions 0.3.61 through 0.6.4) that allows an attacker to crash translation workers by sending a specially crafted PDF, disrupting document processing services. Since PDFs often come from external sources, any team relying on BabelDOC for translation is at risk of service outages, though no data breach or system compromise is possible. Leadership should prioritize patching to avoid operational downtime and potential customer impact.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 54% exploitable
Prevalence
Low
niche open-source PDF-translation library, limited enterprise footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy