Security Resilience

CVE-2023-41331

RCE in Sofastack Sofarpc ≤ 5.11.0

Published
12 September 2023
Modified
21 November 2024
Patch / advisory
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.016 77th percentile
Risk Priority 78 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2023-41331 is a critical-severity Expression Language Injection (CWE-917) vulnerability in Sofastack Sofarpc. Its CVSS base score is 9.8 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 23% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

SOFARPC is a Java RPC framework that uses deserialization of untrusted data during remote procedure calls. Versions prior to 5.11.0 rely on an incomplete blacklist to block dangerous classes, allowing attackers to chain native JDK classes and common third-party libraries into gadget chains that enable JNDI injection or arbitrary system command execution. The vulnerability is tracked as CWE-917 and carries a CVSS 3.1 score of 9.8.

An unauthenticated remote attacker can supply a crafted serialized payload to any exposed SOFARPC endpoint. Successful exploitation grants full control over the target process, including the ability to execute operating-system commands or perform JNDI-based lookups that can load attacker-controlled classes.

The official fix is included in release 5.11.0. The project advisory and release notes also document a workaround that extends the serialization blacklist by setting the JVM argument -Drpc_serialize_blacklist_override=javax.sound.sampled.AudioFileFormat. The associated EPSS score has remained flat at 0.0519 with no material increase after disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1584.004 Server Resource Development
Adversaries may compromise third-party servers that can be used during targeting.
T1056.003 Web Portal Capture Collection
Adversaries may install code on externally facing portals, such as a VPN login page, to capture and transmit credentials of users who attempt to log into the service.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1211 Exploitation for Stealth Stealth
Adversaries may exploit vulnerabilities to evade detection by hiding activity, suppressing logging, or operating within trusted or unmonitored components.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-23636Same product: Sofastack Sofarpc
CVE-2025-3322Shared CWE-917
CVE-2024-5828Shared CWE-917
CVE-2024-51466Shared CWE-917
CVE-2026-82912Shared CWE-917
CVE-2021-45046Shared CWE-917
CVE-2020-17530Shared CWE-917
CVE-2026-108334Shared CWE-917
CVE-2026-104711Shared CWE-917
CVE-2026-40985Shared CWE-917

Affected Assets

sofastack
sofarpc
≤ 5.11.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V1.1.2
  • V1.3.2
  • V1.3.5
  • V4.3.1

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require input neutralization and safe EL construction to prevent injection flaws.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development and acceptance can detect EL injection but does not itself implement the fix.

prevents

Secure coding standards require proper escaping and parameterization of expression-language statements.

finds

A.8.8's reach is DISCLOSURE — it sees EL injection only where it surfaces as a published advisory in a third-party component (Log4Shell being the canonical example). Most EL injection lives in first-party JSP/Spring code that no advisory names, which A.8.8's scanning and supplier-reporting channels do not reach.

References