CVE-2023-54406
4.9MediumPublished Oct 12, 2026 · NVD status: Deferred · AI triage by gemini-3.8-flash
Medium
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- High
- User action
- None
- Impact
- High impact on integrity
- Weakness
- CWE-372
What an attacker gets
High-privileged authenticated users can escape the Python sandbox and execute unsafe code on the server. They need an account with permissions to create or edit Server Scripts.
Root cause
The global frappe.flags.in_safe_exec sandbox flag resets to False when one Server Script triggers another, executing subsequent code without sandbox restrictions.
Affected versions
Frappe versions before 14.59.0 and 15.x before 15.5.0
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
Fix & remediation
Upgrade Frappe to version 14.59.0, 15.5.0, or later. If updating immediately is not possible, disable the Server Script feature in site_config.json by setting server_script_enabled to false.
$ bench update --patchAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.
References
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-160237.3HighLocal attackers can escalate privileges to SYSTEM. They need low-privileged access to the host during an agent upgrade or uninstallation.
- CVE-2026-1423277.4HighRemote attackers can take over administrator accounts by registering a social login account with the admin's email address. No prior access is required, only the ability to trigger the OAuth callback and merge process.
- CVE-2026-1423207.7HighUnauthenticated attackers can delete, read, or overwrite files in your S3 storage if they discover an object key. They do not need an account or user interaction to exploit this.
- CVE-2026-1423077.1HighAuthenticated users can crash your search and indexing by stopping or removing data nodes. This requires a valid user account with at least Reader access.
- CVE-2026-1423007.3HighUnauthenticated attackers can inject properties into the server's object prototype via WebSocket messages. This allows them to intercept room secrets and hijack or disrupt user pairing sessions.
- CVE-2026-1422968.1HighUnauthenticated attackers can hijack user sessions by stealing one-time codes via an open redirect. This requires a logged-in user to click a malicious link.