Dev.to Security 🔐 Cybersecurity 👁 0 📖 3 min read

CVE-2026-68539: CVE-2026-68539: Unbounded Resource Consumption and Denial of Service in Fulgur CSS GCPM string-set Processing

CVE-2026-68539: Unbounded Resource Consumption and Denial of Service in Fulgur CSS GCPM string-set Processing Vulnerability ID: CVE-2026-68539 CVSS Score: 7.5 Published: 2026-11-25 CVE-2026-68539 is a remote Denial

CVE-2026-68539: Unbounded Resource Consumption and Denial of Service in Fulgur CSS GCPM string-set Processing

Vulnerability ID: CVE-2026-68539
CVSS Score: 7.5
Published: 2026-11-25

CVE-2026-68539 is a remote Denial of Service (DoS) vulnerability in Fulgur, a Rust-based offline HTML/CSS-to-PDF rendering engine. Prior to version 0.29.0, the engine's CSS Generated Content for Paged Media (GCPM) implementation resolved and stored named strings via the string-set property without enforcing memory caps or caching DOM subtree text extraction. An unauthenticated attacker supplying crafted HTML and CSS to a rendering endpoint can trigger multi-gigabyte heap memory allocations and redundant O(M * L) subtree traversals, leading to CPU starvation and out-of-memory (OOM) process aborts.

TL;DR

Unbounded memory allocation and un-cached DOM subtree traversals in Fulgur's CSS string-set implementation (< 0.29.0) allow unauthenticated remote attackers to cause out-of-memory crashes and CPU exhaustion via crafted HTML/CSS inputs.

⚠️ Exploit Status: POC

Technical Details

  • Vulnerability Type: Uncontrolled Resource Consumption / Denial of Service
  • CWE ID: CWE-400 / CWE-770
  • CVSS v3.1 Score: 7.5 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
  • EPSS Score: 0.68% (47.78th Percentile)
  • Attack Vector: Network (Crafted HTML/CSS Input)
  • Affected Versions: fulgur >= 0.4.4, < 0.29.0
  • Patched Version: 0.29.0
  • CISA KEV Status: Not Listed

Affected Systems

  • fulgur (Rust crate)
  • fulgur-cli (CLI binary)
  • fulgur-ruby (Ruby gem)
  • pyfulgur (Python package)
  • fulgur-wasm (WebAssembly package)
  • fulgur: >= 0.4.4, < 0.29.0 (Fixed in: 0.29.0)
  • fulgur-cli: >= 0.4.4, < 0.29.0 (Fixed in: 0.29.0)
  • fulgur-ruby: >= 0.4.4, < 0.29.0 (Fixed in: 0.29.0)
  • pyfulgur: >= 0.4.4, < 0.29.0 (Fixed in: 0.29.0)
  • fulgur-wasm: >= 0.4.4, < 0.29.0 (Fixed in: 0.29.0)

Code Analysis

Commit: 1c4cdad

PR #582: Introduce initial 8 MiB byte budgets for StringSetStore and per-node named-string snapshot maps, and gate snapshot recording on active bookmarks.

pub(crate) const MAX_STRING_SNAPSHOT_BYTES: usize = 8 * 1024 * 1024;
pub(crate) const MAX_STRING_SET_STORE_BYTES: usize = 8 * 1024 * 1024;

Commit: 9248fbf

PR #584: Add per-element content(text) extraction cache, enforce byte caps and overwrite delta accounting on the live running map, and charge 64-byte structural overhead per entry.

pub(crate) const STRING_ENTRY_OVERHEAD_BYTES: usize = 64;
let content = content_text_cache.get_or_insert_with(|| extract_text_content(doc, node_id));

Exploit Details

  • GitHub: Upstream PR #582 containing reproduction cases and regression tests for StringSetStore and per-node snapshot heap amplification.
  • GitHub: Upstream PR #584 containing reproduction tests for running-map distinct key folding, overwrite budget bypass, and O(M * L) subtree traversal CPU exhaustion.

Mitigation Strategies

  • Upgrade Fulgur and all downstream language bindings (fulgur-cli, pyfulgur, fulgur-ruby, fulgur-wasm) to version 0.29.0 or later.
  • Disable PDF bookmark and outline generation when rendering untrusted HTML/CSS to avoid triggering per-node string-set snapshot cloning.
  • Enforce OS-level or container-level memory ceilings (cgroups, Docker --memory, ulimit) and CPU execution timeouts on PDF rendering worker processes.
  • Filter or reject untrusted CSS stylesheets containing excessive occurrences of the string-set property prior to passing input to the rendering engine.

Remediation Steps:

  1. Update Cargo.toml to specify fulgur = ">= 0.29.0" and run cargo update -p fulgur.
  2. For Python environments, run pip install --upgrade 'pyfulgur>=0.29.0'.
  3. For Ruby environments, update Gemfile to gem 'fulgur', '>= 0.29.0' and run bundle update fulgur.
  4. If running on an unpatched version, disable bookmarks via Engine::builder().bookmarks(false).build() and wrap conversion jobs in a 5-second timeout and 512 MiB memory sandbox.

References

Read the full report for CVE-2026-68539 on our website for more details including interactive diagrams and full exploit analysis.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.