BreachSpiderVerified, not vibes

CVE-2024-52046 in Apache Mina

Critical 9.8

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, potent...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.8
CVSS v410.0
EPSS5.6%
EPSS percentile94th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Apache Mina ≥ 2.0.0, < 2.0.27 ≥ 2.1.0, < 2.1.10 ≥ 2.2.0, < 2.2.4

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-52046
BreachSpider IDBS-2024-GLOBAL-044389-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2024-12-25
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-502: Deserialization of Untrusted Data

Software deserializes untrusted data without validation, allowing crafted objects to execute arbitrary code.

Related attack patterns (CAPEC)

CAPEC-586 Object Injection via CWE-502

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2024-52046 affects the ObjectSerializationDecoder in Apache MINA, which uses Java’s native deserialization protocol without adequate security checks, leading to potential remote code execution (RCE) attacks. This vulnerability impacts MINA core versions 2.0.X, 2.1.X, and 2.2.X, and is mitigated by upgrading to the latest versions and explicitly allowing only trusted classes for deserialization.

The vulnerability is exploitable over the network (AV:N) with low attack complexity (AC:L) and no required privileges (PR:N) or user interaction (UI:N). An attacker can send specially crafted serialized data to the ObjectSerializationDecoder, leading to remote code execution. The impact is high on confidentiality (C:H), integrity (I:H), and availability (A:H).

Compensating controls AI-drafted, review before use

Implement a whitelist of allowed classes for deserialization using the new methods provided in the ObjectSerializationDecoder. Ensure that only trusted classes are accepted.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2024-52046?

CVE-2024-52046 affects the ObjectSerializationDecoder in Apache MINA, which uses Java’s native deserialization protocol without adequate security checks, leading to potential remote code execution (RCE) attacks. This vulnerability impacts MINA core versions 2.0.X, 2.1.X, and 2.2.X, and is mitigated by upgrading to the latest versions and explicitly allowing only trusted classes for deserialization.

What is the CVSS score for CVE-2024-52046?

CVE-2024-52046 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 5.6%.

Is CVE-2024-52046 actively exploited?

No confirmed active exploitation of CVE-2024-52046 as of 2026-09-25.

How do I remediate CVE-2024-52046?

Priority: IMMEDIATE. Advisory: https://lists.apache.org/thread/4wxktgjpggdbto15d515wdctohb0qmv8

What systems are affected by CVE-2024-52046?

CVE-2024-52046 affects Apache Mina.

What NERC-CIP standard applies to CVE-2024-52046?

NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to the system through remote code execution, which can compromise the security of the control system and its data.

What IEC 62443 requirement maps to CVE-2024-52046?

IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability in the deserialization process, which can lead to unauthorized access and control of the system, violating the security requirements for industrial control systems.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Apache","product":"Mina","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.