{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-41331 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2023-41331 yet. Limit exposure of the affected software until one is available.","what":"CVE-2023-41331 is a critical unsafe deserialization vulnerability in sofastack sofa-rpc, published on 12 Sep 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-41331 and fix it if it is affected.\n\nWhat it is: CVE-2023-41331 is a critical unsafe deserialization vulnerability in sofastack sofa-rpc, published on 12 Sep 2023. 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-2023-41331 in the wild and no public exploit code.\n\nAffected product: sofastack sofa-rpc. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2023-41331/ (Markdown: https://insights.sbomify.com/CVE-2023-41331/index.md)","id":"CVE-2023-41331","markdown":"https://insights.sbomify.com/CVE-2023-41331/index.md","name":"CVE-2023-41331","record":{"aliases":["GHSA-chv2-7hxj-2j86"],"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 achieve remote code execution via JNDI injection or command execution due to an incomplete deserialization blacklist 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-917","name":"Improper Neutralization of Special Elements used in an Expression Language Statement"}],"description":"SOFARPC is a Java RPC framework. Versions prior to 5.11.0 are vulnerable to remote command execution. Through a carefully\ncrafted payload, an attacker can achieve JNDI injection or system command execution. In the default configuration of the SOFARPC framework, a blacklist is used to filter out dangerous classes encountered during the deserialization process. However, the blacklist is not comprehensive, and an actor can exploit certain native JDK classes and common third-party packages to construct gadget chains capable of achieving JNDI injection or system command execution attacks. Version 5.11.0 contains a fix for this issue. As a workaround, users can add `-Drpc_serialize_blacklist_override=javax.sound.sampled.AudioFileFormat` to the blacklist.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"SOFARPC Remote Command Execution (RCE) Vulnerability","id":"CVE-2023-41331","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"deserialization","year":"2023"},"n_packages":0,"n_references":2,"next":{"headline":"Denial of service via Kubernetes annotations in specific Cilium configurations","id":"CVE-2023-41332"},"packages":[],"prev":{"headline":"Unsafe deserialization in knplabs/knp-snappy","id":"CVE-2023-41330"},"products":["sofa-rpc"],"published":"2023-09-12","related":[{"cvss_score":9.8,"headline":"SOFARPC Remote Command Execution(RCE) Vulnerbility","id":"CVE-2024-23636","kev_date_added":null,"published":"2024-01-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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-09-25","vendors":["sofastack"]},"summary":"Attackers can achieve remote code execution via JNDI injection or command execution due to an incomplete deserialization blacklist in SOFARPC.","url":"https://insights.sbomify.com/CVE-2023-41331/"}