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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Frappe Technologies | Frappe Framework (ERPNext) | 13.4.0 | — |
References
- ExploitDB-51580 exploit
- Official Product Homepage product
- Product Reference product
- Reference third-party-advisory
- Source Code Repository product
- Reference third-party-advisory
- Source Code Repository product
- VulnCheck Advisory: Frappe Framework ERPNext 13.4.0 Remote Code Execution third-party-advisory