Apache Software Foundation Apache MINA
Apache MINA: AbstractIoBuffer.resolveClass() null-clazz Branch Skips acceptMatchers Filter — Full Object Deserialization RCE
Apache MINA's AbstractIoBuffer.resolveClass() contains two branches, one of them (for static classes or primitive types) does not check the class at all, bypassing the classname allowlist and allowing arbitrary code to be executed. The fix checks if the class is present in the accepted class filter before calling Class.forName(). Affected versions are Apache MINA 2.0.0 <= 2.0.27, 2.1.0 <= 2.1.10, and 2.2.0 <= 2.2.5. The problem is resolved in Apache MINA 2.0.28, 2.1.11, and 2.2.6 by applying the classname allowlist earlier. Affected are applications using Apache MINA that call IoBuffer.getObject(). Applications using Apache MINA are advised to upgrade.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 2.2.0, <= 2.2.5
- >= 2.1.0, <= 2.1.10
- >= 2.0.0, <= 2.0.27
- >= 2.0.0, < 2.0.28
Fixed in 2.0.28
from GitHub Security Advisory GHSA-8297-v2rf-2p32
- >= 2.1.0, < 2.1.11
Fixed in 2.1.11
from GitHub Security Advisory GHSA-8297-v2rf-2p32
- >= 2.2.0, < 2.2.6
Fixed in 2.2.6
from GitHub Security Advisory GHSA-8297-v2rf-2p32
Mitigation
Upgrade org.apache.mina:mina-core to 2.0.28 or later.
Upgrade org.apache.mina:mina-core to 2.1.11 or later.
Upgrade org.apache.mina:mina-core to 2.2.6 or later.
References
- Vendor advisory lists.apache.org/thread/1l91w1mqsb3lwfd504fs045ylxnt…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.