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.
References
| Link | Resource |
|---|---|
| http://erpnext.org | Product |
| https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script | Product |
| https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6 | Exploit |
| https://github.com/frappe/frappe/ | Product |
| https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42 | Product |
| https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/ | Not Applicable |
| https://www.exploit-db.com/exploits/51580 | Exploit VDB Entry |
| https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution | Third Party Advisory |
Configurations
History
05 May 2026, 20:07
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Frappe erpnext
Frappe |
|
| References | () http://erpnext.org - Product | |
| References | () https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script - Product | |
| References | () https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6 - Exploit | |
| References | () https://github.com/frappe/frappe/ - Product | |
| References | () https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42 - Product | |
| References | () https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/ - Not Applicable | |
| References | () https://www.exploit-db.com/exploits/51580 - Exploit, VDB Entry | |
| References | () https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution - Third Party Advisory | |
| CPE | cpe:2.3:a:frappe:erpnext:13.4.0:*:*:*:*:*:*:* |
05 May 2026, 12:16
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-05-05 12:16
Updated : 2026-05-05 20:07
NVD link : CVE-2023-54345
Mitre link : CVE-2023-54345
CVE.ORG link : CVE-2023-54345
JSON object : View
Products Affected
frappe
- erpnext
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
