CVE-2026-47321Apache MINA: Unbounded Decompression Amplification DoS in Zlib.inflate
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | mina2 | Fix pending | UBUNTU-CVE-2026-47321 | |
| Ubuntu 26.04 | mina2 | Fix pending | UBUNTU-CVE-2026-47321 | |
| Ubuntu 25.10 | mina2 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-47321 | |
| Ubuntu 24.04 | mina | Under investigation | UBUNTU-CVE-2026-47321 | |
| Ubuntu 24.04 | mina2 | Fix pending | UBUNTU-CVE-2026-47321 | |
| Ubuntu 22.04 | mina | Under investigation | UBUNTU-CVE-2026-47321 | |
| Ubuntu 22.04 | mina2 | Fix pending | UBUNTU-CVE-2026-47321 | |
| Ubuntu 20.04 | mina | Fix pending | UBUNTU-CVE-2026-47321 | |
| Ubuntu 20.04 | mina2 | Fix pending | UBUNTU-CVE-2026-47321 | |
| Ubuntu 18.04 | mina | Fix pending | UBUNTU-CVE-2026-47321 | |
| Ubuntu 18.04 | mina2 | Fix pending | UBUNTU-CVE-2026-47321 | |
| Ubuntu 16.04 | mina | Fix pending | UBUNTU-CVE-2026-47321 | |
| Ubuntu 16.04 | mina2 | Fix pending | UBUNTU-CVE-2026-47321 | |
| Debian 14 | mina2 | Fixed | 2.2.9-1 | DEBIAN-CVE-2026-47321 |
| Debian 13 | mina2 | Fix pending | DEBIAN-CVE-2026-47321 | |
| Debian 12 | mina | Fix pending | DEBIAN-CVE-2026-47321 | |
| Debian 12 | mina2 | Fix pending | DEBIAN-CVE-2026-47321 | |
| Red Hat Enterprise Linux 10 | maven-wagon | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | maven-wagon-javadoc | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | maven-wagon | Not affected | ||
| Red Hat Enterprise Linux 9 | maven-wagon-javadoc | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-wagon | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-wagon-file | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-wagon-ftp | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-wagon-http | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-wagon-http-lightweight | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-wagon-http-shared | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-wagon-javadoc | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-wagon-provider-api | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-wagon-providers | Not affected |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache MINA: affected: 2.2.0 to before 2.2.8, 2.1.0 to before 2.1.13, 2.0.0 to before 2.0.29; fixed in
2.2.8,2.1.13,2.0.29
Vendor advisories:
- https://lists.apache.org/thread/y7xj1bl8qo47p9bktb11hg5v6k1d4dyj (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.