Show plain JSON{"dataType": "CVE_RECORD", "dataVersion": "5.1", "cveMetadata": {"cveId": "CVE-2024-52046", "assignerOrgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09", "state": "PUBLISHED", "assignerShortName": "apache", "dateReserved": "2024-11-05T13:13:06.944Z", "datePublished": "2024-12-25T10:06:23.887Z", "dateUpdated": "2025-02-12T09:33:36.380Z"}, "containers": {"cna": {"affected": [{"collectionURL": "https://repo.maven.apache.org/maven2", "defaultStatus": "unaffected", "packageName": "org.apache.mina:mina-core", "product": "Apache MINA", "vendor": "Apache Software Foundation", "versions": [{"lessThanOrEqual": "2.0.26", "status": "unknown", "version": "2.0", "versionType": "semver"}, {"lessThanOrEqual": "2.1.9", "status": "affected", "version": "2.1", "versionType": "semver"}, {"lessThanOrEqual": "2.2.3", "status": "affected", "version": "2.2", "versionType": "semver"}]}], "credits": [{"lang": "en", "type": "finder", "value": "The initial report was submitted by Bofei Chen, with all the necessary bits to reproduce the RCE"}], "descriptions": [{"lang": "en", "supportingMedia": [{"base64": false, "type": "text/html", "value": "<div>\n\t\t\t<div>\n\t\t\t\t<div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<p>The ObjectSerializationDecoder in Apache MINA uses Java\u2019s native deserialization protocol to process\nincoming serialized data but lacks the necessary security checks and defenses. This vulnerability allows\nattackers to exploit the deserialization process by sending specially crafted malicious serialized data,\npotentially leading to remote code execution (RCE) attacks.\n</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div><div>\n\t\nThis 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.<br></div><div><br></div><div>It's also important to note that an application using MINA core library will only be affected if the <span style=\"background-color: rgb(255, 255, 255);\"><span style=\"background-color: rgb(255, 255, 255);\">IoBuffer#getObject</span></span>() method is called, and this specific method is potentially called when adding a ProtocolCodecFilter instance using the <span style=\"background-color: rgb(255, 255, 255);\"><span style=\"background-color: rgb(255, 255, 255);\"><span style=\"background-color: rgb(212, 212, 212);\">ObjectSerializationCodecFactory</span></span></span> 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.</div><div><br></div><div>Upgrading will not be enough: you also need to explicitly allow the classes the decoder will accept in the <span style=\"background-color: rgb(255, 255, 255);\"><span style=\"background-color: rgb(255, 255, 255);\"><span style=\"background-color: rgb(212, 212, 212);\">ObjectSerializationDecoder</span></span></span> instance, using one of the three new methods:</div><div><br></div><div><div><div><p> /**</p><p> * Accept class names where the supplied ClassNameMatcher matches for</p><p> * deserialization, unless they are otherwise rejected.</p><p> *</p><p> * @param classNameMatcher the matcher to use</p><p> */</p><p> public void <span style=\"background-color: rgb(212, 212, 212);\">accept</span>(ClassNameMatcher classNameMatcher)</p><p><br></p><p> /**</p><p> * Accept class names that match the supplied pattern for</p><p> * deserialization, unless they are otherwise rejected.</p><p> *</p><p> * @param pattern standard Java regexp</p><p> */</p><p> public void accept(Pattern pattern) <br></p><p><br></p><p> /**</p><p> * Accept the wildcard specified classes for deserialization,</p><p> * unless they are otherwise rejected.</p><p> *</p><p> * @param patterns Wildcard file name patterns as defined by</p><p> * {@link org.apache.commons.io.FilenameUtils#wildcardMatch(String, String) FilenameUtils.wildcardMatch}</p><p> */</p><p> public void accept(String... patterns)<br></p></div><div><br></div><div>By default, the decoder will reject *all* classes that will be present in the incoming data.</div><div><br></div><div><br></div><div>Note: The FtpServer, SSHd and Vysper sub-project are not affected by this issue.<br></div></div></div>"}], "value": "The ObjectSerializationDecoder in Apache MINA uses Java\u2019s native deserialization protocol to process\nincoming serialized data but lacks the necessary security checks and defenses. This vulnerability allows\nattackers to exploit the deserialization process by sending specially crafted malicious serialized data,\npotentially leading to remote code execution (RCE) attacks.\n\n\n\n\t\t\t\t\t\n\n\n\t\t\t\t\n\n\n\t\t\t\n\n\n\t\t\n\n\n\t\nThis 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.\n\n\n\n\n\nIt'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.\n\n\n\n\nUpgrading will\u00a0 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:\n\n\n\n\n /**\n\n\u00a0 \u00a0\u00a0 * Accept class names where the supplied ClassNameMatcher matches for\n\n * deserialization, unless they are otherwise rejected.\n\n *\n\n * @param classNameMatcher the matcher to use\n\n */\n\n public void accept(ClassNameMatcher classNameMatcher)\n\n\n\n\n /**\n\n * Accept class names that match the supplied pattern for\n\n * deserialization, unless they are otherwise rejected.\n\n *\n\n * @param pattern standard Java regexp\n\n */\n\n public void accept(Pattern pattern) \n\n\n\n\n\n /**\n\n * Accept the wildcard specified classes for deserialization,\n\n * unless they are otherwise rejected.\n\n *\n\n * @param patterns Wildcard file name patterns as defined by\n\n * {@link org.apache.commons.io.FilenameUtils#wildcardMatch(String, String) FilenameUtils.wildcardMatch}\n\n */\n\n public void accept(String... patterns)\n\n\n\n\n\n\n\nBy default, the decoder will reject *all* classes that will be present in the incoming data.\n\n\n\n\n\n\n\nNote: The FtpServer, SSHd and Vysper sub-project are not affected by this issue."}], "metrics": [{"cvssV4_0": {"Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "Safety": "NOT_DEFINED", "attackComplexity": "LOW", "attackRequirements": "NONE", "attackVector": "NETWORK", "baseScore": 10, "baseSeverity": "CRITICAL", "privilegesRequired": "NONE", "providerUrgency": "NOT_DEFINED", "subAvailabilityImpact": "HIGH", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "HIGH", "userInteraction": "NONE", "valueDensity": "NOT_DEFINED", "vectorString": "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", "version": "4.0", "vulnAvailabilityImpact": "HIGH", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnerabilityResponseEffort": "NOT_DEFINED"}, "format": "CVSS", "scenarios": [{"lang": "en", "value": "GENERAL"}]}], "problemTypes": [{"descriptions": [{"cweId": "CWE-502", "description": "CWE-502 Deserialization of Untrusted Data", "lang": "en", "type": "CWE"}]}], "providerMetadata": {"orgId": "f0158376-9dc2-43b6-827c-5f631a4d8d09", "shortName": "apache", "dateUpdated": "2025-02-12T09:33:36.380Z"}, "references": [{"tags": ["vendor-advisory"], "url": "https://lists.apache.org/thread/4wxktgjpggdbto15d515wdctohb0qmv8"}], "source": {"discovery": "EXTERNAL"}, "title": "Apache MINA: MINA applications using unbounded deserialization may allow RCE", "x_generator": {"engine": "Vulnogram 0.2.0"}}, "adp": [{"title": "CVE Program Container", "references": [{"url": "http://www.openwall.com/lists/oss-security/2024/12/25/1"}, {"url": "https://security.netapp.com/advisory/ntap-20250103-0001/"}], "providerMetadata": {"orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2025-01-03T12:04:29.831Z"}}, {"metrics": [{"other": {"type": "ssvc", "content": {"timestamp": "2024-12-26T18:13:45.274032Z", "id": "CVE-2024-52046", "options": [{"Exploitation": "none"}, {"Automatable": "yes"}, {"Technical Impact": "total"}], "role": "CISA Coordinator", "version": "2.0.3"}}}], "title": "CISA ADP Vulnrichment", "providerMetadata": {"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2024-12-26T18:13:55.405Z"}}]}}