8.8High
CVE-2023-54345Frappe Framework ERPNext 13.4.0 Remote Code Execution
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.
Weakness (CWE):
CWE-94
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| erpnext | erpnext | 13.4.0 | |
| frappe | erpnext | 13.4.0 | |
| Frappe Technologies | Frappe Framework (ERPNext) | 13.4.0 |
References and patches
- ExploitDB-51580 exploitExploitVDB Entry
- Official Product Homepage productProduct
- Product Reference productProduct
- Reference third-party-advisoryNot Applicable
- Source Code Repository productExploit
- Reference third-party-advisoryProduct
- Source Code Repository productProduct
- VulnCheck Advisory: Frappe Framework ERPNext 13.4.0 Remote Code Execution third-party-advisoryThird Party Advisory
CPE matches (NVD) (1)
cpe:2.3:a:frappe:erpnext:13.4.0:*:*:*:*:*:*:*