


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 mei 2026 om 22:00:00
Alert date:
5 mei 2026 om 21:02:16
Source:
nvd.nist.gov
Enterprise Applications, Web Technologies
Frappe Framework ERPNext 13.4.0 contains a critical sandbox escape vulnerability in RestrictedPython that allows authenticated users with System Manager role to execute arbitrary code. The vulnerability exploits frame introspection through the gi_frame attribute to traverse the call stack and invoke os.popen for system command execution. Attackers can leverage the /app/server-script endpoint to create malicious server scripts. This represents a significant security risk as it allows privilege escalation and complete system compromise for authenticated users with elevated roles.
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.
