---
title: "CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)"
url: https://radicalnotion.ai/cwe/cwe-409
type: cwe
description: "The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 181
- **Of those, in CISA KEV:** 0
- **New in 2026:** 153
- **CWE catalog version:** 4.21

## Description

The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |

## Applicable platforms

**Languages:** Python (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Availability | DoS: Amplification, DoS: Crash, Exit, or Restart, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory) | System resources, CPU and memory, can be quickly consumed. This can lead to poor system performance or system crash. |

## Demonstrative examples

### Example 1

An example of data amplification is a "decompression bomb" (aka "zip bomb"), a small ZIP file that can produce a large amount of data when it is decompressed \[REF-1542\].

### Example 2

The DTD and the very brief XML below illustrate what is meant by an XML bomb. The ZERO entity contains one character, the letter A. The choice of entity name ZERO is being used to indicate length equivalent to that exponent on two, that is, the length of ZERO is 2^0. Similarly, ONE refers to ZERO twice, therefore the XML parser will expand ONE to a length of 2, or 2^1. Ultimately, we reach entity THIRTYTWO, which will expand to 2^32 characters in length, or 4 GB, probably consuming far more data than expected.

Attack code:

```xml
<?xml version="1.0"?>
<!DOCTYPE MaliciousDTD [
<!ENTITY ZERO "A">
<!ENTITY ONE "&ZERO;&ZERO;">
<!ENTITY TWO "&ONE;&ONE;">
...
<!ENTITY THIRTYTWO "&THIRTYONE;&THIRTYONE;">
]>
<data>&THIRTYTWO;</data>
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2009-1955 | XML bomb in web server module |
| CVE-2003-1564 | Parsing library allows XML bomb |

## Real CVEs with this weakness (sample of 12 of 181)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-44432 | urllib3: Decompression-bomb safeguards bypassed in parts of the streaming API | high | 8.9 | - | No | 2026-05-13 |
| CVE-2026-21441 | urllib3 vulnerable to decompression-bomb safeguard bypass when following HTTP redirects (streaming API) | high | 8.9 | - | No | 2026-01-07 |
| CVE-2025-66471 | urllib3 Streaming API improperly handles highly compressed data | high | 8.9 | - | No | 2025-12-05 |
| CVE-2026-68981 | Apache NiFi: Uncontrolled Resource Consumption through Decompression of HTTP Requests | high | 8.8 | - | No | 2026-08-03 |
| CVE-2026-134813 | Faye websocket-driver 0.5.0 before 0.8.0 Decompression Bomb via permessage-deflate | high | 8.7 | - | No | 2026-11-22 |
| CVE-2026-134830 | Casdoor before 4.27.1 Denial of Service via SAML Message Decompression | high | 8.7 | - | No | 2026-11-22 |
| CVE-2026-134341 | actix-http 3.0.0 before 3.20.3 Denial of Service via Large-Window Brotli Decompression | high | 8.7 | - | No | 2026-11-21 |
| CVE-2026-128242 | actix-http before 3.20.1 and actix-web before 4.18.2 Decompression Bomb DoS via encoding::Decoder | high | 8.7 | - | No | 2026-11-13 |
| CVE-2026-121820 | - | high | 8.7 | - | No | 2026-11-06 |
| CVE-2026-122323 | Kyverno 1.11.0 before 1.19.2 Memory Exhaustion via Notary Signature Decompression | high | 8.7 | - | No | 2026-11-05 |
| CVE-2026-122322 | Kyverno from 1.11.0 before 1.19.2 Memory Exhaustion via Notary Attestation Decompression | high | 8.7 | - | No | 2026-11-05 |
| CVE-2026-109584 | HTTP/2 cookie crumb join expands a small HPACK header block into an unbounded allocation in Bandit | high | 8.7 | - | No | 2026-10-26 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-405](https://radicalnotion.ai/cwe/cwe-405) | Asymmetric Resource Consumption (Amplification) |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Data Amplification | - | - |
| The CERT Oracle Secure Coding Standard for Java (2011) | Limit the size of files passed to ZipInputStream | IDS04-J | - |
| OpenSSF Secure Coding Guide for Python | Extract Archives Safely | pyscg-0012 | - |

## Frequently asked questions

### What is CWE-409?

The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.

### What CVEs are caused by CWE-409?

181 recorded CVEs are attributed to CWE-409, including CVE-2026-44432, CVE-2026-21441 and CVE-2025-66471.

### What are the consequences of CWE-409?

Exploiting CWE-409 can lead to: DoS: Amplification, DoS: Crash, Exit, or Restart, DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory).

### Is CWE-409 actively exploited?

181 recorded CVEs are caused by CWE-409; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/409.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-409). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
