Skip to content
Fencer Vulns
critical 9.8

CVE-2024-52046 in the critical feed json

Apache MINA: MINA applications using unbounded deserialization may allow RCE

published 2024-12-25 22 mo ago modified 2026-09-10 1 mo ago also EUVD-2024-3562 , GHSA-76h9-2vwh-w278

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
24.6%
EPSS 24.6% chance of exploitation in 30 days, percentile 97%
public exploits
0
none known

Summary

The ObjectSerializationDecoder in Apache MINA uses Java’s native deserialization protocol to process incoming serialized data but lacks the necessary security checks and defenses. This vulnerability allows attackers to exploit the deserialization process by sending specially crafted malicious serialized data, potentially leading to remote code execution (RCE) attacks.

This issue affects MINA core versions 2.0.X, 2.1.X and 2.2.X, and will be fixed by the releases 2.0.27, 2.1.10 and 2.2.4.

It's also important to note that an application using MINA core library will only be affected if the IoBuffer#getObject() method is called, and this specific method is potentially called when adding a ProtocolCodecFilter instance using the ObjectSerializationCodecFactory class in the filter chain. If your application is specifically using those classes, you have to upgrade to the latest version of MINA core library.

Upgrading will  not be enough: you also need to explicitly allow the classes the decoder will accept in the ObjectSerializationDecoder instance, using one of the three new methods:

/**

* Accept class names where the supplied ClassNameMatcher matches for

* deserialization, unless they are otherwise rejected.

*

* @param classNameMatcher the matcher to use

*/

public void accept(ClassNameMatcher classNameMatcher)

/**

* Accept class names that match the supplied pattern for

* deserialization, unless they are otherwise rejected.

*

* @param pattern standard Java regexp

*/

public void accept(Pattern pattern)

/**

* Accept the wildcard specified classes for deserialization,

* unless they are otherwise rejected.

*

* @param patterns Wildcard file name patterns as defined by

* {@link org.apache.commons.io.FilenameUtils#wildcardMatch(String, String) FilenameUtils.wildcardMatch}

*/

public void accept(String... patterns)

By default, the decoder will reject *all* classes that will be present in the incoming data.

Note: The FtpServer, SSHd and Vysper sub-project are not affected by this issue.

Patch / fix

  • maven org.apache.mina:mina-core 2.0.27, 2.1.10, 2.2.4
  • apache mina 2.0.27, 2.1.10, 2.2.4
  • org.apache.mina mina-core 2.0.27, 2.1.10, 2.2.4
  • mina2 Debian 14 2.2.9-1

debian advisories DEBIAN-CVE-2024-52046

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-52046 updated cvss 8.1

mina-core: Apache MINA: applications using unbounded deserialization may allow RCE

  • Red Hat A-MQ Clients 2 mina-core
    affected: workaround, no fix available
  • Red Hat AMQ Broker 7 mina-core Red Hat Build of Keycloak mina-core Red Hat Data Grid 8 mina-core
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Fuse 7 mina-core
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Integration Camel K 1 mina-core
    affected: workaround, no fix planned “Will not fix”
  • Red Hat JBoss Data Grid 7 mina-core
    affected: workaround, no fix available
  • Red Hat streams for Apache Kafka mina-core
    affected: workaround, no fix planned “Will not fix”
  • Red Hat build of Apache Camel 4.8.3 for Spring Boot
    fixed: vendor fix RHSA-2025:1078
  • Red Hat build of Apache Camel - HawtIO 4 mina-core Red Hat JBoss Enterprise Application Platform 7 mina-core Red Hat JBoss Enterprise Application Platform 8 mina-core Red Hat JBoss Enterprise Application Platform Expansion Pack mina-core
    not affected: vulnerable code not present
show 2 more
  • Red Hat Process Automation 7 mina-core
    not affected: component not present
  • Red Hat Single Sign-On 7 mina-core
    not affected: vulnerable code not in execute path

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
15 mo ago

Exploit prediction

24.65% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 4.0 10.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 4.0 10.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven org.apache.mina:mina-core
>=2.2.0, <2.2.4
>=2.1.0, <2.1.10
>=2.0.0-M1, <2.0.27
2.2.4
2.1.10
2.0.27

Affected products

  • Apache Software Foundation Apache MINA

Classification

Weakness
  • CWE-502 Deserialization of Untrusted Data
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.