Sandbox Escape in Frappe Framework ERPNext by Frappe
CVE-2023-54345

8.7HIGH

Key Information:

Vendor

Erpnext

Vendor
CVE Published:
5 May 2026

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

What is CVE-2023-54345?

The Frappe Framework ERPNext version 13.4.0 is susceptible to a sandbox escape vulnerability within RestrictedPython. This issue permits authenticated users with the System Manager role to execute arbitrary code by leveraging frame introspection. Specifically, an attacker can craft a server script through the /app/server-script endpoint and exploit the gi_frame attribute. This facilitates traversal of the call stack, allowing the execution of system commands via os.popen. Such a vulnerability poses significant risks to system integrity and data security.

Affected Version(s)

Frappe Framework (ERPNext) 13.4.0

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

Sander Ferdinand
.