CVE-2023-54345
CVE-2023-54345 is a high-severity vulnerability in Frappe Erpnext with a CVSS 3.x base score of 8.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-94.
Key facts
- Severity: High (CVSS 3.x base score 8.8)
- CVSS v4: 8.7
- EPSS exploit prediction: 1% (45th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2023-60566
- Weakness: CWE-94
- Affected product: Frappe Erpnext
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2023-54345?
- CVE-2023-54345 has a CVSS 3.x base score of 8.8, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2023-54345 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (45th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-54345?
- CVE-2023-54345 affects Frappe Erpnext. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2023-54345?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2023-54345 have an EU (EUVD) identifier?
- Yes. CVE-2023-54345 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2023-60566.
- When was CVE-2023-54345 published?
- CVE-2023-54345 was published on 2026-05-05 and last updated on 2026-06-17.
References
- http://erpnext.org
- https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script
- https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6
- https://github.com/frappe/frappe/
- https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42
- https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/
- https://www.exploit-db.com/exploits/51580
- https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution
Affected products (1)
- cpe:2.3:a:frappe:erpnext:13.4.0:*:*:*:*:*:*:*
More vulnerabilities in Frappe Erpnext
- CVE-2026-44442 — Critical (CVSS 9.9): ERPNext is a free and open source Enterprise Resource Planning tool. Prior to 16.9.1, certain endpoints failed to…
- CVE-2026-38431 — Critical (CVSS 9.8): ERPNext v15.103.1 and before is vulnerable to Server-Side Template Injection (SSTI). An attacker with permission to…
- CVE-2025-67289 — Critical (CVSS 9.6): An arbitrary file upload vulnerability in the Attachments module of Frappe Framework v15.89.0 allows attackers to…
- CVE-2026-31017 — Critical (CVSS 9.1): A Server-Side Request Forgery (SSRF) vulnerability exists in the Print Format functionality of ERPNext v16.0.1 and…
- CVE-2026-27471 — Critical (CVSS 9.1): ERP is a free and open source Enterprise Resource Planning tool. In versions up to 15.98.0 and 16.0.0-rc.1 and through…
- CVE-2025-65267 — Critical (CVSS 9.0): In ERPNext v15.83.2 and Frappe Framework v15.86.0, improper validation of uploaded SVG avatar images allows attackers…
All CVEs affecting Frappe Erpnext →
Other CWE-94 (Code Injection) vulnerabilities
- CVE-2026-57624 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Blocksy Companion Pro <= 2.1.46 versions.
- CVE-2026-10134 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 allows an attacker to read every secret available to the Langflow process, read…
- CVE-2026-53576 — Critical (CVSS 10.0): Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, the authentication filter…
- CVE-2026-10561 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 has an vulnerability due to an improper isolation of Python execution combined…
- CVE-2026-25470 — Critical (CVSS 10.0): Improper Control of Generation of Code ('Code Injection') vulnerability in ACPT ACPT (Pro) - Custom Post Types Plugin…
- CVE-2026-48836 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Easy Invoice <= 2.1.19 versions.