{"id":"CVE-2023-54345","published":"2026-05-05T11:24:49Z","modified":"2026-05-25T23:41:22Z","title":"Frappe Framework ERPNext 13.4.0 Remote Code Execution","vendor":"Frappe Technologies","product":"Frappe Framework (ERPNext)","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03223,"percentile":0.88987,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://www.exploit-db.com/exploits/51580","tags":["exploit"]},{"url":"http://erpnext.org","tags":["product"]},{"url":"https://github.com/frappe/frappe/","tags":["product"]},{"url":"https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/","tags":["third-party-advisory"]},{"url":"https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6","tags":["product"]},{"url":"https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script","tags":["third-party-advisory"]},{"url":"https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution","tags":["third-party-advisory"]}],"priority":{"score":29.0,"factors":[{"name":"EPSS percentile","points":17.8},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2023-07-11"},"first":{"date":"2023-07-11","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/51580"},"provenance":"source"},"vendorSlug":"frappe-technologies","affectedVersions":[{"vendor":"Frappe Technologies","product":"Frappe Framework (ERPNext)","versions":["13.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-05-05T12:25:26.599274Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-60566","exploited":false,"provenance":"source"},"exploits":[{"id":51580,"url":"https://www.exploit-db.com/exploits/51580","title":"Frappe Framework (ERPNext) 13.4.0 - Authenticated Remote Code Execution (RCE)","date":"2023-07-11","verified":false,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/51580"]}