Original 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.
Affected software
- ERPNext = 13.4.0 exact match
Details
- Published
- 2026-05-05
- Last modified
- 2026-10-28
- CVSS vector
CVSS: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/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:- CWE
- CWE-94
- EPSS (30-day exploit probability)
- 0.61% (percentile 50)
References
- cve.org/CVE-2023-54345
- nvd.nist.gov/vuln/detail/CVE-2023-54345
- 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#L42
- ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/
- www.exploit-db.com/exploits/51580
- www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.