8.7high
Frappe Framework ERPNext 13.4.0 Remote Code Execution
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 1.87% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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
| Product or package | Versions | Reported by |
|---|---|---|
| Frappe Technologies Frappe Framework (ERPNext) | 13.4.0 | CVE List |
| frappe erpnext | 13.4.0 | NVD |
All scores
| VulnCheck | 8.7high CVSS:4.0 | 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 |
| VulnCheck | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Frappe Framework ERPNext 13.4.0 contiene una vulnerabilidad de escape de sandbox en RestrictedPython que permite a usuarios autenticados con el rol de System Manager ejecutar código arbitrario explotando la introspección de frames. Los atacantes pueden crear un script de servidor a través del endpoint /app/server-script y acceder al atributo gi_frame para recorrer la pila de llamadas e invocar os.popen para ejecutar comandos del sistema.
References
| https://www.exploit-db.com/exploits/51580 | exploit, vdb-entry | |
| http://erpnext.org | product | |
| https://github.com/frappe/frappe/ | product | |
| https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/ | not-applicable, third-party-advisory | |
| https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6 | exploit, product | |
| https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script | product, third-party-advisory | |
| https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42 | product | |
| https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54345 changed 2026-05-25 | CVE Terms of Use |
| NVD | CVE-2023-54345 changed 2026-10-28 | Public domain |