# CVE-2023-41331: SOFARPC Remote Command Execution (RCE) Vulnerability

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.64%, higher than 77% of CVEs (2026-12-02)
- Published: 2023-09-12T19:57:57.437Z
- Modified: 2026-06-17T06:21:49.620Z
- Weaknesses: CWE-917
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

SOFARPC is a Java RPC framework. Versions prior to 5.11.0 are vulnerable to remote command execution. Through a carefully
crafted 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.

(As written by CVE List.)

## Affected

- sofastack sofa-rpc: < 5.11.0
- sofastack sofarpc: before 5.11.0

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/sofastack/sofa-rpc/security/advisories/GHSA-chv2-7hxj-2j86> (mitigation, vendor-advisory)
- <https://github.com/sofastack/sofa-rpc/releases/tag/v5.11.0> (release-notes)

## Sources

- CVE List: [CVE-2023-41331](https://www.cve.org/CVERecord?id=CVE-2023-41331), CVE Terms of Use, modified 2024-09-25
- NVD: [CVE-2023-41331](https://nvd.nist.gov/vuln/detail/CVE-2023-41331), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-41331 · Whole record: https://cve.day/CVE-2023-41331.json · Rebuilt by cve.day 2026-11-25T22:58:27.869Z
