CVE-2023-54345

HIGH EPSS 44.7%
Published May 5, 20261mo ago · Modified Jun 17, 20262w ago
8.7 CVSS 4.0
High
Find Similar
Published May 5, 2026 1mo ago
Last Modified Jun 17, 2026 2w ago

Description

Frappe Framework ERPNext 13.4.0 contains a sandbox escape vulnerability in RestrictedPython that allows authenticated users with System Manager role to execute arbitrary code by exploiting frame introspection. Attackers can create a server script via the /app/server-script endpoint and access the gi_frame attribute to traverse the call stack and invoke os.popen to execute system commands.

CVSS Details

Base Score
8.7
Exploitability
Impact
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope X

Threat Intelligence

EPSS Exploit Probability
44.7% percentile
Exploit & Patch Status
Public Exploit Known
No Patch Available

Weaknesses 1

CWE-94 Improper Control of Generation of Code (Code Injection) Injection

Affected Products 1

VendorProductVersionRange
frappeerpnext13.4.0any

References 8

  • erpnext.org http://erpnext.org
    Product
  • frappeframework.com https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script
    Product
  • gist.github.com https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6
    Exploit
  • github.com https://github.com/frappe/frappe/
    Product
  • github.com https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42
    Product
  • ur4ndom.dev https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/
    Not Applicable
  • exploit-db.com https://www.exploit-db.com/exploits/51580
    ExploitVDB Entry
  • vulncheck.com https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution
    Third Party Advisory

Remediation

No remediation data recorded yet

Check vendor advisories and the NVD entry for patch availability.