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.
Affected products
frappe: erpnext
References8
- gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6 Exploit
- www.exploit-db.com/exploits/51580 ExploitVDB Entry
- erpnext.org Product
- frappeframework.com/docs/v13/user/en/desk/scripting/server-scri… Product
- github.com/frappe/frappe/ Product
- github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py… Product
- ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/ Not Applicable
- www.vulncheck.com/advisories/frappe-framework-erpnext-remote-co… Third Party Advisory
Metrics
- CVSS 3.1
-
8.8
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 4.0
-
8.7
HIGH
Score source: CNA
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 - EPSS — exploit probability
- 1% percentile: 50 · as of 13 November 2026
- CWE
- CWE-94
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.