


Perceptive Security
SOC/SIEM Consultancy

Frappe Framework ERPNext 13.4.0 contains a sandbox escape vulnerability in RestrictedPython that allows authenticated users with System Manager role to execute …
Published:
4 May 2026 at 22:00:00
Alert date:
5 May 2026 at 20:13:49
Source:
nvd.nist.gov
Enterprise Applications, Web Technologies
A critical sandbox escape vulnerability exists in Frappe Framework ERPNext version 13.4.0 affecting the RestrictedPython component. The vulnerability allows authenticated users with System Manager privileges to execute arbitrary system commands by exploiting frame introspection capabilities. Attackers can create malicious server scripts through the /app/server-script endpoint and use the gi_frame attribute to traverse the call stack. This enables them to escape the restricted Python sandbox and invoke os.popen to execute system-level commands, leading to potential full system compromise.
Technical details
Mitigation steps:
Affected products:
Frappe Framework ERPNext
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2023-54345
http://erpnext.org
https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script
https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6
https://github.com/frappe/frappe/
https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42
https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/
https://www.exploit-db.com/exploits/51580
https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
