CVE-2023-41331
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.
Scoring
- Severity
- CRITICAL
- CVSS base score
- 9.8
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS probability
- 3.96%
- CWE
- CWE-917
- Published
- 2023-09-12
- Last modified
- 2026-03-13
Affected products
- sofastack sofa-rpc
Weakness type
Related vulnerabilities
- CVE-2021-45046 — Apache Log4j2 Thread Context Message Pattern and Context Lookup Pattern vulnerable to a denial of service attack
- CVE-2025-41243 — Spring Expression Language property modification using Spring Cloud Gateway Server WebFlux
- CVE-2025-3322 — Improper Neutralization of Special Elements in OnlineSuite
- CVE-2023-51593 — Voltronic Power ViewPower Pro Expression Language Injection Remote Code Execution Vulnerability
- CVE-2022-23463 — SpEL Injection in Nepxion Discovery
- CVE-2024-51466 — IBM Cognos Analytics expression language injection
- CVE-2023-42658 — InSpec Archive Command Vulnerable to Maliciously Crafted Profile
- CVE-2025-11175 — DiscussionTools should use better regex