CVE-2023-54345
high
CVSS v3
8.8
CVSS v2
—
VIR risk
8.8
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.
Predictions
Exploit likelihood
92%
Patch ETA
—
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No vendor mitigations ingested yet for this CVE. The mitigation-content worker queues fetches as references arrive — check back in a few minutes, or see the references list below.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| frappe | erpnext | 13.4.0 | |
References
- http://erpnext.org
- https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script
- https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6
- https://github.com/frappe/frappe/
- https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42
- https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/
- https://www.exploit-db.com/exploits/51580
- https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution
CWEs
CWE-94
Verify integrity in audit chain (admin only). AS-IS.