CVE-2026-47321 Apache MINA: Unbounded Decompression Amplification DoS in Zlib.inflate
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
18 packages: 2 fixed, 16 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/mina(Debian 12) | = 1.1.7.dfsg-13; = 1.1.7.dfsg-14; All versions | No fix listed | No fix yet |
| debian/mina2(Debian 12) | = 2.2.1-3; = 2.2.1-4; = 2.2.9-1; All versions | No fix listed | No fix yet |
| debian/mina2(Debian 13) | = 2.2.1-4; = 2.2.9-1; All versions | No fix listed | No fix yet |
| redhat/jenkins(Red Hat ocp_tools) | All versions | No fix listed | No fix yet |
| redhat/jenkins-2-plugins(Red Hat ocp_tools) | All versions | No fix listed | No fix yet |
| redhat/maven-wagon(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/maven-wagon(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/mina-core(Red Hat jboss_fuse 7) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel8(Red Hat ocp_tools) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9(Red Hat ocp_tools) | All versions | No fix listed | No fix yet |
| ubuntu/mina(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/mina(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/mina2(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/mina2(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/mina2(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/mina2(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/mina2(Debian 14) | < 2.2.9-1; = 2.2.1-4 | 2.2.9-1 | Fixed |
| org.apache.mina/mina-filter-compression(Maven) | >= 2.0.0, < 2.0.29; >= 2.1.0, < 2.1.13; >= 2.2.0, < 2.2.8 | 2.0.29, 2.1.13, 2.2.8 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.mina/mina-filter-compression(Maven) | >= 2.2.0, < 2.2.8 | 2.2.8 |
| org.apache.mina/mina-filter-compression(Maven) | >= 2.1.0, < 2.1.13 | 2.1.13 |
| org.apache.mina/mina-filter-compression(Maven) | >= 2.0.0, < 2.0.29 | 2.0.29 |
| debian/mina(Debian:12) | All versions | No fix listed |
| debian/mina2(Debian:12) | All versions | No fix listed |
| debian/mina2(Debian:14) | < 2.2.9-1 | 2.2.9-1 |
| debian/mina2(Debian:13) | All versions | No fix listed |
| redhat/jenkins(Red Hat:ocp_tools) | All versions | No fix listed |
| redhat/jenkins-2-plugins(Red Hat:ocp_tools) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel8(Red Hat:ocp_tools) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9(Red Hat:ocp_tools) | All versions | No fix listed |
| redhat/maven-wagon(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/maven-wagon(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/mina-core(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| debian/mina(Debian:12) | = 1.1.7.dfsg-13 | No fix listed |
| debian/mina(Debian:12) | = 1.1.7.dfsg-14 | No fix listed |
| debian/mina2(Debian:12) | = 2.2.1-3 | No fix listed |
| debian/mina2(Debian:12) | = 2.2.1-4 | No fix listed |
| debian/mina2(Debian:12) | = 2.2.9-1 | No fix listed |
| debian/mina2(Debian:13) | = 2.2.1-4 | No fix listed |
| debian/mina2(Debian:13) | = 2.2.9-1 | No fix listed |
| debian/mina2(Debian:14) | = 2.2.1-4 | No fix listed |
| ubuntu/mina(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/mina2(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/mina(Ubuntu:24.04) | All versions | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/mina2(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/mina2(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/mina2(Ubuntu:26.10) | All versions | No fix listed |
References
- lists.apache.org mailing-list vendor-advisory
- www.openwall.com
- Debian Security Tracker CVE-2026-47321 vendor-advisory
- bugs.debian.org issue-tracking
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2538436 issue-tracking
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory