Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
Apache Software Foundation Apache MINA
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

CompressionFilter 类使用 ZLib 对发送和接收的数据进行压缩(deflate)和解压(inflate)。在对接收的数据进行解压时,该过滤器无法控制解压后数据的大小,并且无论解压后数据有多大,都会分配相应的缓冲区。 某些压缩数据的压缩比可能超过 1000,导致应用内存耗尽,因为我们无法控制解压后的数据大小。 修复方案通过允许应用开发者指定一个固定的最大大小限制来增加对此的控制,当达到该限制时会抛出异常。同时,还允许用户设置一个不应超过的压缩比,以保护应用免受“解压前文件很小但解压后变成巨大文件”的

CVSS 7.5 · High EPSS 0.29% · P22

Affected Version Matrix 3

VendorProduct Version RangeStatus
Apache Software Foundation Apache MINA 2.2.0< 2.2.8 affected
2.1.0< 2.1.13 affected
2.0.0< 2.0.29 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-47321

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Apache MINA: Unbounded Decompression Amplification DoS in Zlib.inflate
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对高度压缩数据的处理不恰当(数据放大攻击)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Apache Software Foundation Apache MINA 2.2.0 ~ 2.2.8 -

II. Public POCs for CVE-2026-47321

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-47321

登录查看更多情报信息。

Mailing List Discussions for CVE-2026-47321 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-47321

No comments yet


Leave a comment