CVE Catalog

CVE-2023-54345

High
Published: Translated: NVD NIST

Summary

Frappe Framework ERPNext version 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.

Risk Assessment

This vulnerability poses a serious risk to organizations as it allows attackers to execute arbitrary system commands, potentially leading to system takeover. It also enables potential data leakage or deletion of critical resources.

Recommendation

It is recommended to update Frappe Framework ERPNext to the latest version to mitigate this vulnerability. Additionally, access to server script functionality should be restricted to trusted users.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS