CVE-2023-54406

Frappe before 14.59.0 Safe Execution Flag Bypass in Server Scripts

Published Oct 12, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability, classified as CWE-372, is a sandbox flaw that triggers when a server script executes another server script, causing the global flag frappe.flags.in_safe_exec to be set to False and disabling safe execution protections. Authenticated users with high privileges can deliberately construct a server script that initiates another script, such as by saving a document, thereby executing subsequent code outside the intended sandbox. This bypass can lead to arbitrary code execution or other privileged operations that violate confidentiality, integrity, and availability, as the code runs with elevated privileges without the expected restrictions.

Affected Systems

Affected are installations of the Frappe framework from any vendor identified as frappe, specifically versions prior to 14.59.0 and 15.x prior to 15.5.0. Users running these versions are exposed to the sandbox bypass flaw and must upgrade to a patched release.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. EPSS score is not available, and the vulnerability is not listed in CISA KEV, suggesting a moderate likelihood of exploitation. The attack vector requires authenticated access with high privileges and depends on the ability to create or modify server scripts, which is typically restricted to administrators or power users. When these conditions are met, an attacker could chain script execution to remove safe execution constraints and run arbitrary code.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Frappe release (≥14.59.0 and ≥15.5.0).
  • Remove or restrict the ability for high‑privileged users to create or alter server scripts that can trigger additional script executions, by reviewing role permissions or disabling the Server Script module for those users.
  • Review and refactor any existing server scripts that save or modify documents during execution to prevent cascading script calls, and deploy monitoring to alert on suspicious script chaining.

Generated by OpenCVE AI on October 13, 2026 at 01:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Frappe before 14.59.0 Safe Execution Flag Bypass in Server Scripts
First Time appeared Frappe
Frappe frappe
Weaknesses CWE-372
CPEs cpe:2.3:a:frappe:frappe:*:*:*:*:*:*:*:*
Vendors & Products Frappe
Frappe frappe
References
Metrics cvssV3_1

{'score': 4.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 6.9, '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'}

Weaknesses
  • CWE-372

    Incomplete Internal State Distinction

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 15, 2026, 2:03 PM
Reserved
Oct 12, 2026, 9:02 PM
Status
Deferred
Published
Oct 12, 2026, 11:17 PM
Modified
Oct 12, 2026, 11:17 PM