CVE-2023-54345 Frappe Framework ERPNext 13.4.0 Remote Code Execution
Authenticated System Managers can execute arbitrary code via sandbox escape in RestrictedPython using server scripts.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-54345?
CVE-2023-54345 is a high-severity code injection vulnerability in Frappe Erpnext, published on 5 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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-94
Which versions are affected by CVE-2023-54345?
It affects 1 product.
Products include Frappe Erpnext.
How do I fix CVE-2023-54345?
No fix has been published for CVE-2023-54345 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2023-54345 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-54345 exists.
Other vulnerabilities in Frappe Erpnext
Sources
Also known as GHSA-2347-whqp-m9vm.