High severity · published May 5, 2026
CVE-2023-54345
Frappe Framework ERPNext 13.4.0 Remote Code Execution
8.8
CVSS
0.6%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 49% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
FF
Frappe Framework (ERPNext) · Frappe Technologies
13.4.0 · source: vendor
ER
Erpnext · Frappe
13.4.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-54345
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-54345
Product
http://erpnext.org
Product
https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script
Exploit
https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6
Product
https://github.com/frappe/frappe/
Product
https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42
Not Applicable
https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/
