CVE-2023-54345
published high CVSS 4.0 · 8.7Frappe Framework ERPNext 13.4.0 Remote Code Execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Frappe Technologies | — | Frappe Framework (ERPNext)13.4.0 | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Frappe Technologies | Frappe Framework (ERPNext) | 13.4.0 (affected) | VulnCheck · cna |
Weaknesses
1- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
8- Official Product Homepage http://erpnext.org
- Reference https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script
- Source Code Repository https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6
- Product Reference https://github.com/frappe/frappe/
- Source Code Repository https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42
- Reference https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/
- ExploitDB-51580 https://www.exploit-db.com/exploits/51580
- VulnCheck Advisory: Frappe Framework ERPNext 13.4.0 Remote Code Execution https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution
Provider assertions
2VulnCheck · cna
Frappe Framework ERPNext 13.4.0 Remote Code Execution
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 94265d3d009f4fa8ab81b94d8e8896920dcd54edf91e495685248d65885d7301
- Ingested
- 23 Sep 2026, 08:15:07 UTC
- Source record
- Official CVE record