Skip to content
CVSS 8.8 · HIGH

CVE-2023-54345

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.

View on NVD

Analysis

ERPNext contains a sandbox escape vulnerability that allows authenticated users with System Manager roles to execute arbitrary system commands. If you are running Frappe/ERPNext, ensure you are patched to prevent authorized users from compromising the underlying server via server scripts.

Severity

Score: 8.8(HIGH)
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
AV: NETWORK
AC: LOW
PR: LOW
UI: NONE
S: UNCHANGED
C: HIGH
I: HIGH
A: HIGH
Weakness (CWE): CWE-94

EPSS

Probability of exploitation (next 30 days): 0.0010 (0.1%)
Percentile: 27.4%
EPSS: 2026-05-06

Affects

frappe:erpnext

Technical description

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.

Published: 5/5/2026, 12:16:16 PM
Last modified: 5/5/2026, 8:07:56 PM

References

HomeEventsBlogResourcesTeam