CVE-2026-47321
Last modified
CVE-2026-47321 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.29% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache MINA | >= 2.2.0, < 2.2.8; >= 2.1.0, < 2.1.13; >= 2.0.0, < 2.0.29 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-47321?
How severe is CVE-2026-47321?
How do I fix CVE-2026-47321?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-47316Improper Check or Handling of Exceptional Conditions vulnera…7.5
- CVE-2026-47317Uncontrolled Recursion vulnerability in Samsung Open Source …7.5
- CVE-2026-47318Stack-based buffer overflow vulnerability in Samsung Open So…6.1
- CVE-2026-47319Memory allocation with excessive size value vulnerability in…6.1
- CVE-2026-4732Out-of-bounds Read vulnerability in tildearrow furnace (ext…8.4
- CVE-2026-47320Access of uninitialized pointer, Uncontrolled Recursion vuln…6.1
- CVE-2026-47323Camel-CXF and Camel-Knative Message Header Injection via Mis…9.8
- CVE-2026-47324ProjectsAndPrograms school-management-system is vulnerable t…5.1
- CVE-2026-47325ProjectsAndPrograms school-management-system uses predictabl…6.9
- CVE-2026-47326Ubuntu Linux 6.8, 6.17 and 7.0 contain SAUCE patches with a …5.5
- CVE-2026-47327Ubuntu Linux 6.8, 6.17 and 7.0 contain SAUCE patches with a …3.3
- CVE-2026-47328Ubuntu Linux 6.8, 6.17 and 7.0 contain AppArmor SAUCE patche…6.1
Are you affected by CVE-2026-47321?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
