# CVE-2023-54345: Frappe Framework ERPNext 13.4.0 Remote Code Execution

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.87%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-05-05T11:24:49.618Z
- Modified: 2026-10-28T19:10:00.193Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Frappe Technologies Frappe Framework (ERPNext): 13.4.0
- frappe erpnext: 13.4.0

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.exploit-db.com/exploits/51580> (exploit, vdb-entry)
- <https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6> (exploit, product)
- <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://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

- CVE List: [CVE-2023-54345](https://www.cve.org/CVERecord?id=CVE-2023-54345), CVE Terms of Use, modified 2026-05-25
- NVD: [CVE-2023-54345](https://nvd.nist.gov/vuln/detail/CVE-2023-54345), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2023-54345 · Whole record: https://cve.day/CVE-2023-54345.json · Rebuilt by cve.day 2026-11-25T22:58:35.303Z
