# CVE-2026-47321: Apache MINA: Unbounded Decompression Amplification DoS in Zlib.inflate

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.49% (percentile 35, 2026-11-26)
- **CWE:** CWE-409, CWE-789
- **Published:** 2026-09-21T07:43:24.769Z
- **Modified:** 2026-09-21T19:17:06.247Z

## Who should check

- Anyone running Apache Software Foundation Apache MINA \>= 2.2.0, \< 2.2.8; \>= 2.1.0, \< 2.1.13; \>= 2.0.0, \< 2.0.29

## Description

The CompressionFilter class uses ZLib to deflate and inflate data sent and received. When we inflate incoming data, the filter does not control the resulting size, and create a buffer no matter what.

Some compressed data may have a compression ration greater than 1 thousand, leading to an exhaustion of the application memory, as we don't control the deflated size.




The fix adds such a control by allowing the application developer to provide a fixed size limit, which when reached throws an exception. It also allows the user to provide a compression ratio that should not be exceeded, protected the application from small inflated files that inflate in gigantic files, but with a grace limit for the resulting size (1Mb) to avoid false positive (like a very small file inflating with a high ratio, but resulting with a acceptable size, like a few thousands bytes)




For application using this feature, it is highly recommended to create the CompressionFilter and to pass the maximum limit as a forth constructor parameter, maxDecompressedSize:




public CompressionFilter(final boolean compressInbound, final boolean compressOutbound, final int compressionLevel, final int maxDecompressedSize)Optionally one can also provide a maxDecompressRatio fifth parameter, and a decompressRatioMinSize sixth parameter to allow small inflated files with a high compression ratio to still be accepted.




Here are the additional constructor:






public CompressionFilter(final boolean compressInbound, final boolean compressOutbound,



            final int compressionLevel, final int maxDecompressedSize,



            final long maxDecompressRatio, final long decompressRatioMinSize)








Also note that a fluent API has been added to spare the users the pain to call a constructor with that many parameters:






 CompressionFilter compressionFilter = new CompressionFilter()

                                                .setCompressionLevel(Zlib.COMPRESSION\_MAX)

                                                .setMaxDecompressedSize(1\_000\_000)

                                                .setMaxDecompressRatio(100).

                                                .setDecompressRatioMinSize(100\_000); 









Applications using Apache MINA are advised to upgrade and configure their CompressionFilter instance.

## Affected and fixed versions

- Apache Software Foundation Apache MINA: \>= 2.2.0, \< 2.2.8; \>= 2.1.0, \< 2.1.13; \>= 2.0.0, \< 2.0.29 (cvelist)

## Mitigation

- Upgrade Apache MINA to 2.0.29 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-47321. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-47321.md
Affected: Apache Software Foundation Apache MINA >= 2.2.0, < 2.2.8; >= 2.1.0, < 2.1.13; >= 2.0.0, < 2.0.29
Fixed in: Apache Software Foundation Apache MINA 2.2.8, Apache Software Foundation Apache MINA 2.1.13, Apache Software Foundation Apache MINA 2.0.29

Steps:
1. Search this machine and project for Apache Software Foundation Apache MINA: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-47321 being exploited?

There is no confirmed exploitation: CVE-2026-47321 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-47321?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-47321?

Apache Software Foundation Apache MINA \>= 2.2.0, \< 2.2.8; \>= 2.1.0, \< 2.1.13; \>= 2.0.0, \< 2.0.29.

### Is there a fix for CVE-2026-47321?

Yes. Fixed in Apache Software Foundation Apache MINA 2.2.8, Apache Software Foundation Apache MINA 2.1.13, Apache Software Foundation Apache MINA 2.0.29. Upgrade Apache MINA to 2.0.29 or later.

### How do I check if I'm affected by CVE-2026-47321?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/y7xj1bl8qo47p9bktb11hg5v6k1d4dyj>
- other: <http://www.openwall.com/lists/oss-security/2026/09/21/1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-47321>

HTML: <https://flawdb.com/CVE-2026-47321> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-47321>
