{"answers":{"affected":"6 open source packages ship an affected version, including org.apache.mina:mina-core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-52046 in the wild and no public exploit code.","fix":"Upgrade org.apache.mina:mina-core to a fixed version for your release line: 2.0.27, 2.1.10 or 2.2.4.","what":"CVE-2024-52046 is a critical unsafe deserialization vulnerability in Apache MINA, published on 25 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-52046 and fix it if it is affected.\n\nWhat it is: CVE-2024-52046 is a critical unsafe deserialization vulnerability in Apache MINA, published on 25 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-52046 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.mina:mina-core (Maven): affected from 2.0.0-M1; fixed in 2.0.27\n- org.apache.mina:mina-core (Maven): affected from 2.0.0-M1; fixed in 2.0.27\n- org.apache.mina:mina-core (Maven): affected from 2.1.0; fixed in 2.1.10\n- org.apache.mina:mina-core (Maven): affected from 2.1.0; fixed in 2.1.10\n- org.apache.mina:mina-core (Maven): affected from 2.2.0; fixed in 2.2.4\n- org.apache.mina:mina-core (Maven): affected from 2.2.0; fixed in 2.2.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-52046/ (Markdown: https://insights.sbomify.com/CVE-2024-52046/index.md)","id":"CVE-2024-52046","markdown":"https://insights.sbomify.com/CVE-2024-52046/index.md","name":"CVE-2024-52046","record":{"aliases":["CLEANSTART-2026-CR72646","CLEANSTART-2026-LT24627","CLEANSTART-2026-XR50607","DEBIAN-CVE-2024-52046","GHSA-76h9-2vwh-w278","OESA-2025-1044","UBUNTU-CVE-2024-52046"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Java networking library","requires_auth":"none","summary":"Attackers can achieve remote code execution by sending malicious serialized data to Apache MINA applications using unbounded deserialization.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"mina","vendor":"apache"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"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"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"The ObjectSerializationDecoder in Apache MINA uses Java’s 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\t\t\t\t\t\n\n\t\t\t\t\n\n\t\t\t\n\n\t\t\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\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\nUpgrading 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:\n\n    /**\n\n     * 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     * 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     * 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\nBy default, the decoder will reject *all* classes that will be present in the incoming data.\n\nNote: The FtpServer, SSHd and Vysper sub-project are not affected by this issue.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache MINA: MINA applications using unbounded deserialization may allow RCE","id":"CVE-2024-52046","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"deserialization","year":"2024"},"n_packages":6,"n_references":1,"next":{"headline":"Path traversal in Trend Micro Apex One","id":"CVE-2024-52047"},"packages":[{"ecosystem":"Maven","fixed":["2.0.27"],"introduced":["2.0.0-M1"],"last_affected":[],"package":"org.apache.mina:mina-core","purl":null,"source":"GHSA-76h9-2vwh-w278"},{"ecosystem":"Maven","fixed":["2.0.27"],"introduced":["2.0.0-M1"],"last_affected":[],"package":"org.apache.mina:mina-core","purl":"pkg:maven/org.apache.mina/mina-core","source":"GHSA-76h9-2vwh-w278"},{"ecosystem":"Maven","fixed":["2.1.10"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.mina:mina-core","purl":null,"source":"GHSA-76h9-2vwh-w278"},{"ecosystem":"Maven","fixed":["2.1.10"],"introduced":["2.1.0"],"last_affected":[],"package":"org.apache.mina:mina-core","purl":"pkg:maven/org.apache.mina/mina-core","source":"GHSA-76h9-2vwh-w278"},{"ecosystem":"Maven","fixed":["2.2.4"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.mina:mina-core","purl":null,"source":"GHSA-76h9-2vwh-w278"},{"ecosystem":"Maven","fixed":["2.2.4"],"introduced":["2.2.0"],"last_affected":[],"package":"org.apache.mina:mina-core","purl":"pkg:maven/org.apache.mina/mina-core","source":"GHSA-76h9-2vwh-w278"}],"prev":{"headline":"User enumeration in HubHub","id":"CVE-2024-52043"},"products":["Apache MINA"],"published":"2024-12-25","related":[{"cvss_score":9.8,"headline":"Apache MINA: Critical Deserialization Allow-list Bypass via resolveProxyClass - ZDRES-232","id":"CVE-2026-47065","kev_date_added":null,"published":"2026-06-03"},{"cvss_score":9.8,"headline":"Apache MINA: CWE-502 Deserialization of Untrusted Data (take 2)","id":"CVE-2026-42778","kev_date_added":null,"published":"2026-05-01"},{"cvss_score":9.8,"headline":"Apache MINA vulnerable to Deserialization of Untrusted Data (CVE-2026-41635 Incomplete Fix)","id":"CVE-2026-42779","kev_date_added":null,"published":"2026-05-01"},{"cvss_score":9.8,"headline":"Apache MINA: CWE-502 Deserialization of Untrusted Data","id":"CVE-2026-41409","kev_date_added":null,"published":"2026-04-27"},{"cvss_score":9.8,"headline":"Apache MINA vulnerable to Deserialization of Untrusted Data","id":"CVE-2026-41635","kev_date_added":null,"published":"2026-04-27"},{"cvss_score":7.5,"headline":"Apache MINA SSLFilter security Issue","id":"CVE-2019-0231","kev_date_added":null,"published":"2019-10-01"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-08-02","vendors":["Apache Software Foundation"]},"summary":"Attackers can achieve remote code execution by sending malicious serialized data to Apache MINA applications using unbounded deserialization.","url":"https://insights.sbomify.com/CVE-2024-52046/"}