CVE-2023-54345
Full vulnerability record from the local CVENow database.
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.
Severity
HIGH
CVSS score
8.7
(v4.0)
Vulnerability status
Analyzed
Source identifier
Published
2026-05-05 12:16:16.850000
Last modified
2026-10-28 19:10:00.193000
View original CVE JSON
{
"id": "CVE-2023-54345",
"sourceIdentifier": "[email protected]",
"published": "2026-05-05T12:16:16.850",
"lastModified": "2026-10-28T19:10:00.193",
"vulnStatus": "Analyzed",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "Frappe Framework ERPNext 13.4.0 contiene una vulnerabilidad de escape de sandbox en RestrictedPython que permite a usuarios autenticados con el rol de System Manager ejecutar código arbitrario explotando la introspección de frames. Los atacantes pueden crear un script de servidor a través del endpoint /app/server-script y acceder al atributo gi_frame para recorrer la pila de llamadas e invocar os.popen para ejecutar comandos del sistema."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "Frappe Technologies",
"product": "Frappe Framework (ERPNext)",
"versions": [
{
"version": "13.4.0",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV40": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "4.0",
"vectorString": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"baseScore": 8.7,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"attackRequirements": "NONE",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"vulnConfidentialityImpact": "HIGH",
"vulnIntegrityImpact": "HIGH",
"vulnAvailabilityImpact": "HIGH",
"subConfidentialityImpact": "NONE",
"subIntegrityImpact": "NONE",
"subAvailabilityImpact": "NONE",
"exploitMaturity": "NOT_DEFINED",
"confidentialityRequirement": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"availabilityRequirement": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"valueDensity": "NOT_DEFINED",
"vulnerabilityResponseEffort": "NOT_DEFINED",
"providerUrgency": "NOT_DEFINED"
}
}
],
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 2.8,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-05-05T12:25:26.599274Z",
"id": "CVE-2023-54345",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-94"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:frappe:erpnext:13.4.0:*:*:*:*:*:*:*",
"matchCriteriaId": "BD2F5F8C-EFED-4EFC-AC78-B8BE1C616EB6"
}
]
}
]
}
],
"references": [
{
"url": "http://erpnext.org",
"source": "[email protected]",
"tags": [
"Product"
]
},
{
"url": "https://frappeframework.com/docs/v13/user/en/desk/scripting/server-script",
"source": "[email protected]",
"tags": [
"Product"
]
},
{
"url": "https://gist.github.com/lebr0nli/c2fc617390451f0e5a4c31c87d8720b6",
"source": "[email protected]",
"tags": [
"Exploit"
]
},
{
"url": "https://github.com/frappe/frappe/",
"source": "[email protected]",
"tags": [
"Product"
]
},
{
"url": "https://github.com/frappe/frappe/blob/v13.4.0/frappe/utils/safe_exec.py#L42",
"source": "[email protected]",
"tags": [
"Product"
]
},
{
"url": "https://ur4ndom.dev/posts/2023-07-02-uiuctf-rattler-read/",
"source": "[email protected]",
"tags": [
"Not Applicable"
]
},
{
"url": "https://www.exploit-db.com/exploits/51580",
"source": "[email protected]",
"tags": [
"Exploit",
"VDB Entry"
]
},
{
"url": "https://www.vulncheck.com/advisories/frappe-framework-erpnext-remote-code-execution",
"source": "[email protected]",
"tags": [
"Third Party Advisory"
]
}
]
}