{"schemaVersion":3,"id":"CVE-2023-54406","aliases":[],"status":"published","duplicateOf":null,"title":"Frappe before 14.59.0 Safe Execution Flag Bypass in Server Scripts","description":"Frappe before 14.59.0 and 15.x before 15.5.0 contains a sandbox flaw where the frappe.flags.in_safe_exec global flag can become False during Server Script execution when one server script triggers another. Authenticated high-privileged users can craft a Server Script that triggers other server scripts, such as by saving a document, so the remaining code runs without safe execution protections.","dates":{"published":"2026-10-12T22:21:38.705Z","modified":"2026-10-15T14:03:30.211Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.9,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"NVD","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00315,"percentile":0.23177,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-13T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00315,"percentile":0.23177}],"last30":[{"date":"2026-10-13T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00315,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00315,"percentile":0.23177}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-372","name":"Incomplete Internal State Distinction","description":"The product does not properly determine which state it is in, causing it to assume it is in state X when in fact it is in state Y, causing it to perform incorrect operations in a security-relevant manner.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/372.html"}],"affected":[{"vendor":"frappe","product":"frappe","name":"frappe","label":"frappe","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 14.59.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 15.0.0, < 15.5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 14.59.0 | ≥ 15.0.0, < 15.5.0","eol":null,"hubHref":"/vendor/frappe/frappe"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/frappe/frappe/security/advisories/GHSA-v3vh-7qx4-f582","label":"github.com/frappe/frappe/security/advisories/GHSA-v3vh-7qx4-f582","hostname":"github.com","tags":["Vendor Advisory"]},{"url":"https://www.vulncheck.com/advisories/frappe-before-14.59.0-safe-execution-flag-bypass-in-server-scripts","label":"www.vulncheck.com/advisories/frappe-before-14.59.0-safe-execution-flag-bypass-in-server-scripts","hostname":"www.vulncheck.com","tags":["Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-12T22:21:38.705Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-15T14:03:30.211Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T18:45:47.302Z","stale":false,"partial":false}}