Apache MINA: MINA applications using unbounded deserialization may allow RCE
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 acce
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-52046
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 06:14 UTC · Revision 1
Source evidence
Apache MINA: MINA applications using unbounded deserialization may allow RCE
core-osv · Original sourcePublished 25 Dec 2024, 10:06 UTC
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 acce
osv:CVE-2024-52046
Complete source record
{
"id": "3945d2982e6dc23bc7ca6073aa2371d74fea94971de416bedd648141b96d1b43",
"url": "https://osv.dev/vulnerability/CVE-2024-52046",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Apache MINA: MINA applications using unbounded deserialization may allow RCE",
"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 acce",
"evidence": "osv:CVE-2024-52046",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2024-52046",
"aliases": [
"CVE-2024-52046",
"GHSA-76h9-2vwh-w278"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/apache/mina",
"type": "GIT",
"events": [
{
"introduced": "98aa4b51a9d1dbb3d91ae7961bc7bd7b356fb711"
},
{
"fixed": "1caf6f604487987a0fa98bb5437c88a4e5c19960"
},
{
"introduced": "d595254cb8c254204d794457d42219321a6a2306"
},
{
"fixed": "326142eca6bbce30a973b24efa0926c8891a8d7d"
},
{
"introduced": "079d4592943ff892504e11a331c4f6601b7a04ec"
},
{
"fixed": "4134a125d8830c67c21b97c28f2bf706801bdd13"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:apache:mina:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.0.27"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:apache:mina:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.1.0"
},
{
"fixed": "2.1.10"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:apache:mina:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.2.0"
},
{
"fixed": "2.2.4"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"2.1.9",
"2.2.3",
"2.1.8",
"2.1.7",
"2.2.2",
"2.1.6",
"2.1.5",
"2.1.4",
"2.1.3",
"2.1.2",
"2.1.1",
"2.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-52046.json"
}
}
],
"modified": "2026-10-28T02:30:26.194323572Z",
"provider": "osv",
"references": [
"https://repo.maven.apache.org/maven2",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52046.json",
"https://lists.apache.org/thread/4wxktgjpggdbto15d515wdctohb0qmv8",
"https://nvd.nist.gov/vuln/detail/CVE-2024-52046",
"https://security.netapp.com/advisory/ntap-20250103-0001/"
],
"provider_metadata": {
"cwe_ids": [
"CWE-502"
],
"cna_assigner": "apache",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "2.1"
},
{
"last_affected": "2.1.9"
},
{
"introduced": "2.2"
},
{
"last_affected": "2.2.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52046.json"
}
},
"related_cves": [
{
"value": "CVE-2024-52046",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 492996,
"published_at": "2024-12-25T10:06:23.887+00:00"
}