Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-58390 Overview
CVE-2024-58390 is an improper privilege management vulnerability [CWE-269] in the Frappe framework. The flaw affects Frappe versions before 14.81.4 and 15.x versions before 15.41.0. Authenticated attackers holding the low-privilege Website User role can abuse a specific document action to escalate to the System Manager role. Successful exploitation grants full administrative control over the Frappe application, including access to business data, configuration, and user management.
Critical Impact
Any authenticated Website User can obtain System Manager privileges, resulting in full compromise of the Frappe application and its underlying data.
Affected Products
- Frappe framework versions before 14.81.4
- Frappe framework 15.x versions before 15.41.0
- Applications built on vulnerable Frappe releases (including ERPNext deployments)
Discovery Timeline
- 2026-10-12 - CVE-2024-58390 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2024-58390
Vulnerability Analysis
Frappe implements a role-based access control model where the Website User role is intended for low-privilege, externally facing portal users. The System Manager role, by contrast, grants administrative capabilities including user creation, permission changes, and script execution. The vulnerability stems from a document action that fails to enforce role boundaries. An authenticated attacker invokes that action and combines it with additional application steps to escalate privileges.
Because the Website User role is commonly granted automatically to anyone who signs up through a Frappe portal, the attack prerequisite is trivial in most deployments. After escalation, the attacker inherits all System Manager capabilities, which allow data exfiltration, persistence, and server-side script execution within the application context.
Root Cause
The root cause is improper privilege management [CWE-269] in a document action handler. The handler does not validate that the invoking user holds a role authorized to produce the resulting privilege change. See the GitHub Security Advisory for the specific affected code paths.
Attack Vector
The attack is remote and requires only Website User credentials. The attacker authenticates to the Frappe portal, triggers the vulnerable document action over HTTP, and chains it with follow-on steps described in the VulnCheck advisory to obtain the System Manager role. No user interaction from an administrator is required.
No verified public exploit code is referenced in the current advisories. Technical details are available in the vendor and VulnCheck advisories linked above.
Detection Methods for CVE-2024-58390
Indicators of Compromise
- Unexpected role assignments granting System Manager to accounts that previously held only the Website User role.
- New or modified User documents created shortly after login events from external portal accounts.
- Audit log entries showing privileged document actions originating from accounts without an administrative history.
Detection Strategies
- Query the Frappe tabHasRole table for recent additions of the System Manager role and correlate with the user's original role set.
- Review application access logs for requests to document action endpoints invoked by Website User accounts.
- Alert on administrative operations such as user creation, permission rule changes, or server script edits performed by newly privileged accounts.
Monitoring Recommendations
- Forward Frappe application and web server logs to a centralized log platform for retention and correlation.
- Baseline normal portal user behavior and generate alerts on role changes affecting the System Manager role.
- Monitor outbound requests from the Frappe application host for signs of data exfiltration following suspicious role escalations.
How to Mitigate CVE-2024-58390
Immediate Actions Required
- Upgrade Frappe to version 14.81.4, 15.41.0, or later on all affected instances.
- Audit the User doctype for unauthorized assignments of the System Manager role and revoke any that cannot be justified.
- Rotate API keys, passwords, and session secrets for accounts that may have been elevated during the exposure window.
Patch Information
Frappe addressed the vulnerability in versions 14.81.4 and 15.41.0. Deployment details, including the fixed commits, are documented in the GitHub Security Advisory GHSA-gjqf-v2f6-962h. ERPNext and other applications built on Frappe should pin to a patched framework release during their next deployment.
Workarounds
- If immediate patching is not possible, disable public signup on Frappe portals to limit who can obtain the Website User role.
- Restrict network access to the Frappe application to trusted networks or require VPN access for all users.
- Review and tighten role permissions on the vulnerable document action to reduce the number of accounts capable of invoking it.
# Upgrade Frappe using bench to a patched release
bench update --reset
bench switch-to-branch version-15 frappe --upgrade
bench pip install --upgrade "frappe>=15.41.0"
bench migrate
bench restart
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

