{"answers":{"affected":"2 open source packages ship an affected version, including com.alipay.sofa:rpc-sofa-boot-starter. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-23636 in the wild and no public exploit code.","fix":"Upgrade com.alipay.sofa:rpc-sofa-boot-starter to 5.12.0 or later.","what":"CVE-2024-23636 is a critical unsafe deserialization vulnerability in sofastack sofa-rpc, published on 23 Jan 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-23636 and fix it if it is affected.\n\nWhat it is: CVE-2024-23636 is a critical unsafe deserialization vulnerability in sofastack sofa-rpc, published on 23 Jan 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-23636 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.alipay.sofa:rpc-sofa-boot-starter (Maven): affected all versions; fixed in 5.12.0\n- com.alipay.sofa:rpc-sofa-boot-starter (Maven): affected all versions; fixed in 5.12.0\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-23636/ (Markdown: https://insights.sbomify.com/CVE-2024-23636/index.md)","id":"CVE-2024-23636","markdown":"https://insights.sbomify.com/CVE-2024-23636/index.md","name":"CVE-2024-23636","record":{"aliases":["GHSA-7q8p-9953-pxvr"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java RPC framework","requires_auth":"none","summary":"Attackers can execute arbitrary code by bypassing the SOFA Hessian blacklist via a JDK-only gadget chain in SOFARPC.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"sofarpc","vendor":"sofastack"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"SOFARPC is a Java RPC framework. SOFARPC defaults to using the SOFA Hessian protocol to deserialize received data, while the SOFA Hessian protocol uses a blacklist mechanism to restrict deserialization of potentially dangerous classes for security protection. But, prior to version 5.12.0, there is a gadget chain that can bypass the SOFA Hessian blacklist protection mechanism, and this gadget chain only relies on JDK and does not rely on any third-party components. Version 5.12.0 fixed this issue by adding a blacklist. SOFARPC also provides a way to add additional blacklists. Users can add a class like `-Drpc_serialize_blacklist_override=org.apache.xpath.` to avoid 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":"SOFARPC Remote Command Execution(RCE) Vulnerbility","id":"CVE-2024-23636","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"deserialization","year":"2024"},"n_packages":2,"n_references":2,"next":{"headline":"OctoPrint Unverified Password Change via Access Control Settings","id":"CVE-2024-23637"},"packages":[{"ecosystem":"Maven","fixed":["5.12.0"],"introduced":["0"],"last_affected":[],"package":"com.alipay.sofa:rpc-sofa-boot-starter","purl":null,"source":"GHSA-7q8p-9953-pxvr"},{"ecosystem":"Maven","fixed":["5.12.0"],"introduced":["0"],"last_affected":[],"package":"com.alipay.sofa:rpc-sofa-boot-starter","purl":"pkg:maven/com.alipay.sofa/rpc-sofa-boot-starter","source":"GHSA-7q8p-9953-pxvr"}],"prev":{"headline":"AntiSamy malicious input can provoke XSS when preserving comments","id":"CVE-2024-23635"},"products":["sofa-rpc"],"published":"2024-01-23","related":[{"cvss_score":9.8,"headline":"SOFARPC Remote Command Execution (RCE) Vulnerability","id":"CVE-2023-41331","kev_date_added":null,"published":"2023-09-12"}],"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":"2024-10-18","vendors":["sofastack"]},"summary":"Attackers can execute arbitrary code by bypassing the SOFA Hessian blacklist via a JDK-only gadget chain in SOFARPC.","url":"https://insights.sbomify.com/CVE-2024-23636/"}