RCE in Erpnext Frappe Framework (Erpnext)
CVE-2023-54345
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.006 (49.2th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 49th percentile — 49.2% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.006 · newest: 0.006 · change: 0.000
Affected products
- Erpnext Frappe Framework (Erpnext) — versions 13.4.0
- Frappe Erpnext — versions 13.4.0
- Frappe Technologies Framework (Erpnext) — versions 13.4.0
Weakness classification (CWE)
References
- www.exploit-db.com/exploits/51580 (Exploit, VDB Entry, exploit)
- erpnext.org (Product, product)
- github.com/frappe/frappe/ (Product, product)
- ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/ (Not Applicable, third-party-advisory)
- gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6 (Exploit, product)
- frappeframework.com/docs/v13/user/en/desk/scripting/server-script (Product, third-party-advisory)
- github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py (Product, product)
- www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2023-54345?
- CVE-2023-54345 is a high-severity vulnerability in Erpnext Frappe Framework (Erpnext), classified under Code Injection. CVSS score: 8.8/10. Published 2026-05-05.
- How severe is CVE-2023-54345?
- High severity. CVSS v3 base score is 8.8 out of 10.