Skip to main content

Carbone CVE-2026-18929

| EUVDEUVD-2026-60574 MEDIUM
Improper Handling of Highly Compressed Data (Data Amplification) (CWE-409)
2026-08-18 CERT-PL GHSA-g3fg-g325-xmh2
6.9
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted .docx template to Carbone endpoint
  2. Delivery
    Library unzips archive via yazl
  3. Exploit
    No decompressed-size validation applied
  4. Execution
    Decompressed data exhausts Node.js heap memory
  5. Impact
    Application server process crashes (OOM)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Compression ratio limits
Exploitation Conditions

The attacker must be able to deliver a .docx file as a template input to a Carbone rendering operation - this typically means access to an HTTP endpoint, file upload interface, or API that accepts user-supplied .docx templates and passes them to Carbone for processing. Deployments that only process templates from trusted internal sources or pre-validated storage are not remotely exploitable. The CVSS UI:A (Active) metric confirms that a user or automated process must actively trigger the rendering of the malicious file; the vulnerability cannot be triggered passively against an idle server. Exploitation is version-gated: only Carbone versions prior to 3.8.2 (v3 branch), 4.26.3 (v4 branch), or 5.4.4 (v5 branch) are vulnerable. No authentication is required by the library itself, but application-level authentication on the endpoint would limit the pool of potential attackers.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A/VA:H/SA:L) scores 6.9, reflecting low attack complexity and no authentication requirement, tempered by the need for active user interaction (UI:A) - a user or automated process must submit the malicious file for rendering. The high availability impact (VA:H) models a full server crash, with a low secondary availability impact (SA:L) suggesting cascading effects on dependent services. No EPSS score was provided in the input data, so exploitation probability cannot be quantified. There is no CISA KEV listing, confirming no known active exploitation at time of analysis, and no public proof-of-concept exploit was identified. Real-world risk is heavily deployment-dependent: applications that accept user-supplied .docx templates from untrusted parties are directly exploitable, while deployments that only process internally managed templates are not remotely triggerable. The missing EPSS data is a gap - risk prioritization should be based on whether the deployment accepts external template input.

Exploit ScenarioDerived

An attacker submits a specially crafted .docx file - a compressed ZIP archive engineered to expand to gigabytes of data - to any Carbone-powered document generation endpoint that accepts user-supplied templates. When Carbone unzips the archive entries via yazl with no size validation, the Node.js heap grows uncontrollably until the process exhausts available memory and crashes, denying service to all users of the application. No proof-of-concept exploit has been publicly released, but zip bomb generation is a well-understood and low-skill technique with freely available tooling.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 – Aug 18, 2026

Denial of service in Carbone, a Node.js document generation library, allows remote attackers to crash application servers by supplying a maliciously crafted zip bomb embedded in a .docx template file. The library processed .docx archives (which are ZIP containers) using yazl without enforcing any limit on decompressed entry sizes, enabling an attacker-controlled file to trigger runaway memory allocation that terminates the Node.js process. Fixed in versions 3.8.2, 4.26.3, and 5.4.4 across all distribution types; no public exploit or CISA KEV listing identified at time of analysis.

RemediationAI

Upgrade Carbone to version 3.8.2, 4.26.3, or 5.4.4 according to the major version branch in active use; the patch is available across all distribution types and was confirmed via commit eb9b4cff992cc1cb1a319d7fc0cbd09160dc214e at https://github.com/carboneio/carbone/commit/eb9b4cff992cc1cb1a319d7fc0cbd09160dc214e. If an immediate upgrade is not feasible, restrict which users or roles may submit .docx template files to Carbone rendering endpoints - eliminating untrusted template input removes the attack surface entirely and is the most effective compensating control. As a secondary mitigation, applying Node.js process memory limits (--max-old-space-size) or container-level memory caps can constrain blast radius, but will not prevent the decompression attempt from being triggered and may cause broader service disruption. File-size limits at the HTTP or load-balancer layer provide partial protection but are insufficient alone, as zip bombs are by definition small in compressed form. Consult the CERT-PL advisory at https://cert.pl/en/posts/2026/08/CVE-2026-18929 for further guidance.

Affected VersionsENISA

carbone 0 <3.8.2
carbone 0 <5.4.4
carbone 0 <4.26.3

Affected Packages

euvd carbone fix: 3.8.2, 4.26.3, 5.4.4

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

Carbone is a Node.js library for generating documents from Office Open XML templates, including .docx files. The .docx format is itself a ZIP archive, and Carbone relied on the yazl library for decompression without enforcing bounds on the uncompressed size of ZIP entries. CWE-409 (Improper Handling of Highly Compressed Data / Data Amplification) describes this class of flaw precisely: the DEFLATE compression algorithm can achieve extreme ratios, and a ZIP bomb exploits this by nesting or referencing highly compressed payloads that expand to gigabytes when decompressed. The fix commit (eb9b4cff992cc1cb1a319d7fc0cbd09160dc214e) and its CHANGELOG entry explicitly confirm the corrective action: 'Add limits for unzipped templates to improve resistance to zip bomb denial-of-service attacks.' The affected CPE is cpe:2.3:a:carbone:carbone:*:*:*:*:*:*:*:* covering all versions prior to the patched releases across the v3, v4, and v5 branches.

Know when Carbone 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 (CERT-PL) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L
vuln.today AI 6.5 MEDIUM

File delivered over network with no authentication; active template submission required (UI:R); availability-only impact confined to the vulnerable process with no scope change.

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

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

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

DescriptionCVE.org

Carbone is vulnerable to Denial of Service due to lack of protection against zip bombs when processing .docx files. The library uses yazl for zip decompression without validating entry sizes, allowing an attacker to supply a malicious .docx file containing a zip bomb that decompresses to a significantly larger size, causing excessive memory consumption and crashing the application server.

The issue was fixed in versions: 3.8.2, 4.26.3 and 5.4.4.  The fix is available across all distribution types.

Threat Intelligence Overview

EPSS Score
0.5%
Top 58% exploitable
Prevalence
Low
niche Node.js document generation library, limited enterprise footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +34
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