CVE-2023-54345
Frappe Erpnext remote code execution
- Published5 May 2026
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 3.1 breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HAffected products
Remediation
No fixed version is recorded in the NVD data. Check the vendor advisory for the latest guidance.
References
- http://erpnext.org
- https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script
- https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6
- https://github.com/frappe/frappe/
- https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42
- https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/
- https://www.exploit-db.com/exploits/51580
- https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution
Related CVEs
Recent high-severity vulnerabilities sharing a weakness type.
Frequently asked
Is CVE-2023-54345 being actively exploited?
CVE-2023-54345 is not in the CISA KEV catalog. A public exploit reference exists, so treat it as exploitable. Its EPSS exploit probability is 0.61%.
How severe is CVE-2023-54345?
CVE-2023-54345 has a CVSS 3.1 base score of 8.8, rated high. EPSS estimates a 0.61% probability of exploitation.
Which products are affected by CVE-2023-54345?
Affected products include Frappe Erpnext.
How do I fix CVE-2023-54345?
Apply the vendor's patch or advisory guidance, then verify no affected versions remain across your devices.
How Secuno handles this
Secuno correlates vulnerabilities like CVE-2023-54345 against the real software inventory on every managed device, as each hourly inventory arrives. Rather than a static severity, each match is scored in context: exploit availability, EPSS, the asset's exposure, and business criticality decide where it lands in the queue. If an affected version is present anywhere across your portfolio, it surfaces automatically with a prioritised remediation path.
Data from the NVD, CISA KEV catalog and FIRST EPSS. CVSS 3.1 base score shown where available.