CVE-2023-54345 — Frappe Framework ERPNext 13
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 endpoi
Published
2026-05-05T12:16:16.850
Last modified
2026-05-05T20:07:56.160
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
01What is this vulnerability?
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.
02Affected products
No structured affected-product list available — see references below for vendor advisories.
03Active exploitation status
Not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog. EPSS is the best forward-looking signal — see the EPSS row above.
04Recommended remediation
- Patch to a fixed version listed in the vendor advisory (see references below).
- Mitigate with WAF rules, network egress filters, or feature flags where the patch is not yet available.
- Hunt historical logs for exploitation indicators — see Detection signatures below.
05Technical details
For the full vendor write-up, exploit chains, and reference implementations, see the references list in section 09.
06Detection signatures
Ask SARA in chat to draft a starting detection for this CVE in your stack of choice.
07Related CVEs
No directly-cited follow-up CVEs in the KB record for this advisory. The references list in section 09 carries the vendor cross-references.
08Timeline
- Published: 2026-05-05T12:16:16.850
- Last modified: 2026-05-05T20:07:56.160
09References
- erpnext.org — http://erpnext.org
- frappeframework.com — https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script
- gist.github.com — https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6
- github.com — https://github.com/frappe/frappe/
- github.com — https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42
- ur4ndom.dev — https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/
- www.exploit-db.com — https://www.exploit-db.com/exploits/51580
- www.vulncheck.com — https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execut…
Want this in your SOAR or SIEM?
SARA's API returns EPSS, CVSS, KEV, and an analyst-grade summary in one call.
Read the API reference →