Frappe Framework ERPNext 13.4.0 Remote Code Execution
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-54345
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 01:37 UTC · Revision 1
Source evidence
Frappe Framework ERPNext 13.4.0 Remote Code Execution
core-osv · Original sourcePublished 5 May 2026, 11:24 UTC
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.
osv:CVE-2023-54345
Complete source record
{
"id": "6b7107f753788875c2873a331a4a8e27f4822e15409b67446595b41afc6d9062",
"url": "https://osv.dev/vulnerability/CVE-2023-54345",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Frappe Framework ERPNext 13.4.0 Remote Code Execution",
"summary": "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.",
"evidence": "osv:CVE-2023-54345",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2023-54345",
"aliases": [
"CVE-2023-54345"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/frappe/erpnext",
"type": "GIT",
"events": [
{
"introduced": "d0ba0217e444876be2e93961c26704b7fe904f3a"
},
{
"last_affected": "d0ba0217e444876be2e93961c26704b7fe904f3a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:frappe:erpnext:13.4.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "13.4.0"
},
{
"last_affected": "13.4.0"
}
],
"source": "CPE_STRING"
}
]
}
},
{
"repo": "https://github.com/frappe/frappe",
"type": "GIT",
"events": [
{
"introduced": "fc495aa47cf1d532915997a948d839fb66961aa5"
},
{
"last_affected": "fc495aa47cf1d532915997a948d839fb66961aa5"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "13.4.0"
},
{
"last_affected": "13.4.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
}
],
"versions": [
"13.4.0",
"v13.4.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54345.json"
}
}
],
"modified": "2026-10-30T02:31:06.829554916Z",
"provider": "osv",
"references": [
"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://frappeframework.com/docs/v13/user/en/desk/scripting/server-script",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54345.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-54345",
"https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/",
"https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution",
"https://www.exploit-db.com/exploits/51580"
],
"provider_metadata": {
"cwe_ids": [
"CWE-94"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54345.json"
}
},
"related_cves": [
{
"value": "CVE-2023-54345",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 509156,
"published_at": "2026-05-05T11:24:49.618+00:00"
}