CVE-2026-47321

Published: September 21st, 2026
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.
HIGH
CVSS v3: 7.5

Status

DocFilters Release Package State Justification Comment
daily zlib (1.3) Needs Triage
26.3 zlib (1.3) Needs Triage
26.2 zlib (1.3) Needs Triage
26.1 zlib (1.3) Needs Triage
25.4 zlib (1.3) Needs Triage
25.3 zlib (1.3) Needs Triage
25.2 zlib (1.3) Needs Triage
25.1 zlib (1.3) Needs Triage
24.4 zlib (1.3) Needs Triage
24.4.0 zlib (1.3) Needs Triage
24.3 zlib (1.3) Needs Triage
24.2 zlib (1.3) Needs Triage
24.1 zlib (1.3) Needs Triage
23.3 zlib (1.3) Needs Triage
23.2 zlib (1.2.12) Needs Triage
23.1 zlib (1.2.12) Needs Triage
22.4 zlib (1.2.12) Needs Triage
22.3 zlib (1.2.12) Needs Triage
22.2 zlib (1.2.12) Needs Triage
22.1 zlib (1.2.11) Needs Triage
21.11 zlib (1.2.11) Needs Triage
21.8 zlib (1.2.11) Needs Triage
21.5.0 zlib (1.2.11) Needs Triage
21.2.0 zlib (1.2.11) Needs Triage
11.4.19.3667 zlib (1.2.11) Needs Triage
11.4.18.3599 zlib (1.2.11) Needs Triage
11.4.16.3445 zlib (1.2.11) Needs Triage
11.4.15.3368 zlib (1.2.11) Needs Triage
11.4.14.3263 zlib (1.2.11) Needs Triage
11.4.13.3179 zlib (1.2.11) Needs Triage
11.4.12.3054 zlib (1.2.11) Needs Triage
11.4.11.3040 zlib (1.2.11) Needs Triage
11.4.11.2990 zlib (1.2.11) Needs Triage
11.4.10.2934 zlib (1.2.11) Needs Triage
11.4.9.2878 zlib (1.2.11) Needs Triage
11.4.8.2822 zlib (1.2.11) Needs Triage

Severity score breakdown

Attack Complexity
LOW
Attack Vector
NETWORK
Availability Impact
HIGH
Base Score
7.5
Base Severity
HIGH
Confidentiality Impact
NONE
Integrity Impact
NONE
Privileges Required
NONE
Scope
UNCHANGED
User Interaction
NONE
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Version
3.1

References