CVE-2023-54345

Published: Mag 05, 2026 Last Modified: Mag 05, 2026
ExploitDB:
Other exploit source:
Google Dorks:
HIGH 8,7
Attack Vector: network
Attack Complexity: low
Privileges Required: low
User Interaction: none
Confidentiality: N/A
Integrity: N/A
Availability: N/A
HIGH 8,8
Attack Vector: network
Attack Complexity: low
Privileges Required: low
User Interaction: none
Scope: unchanged
Confidentiality: high
Integrity: high
Availability: high

Description

AI Translation Available

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.

94

Improper Control of Generation of Code ('Code Injection')

Draft
Common Consequences
Security Scopes Affected:
Access Control Integrity Confidentiality Availability Non-Repudiation
Potential Impacts:
Bypass Protection Mechanism Gain Privileges Or Assume Identity Execute Unauthorized Code Or Commands Hide Activities
Applicable Platforms
Languages: Interpreted
Technologies: AI/ML
View CWE Details
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-execu…