The flaw is in Frappe safe execution, where frappe.render_template was exposed to the restricted environment without forcing restrict_globals. This weakened the permission boundary between safe execution and template rendering, allowing attacker-influenced template data to be interpreted on the server. At a high level, a limited authenticated user can reach safe execution, provide template data that is interpreted as server-side expressions, cross the permission boundary, and achieve remote code execution on the server. The fix adds safe_render_template, removes caller control over restrict_globals, and always calls frappe.render_template with restrict_globals=True; the safe globals are changed to use this wrapper. The public evidence does not identify the specific endpoint or request conditions used to supply template data.