{"id":"CVE-2023-54345","aliases":["EUVD-2023-60566","GHSA-2347-whqp-m9vm"],"status":"published","title":"Frappe Framework ERPNext 13.4.0 Remote Code Execution","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.","severity":{"version":"4.0","score":8.7,"vector":"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00609,"percentile":0.49617,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-94"],"published":"2026-05-05T11:24:49Z","modified":"2026-10-30T02:31:06Z","products":[{"vendor":"erpnext","product":"frappe framework (erpnext)"},{"vendor":"frappe","product":"erpnext"},{"vendor":"frappe technologies","product":"frappe framework (erpnext)"}],"references":[{"url":"https://www.exploit-db.com/exploits/51580","tags":["exploit","Exploit","VDB Entry","evidence"]},{"url":"http://erpnext.org","tags":["product","Product","web"]},{"url":"https://github.com/frappe/frappe/","tags":["product","Product","web"]},{"url":"https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/","tags":["third-party-advisory","Not Applicable","advisory"]},{"url":"https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6","tags":["product","Exploit","web"]},{"url":"https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script","tags":["third-party-advisory","Product","advisory"]},{"url":"https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42","tags":["product","Product","web"]},{"url":"https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution","tags":["third-party-advisory","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54345","tags":["advisory"]},{"url":"https://github.com/frappe/frappe"},{"url":"https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read"},{"url":"https://github.com/advisories/GHSA-2347-whqp-m9vm"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54345.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2023-54345","title":"Frappe Framework ERPNext 13.4.0 Remote Code Execution","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.","status":"published","published":"2026-05-05T11:24:49.618Z","modified":"2026-05-25T23:41:22.825Z","cvss":[{"version":"4.0","score":8.7,"vector":"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","level":"high","assessor":"cna"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:35:15.066338Z"}],"euvd":[{"id":"EUVD-2023-60566","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.","status":"published","published":"2026-05-05T11:24:49Z","modified":"2026-05-25T23:41:22Z","cvss":[{"version":"4.0","score":8.7,"vector":"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","level":"high"}],"updated_at":"2026-11-02T18:21:08.174412Z"}],"ghsa":[{"id":"GHSA-2347-whqp-m9vm","title":"Frappe Framework ERPNext 13.4.0 contains a sandbox escape vulnerability in RestrictedPython that...","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.","status":"published","published":"2026-05-05T12:31:38Z","modified":"2026-05-05T12:31:44Z","cvss":[{"version":"4.0","score":8.7,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:07:54.707151Z"}],"nvd":[{"id":"CVE-2023-54345","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.","status":"published","published":"2026-05-05T12:16:16.85Z","modified":"2026-10-28T19:10:00.193Z","cvss":[{"version":"4.0","score":8.7,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:09:27.733183Z"}],"osv":[{"id":"CVE-2023-54345","title":"Frappe Framework ERPNext 13.4.0 Remote Code Execution","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.","status":"published","published":"2026-05-05T11:24:49.618Z","modified":"2026-10-30T02:31:06.829554916Z","cvss":[{"version":"4.0","score":8.7,"vector":"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","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:44:36.851042Z"}]}}
