CVE-2023-54345
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.61%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
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.
- CVSS 4.0
- 8.7 HIGHCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/M
- EPSS
- 0.61% probability · 49th percentile
- Public exploits
- None in Exploit-DB
- CISA KEV
- Not listed
- Weakness
- CWE-94
- Affected
- frappe/erpnext
- Source
- disclosure@vulncheck.com
EPSS 0.6% since 27 October 2026; no change recorded yet. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
References
- http://erpnext.orgProduct
- https://frappeframework.com/docs/v13/user/en/desk/scripting/server-scriptProduct
- https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6Exploit
- https://github.com/frappe/frappe/Product
- https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42Product
- https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/Not Applicable
- https://www.exploit-db.com/exploits/51580Exploit, VDB Entry
- https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-executionThird Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.