VDB
Sign up
CRITICAL9.8

GHSA-v3pr-hxpr-mfm8

Apache MINA: Critical Deserialization Allow-list Bypass via resolveProxyClass

Quick fix

GHSA-v3pr-hxpr-mfm8 — org.apache.mina:mina-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.2.8</version> for org.apache.mina:mina-core

Details

ZDRES-232: resolveProxyClass Not Overridden - acceptMatchers Filter Bypass via java.lang.reflect.Proxy

Assessment: Fully addressed.

When the serialised stream contains a TC_PROXYCLASSDESC (the marker for a java.lang.reflect.Proxy ), JDK’s ObjectInputStream.readProxyDesc() is dispatched. JDK then calls the default ObjectInputStream.resolveProxyClass(interfaces) implementation, which performs Class.forName(intf, false, latestUserDefinedLoader()) for EACH interface name and constructs the proxy class — bypassing the accepted classes list .

ZDRES-233: Class.forName(name, initialize=true, classLoader) in readClassDescriptor Triggers Static Initialiser of Allow-Listed Classes

Assessment: Fully addressed.

For ANY class on the allow-list, deserialising a stream that names it triggers the class’s (static initialiser) BEFORE any instance is constructed. This means an attacker who supplies a class name on the allow-list (e.g., the developer wrote accept(“com.myapp.*") , attacker supplies com.myapp.SomeClass ) causes <clinit> of SomeClass — and many real-world classes have side-effecting static initialisers

Both issues have been fixed.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.mina:mina-core
Introduced in: 2.2.0Fixed in: 2.2.8
Fix# pom.xml: bump <version>2.2.8</version> for org.apache.mina:mina-core
Maven/org.apache.mina:mina-core
Introduced in: 2.1.0Fixed in: 2.1.13
Fix# pom.xml: bump <version>2.1.13</version> for org.apache.mina:mina-core
Maven/org.apache.mina:mina-core
Introduced in: 0Fixed in: 2.0.29
Fix# pom.xml: bump <version>2.0.29</version> for org.apache.mina:mina-core

References