{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-54345","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.","descriptionLong":"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.","published":"2026-05-05T11:24:49.618Z","updated":"2026-10-30T02:31:06.829554916Z","reserved":"2026-01-10T01:51:52.984Z","status":"Analyzed","rejected":false,"assigner":"VulnCheck","metric":{"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","rating":"high","source":"VulnCheck"},"metrics":[{"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","rating":"high","source":"VulnCheck"},{"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","rating":"high","source":"vulncheck.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"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","rating":"high","source":"VulnCheck"},{"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","rating":"high","source":"vulncheck.com"}],"rating":"high","products":["Frappe Technologies Frappe Framework (ERPNext)"],"affectedProducts":[{"vendor":"Frappe Technologies","product":"Frappe Framework (ERPNext)","defaultStatus":null,"versions":[{"version":"13.4.0","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-94"],"aliases":[],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54345.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54345","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00609,"epssPercentile":0.49964,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-54345","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54345","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-54345","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-54345","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}