CVE-2023-54345: Vulnerability in Frappe Erpnext
Patch soon. 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.
CWE-94
- Exploitation
- None confirmed
- Severity
- 8.8 of 10
- Attack likelihood
- Unknown
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-94
- Published
- 5 May 2026
- Last change
- 28 Oct 2026
Affected products
Affected versions and the first fixed release
- Frappe Erpnext Version 13.4.0. No fixed version recorded
Advisories
Vendor and security advisories
- erpnext.org
- frappeframework.com/docs/v13/user/en/desk/scripting/server-script
- gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6
- github.com/frappe/frappe/
- github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py
- ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/
Related
- Erpnext vulnerabilities Recent advisories, watch this product