CVE-2023-54345
Frappe Framework ERPNext 13.4.0 Remote Code Execution
Severity Score
8.7
*CVSS v4
Exploit Likelihood
*EPSS
Affected Versions
*CPE
Public Exploits
2
*Multiple Sources
Exploited in Wild
-
*KEV
Decision
Attend
*SSVC
Descriptions
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.
*Credits:
Sander Ferdinand
CVSS Scores
Attack Vector
Attack Complexity
Attack Requirements
Privileges Required
User Interaction
System
Vulnerable | Subsequent
Confidentiality
Integrity
Availability
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
* Common Vulnerability Scoring System
SSVC
- Decision:Attend
Exploitation
Automatable
Tech. Impact
* Organization's Worst-case Scenario
Timeline
- 2026-01-10 CVE Reserved
- 2026-05-05 CVE Published
- 2026-05-05 CVE Updated
- 2026-05-05 First Exploit
- 2026-05-11 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-94: Improper Control of Generation of Code ('Code Injection')
CAPEC
References (8)
| URL | Tag | Source |
|---|---|---|
| http://erpnext.org | Product | |
| https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script | Product | |
| 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.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution | Third Party Advisory |
| URL | Date | SRC |
|---|---|---|
| https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6 | 2026-05-05 | |
| https://www.exploit-db.com/exploits/51580 | 2026-05-05 |
| URL | Date | SRC |
|---|
| URL | Date | SRC |
|---|
