{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-54345","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","state":"PUBLISHED","assignerShortName":"VulnCheck","dateReserved":"2026-01-10T01:51:52.984Z","datePublished":"2026-05-05T11:24:49.618Z","dateUpdated":"2026-05-25T23:41:22.825Z"},"containers":{"cna":{"providerMetadata":{"orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","shortName":"VulnCheck","dateUpdated":"2026-05-25T23:41:22.825Z"},"datePublic":"2023-06-07T00:00:00.000Z","title":"Frappe Framework ERPNext 13.4.0 Remote Code Execution","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Frappe Technologies","product":"Frappe Framework (ERPNext)","versions":[{"version":"13.4.0","status":"affected"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:erpnext:erpnext:13.4.0:*:*:*:*:*:*:*"}]}]}],"problemTypes":[{"descriptions":[{"lang":"en","description":"Improper Control of Generation of Code ('Code Injection')","cweId":"CWE-94","type":"CWE"}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":8.7,"baseSeverity":"HIGH","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS"},{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS"}],"references":[{"url":"https://www.exploit-db.com/exploits/51580","name":"ExploitDB-51580","tags":["exploit"]},{"url":"http://erpnext.org","name":"Official Product Homepage","tags":["product"]},{"url":"https://github.com/frappe/frappe/","name":"Product Reference","tags":["product"]},{"url":"https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/","name":"Reference","tags":["third-party-advisory"]},{"url":"https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6","name":"Source Code Repository","tags":["product"]},{"url":"https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script","name":"Reference","tags":["third-party-advisory"]},{"url":"https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42","name":"Source Code Repository","tags":["product"]},{"name":"VulnCheck Advisory: Frappe Framework ERPNext 13.4.0 Remote Code Execution","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution"}],"credits":[{"lang":"en","value":"Sander Ferdinand","type":"finder"}],"x_generator":{"engine":"vulncheck"}},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-05T12:25:26.599274Z","id":"CVE-2023-54345","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-05-05T12:25:34.862Z"}}]}}