Craft CMS: Arbitrary user password reset leading to administrator account takeover
Craft CMS contains a vulnerability that allows any authenticated user to change their own password without providing the current password or having an elevated session. Additionally, users with the 'Edit users' permission can change other users' passwords, including administrators, despite lacking the 'Administrate users' permission. This flaw exists due to improper validation in the user password update process, bypassing intended security checks.
AI Analysis
Technical Summary
The vulnerability in Craft CMS arises from the 'elements/save' action when saving a User element. The 'UserPasswordValidator' applies only a 'safe' validator to the 'newPassword' field without restricting it to specific scenarios, making 'newPassword' mass-assignable during the generic element save flow. This bypasses the dedicated 'users/set-password' action that enforces elevated session verification. Consequently, any authenticated user can change their own password without providing the current password. Furthermore, users with the 'Edit users' permission can change other users' passwords, including administrators, even though they lack the 'Administrate users' permission required for such actions.
Potential Impact
Any authenticated user can change their own password without needing to provide the current password, potentially allowing account takeover if the session is hijacked or compromised. Users with the 'Edit users' permission can change any user's password, including administrators, enabling privilege escalation and full account takeover of high-privilege accounts.
Mitigation Recommendations
A patch is available to address this vulnerability. It is recommended to apply the official fix provided by the vendor to ensure that password changes require proper verification and elevated session checks. Until patched, restrict 'Edit users' permissions to trusted users only and monitor for suspicious password changes. Patch status is confirmed as available; apply updates promptly.
Craft CMS: Arbitrary user password reset leading to administrator account takeover
Description
Craft CMS contains a vulnerability that allows any authenticated user to change their own password without providing the current password or having an elevated session. Additionally, users with the 'Edit users' permission can change other users' passwords, including administrators, despite lacking the 'Administrate users' permission. This flaw exists due to improper validation in the user password update process, bypassing intended security checks.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Craft CMS arises from the 'elements/save' action when saving a User element. The 'UserPasswordValidator' applies only a 'safe' validator to the 'newPassword' field without restricting it to specific scenarios, making 'newPassword' mass-assignable during the generic element save flow. This bypasses the dedicated 'users/set-password' action that enforces elevated session verification. Consequently, any authenticated user can change their own password without providing the current password. Furthermore, users with the 'Edit users' permission can change other users' passwords, including administrators, even though they lack the 'Administrate users' permission required for such actions.
Potential Impact
Any authenticated user can change their own password without needing to provide the current password, potentially allowing account takeover if the session is hijacked or compromised. Users with the 'Edit users' permission can change any user's password, including administrators, enabling privilege escalation and full account takeover of high-privilege accounts.
Mitigation Recommendations
A patch is available to address this vulnerability. It is recommended to apply the official fix provided by the vendor to ensure that password changes require proper verification and elevated session checks. Until patched, restrict 'Edit users' permissions to trusted users only and monitor for suspicious password changes. Patch status is confirmed as available; apply updates promptly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-p8x7-9vfw-p7vc
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- HIGH
- Cvss Version
- null
Threat ID: 6a7573bfbf8831d539d943da
Added to database: 08/07/2026, 05:57:19 UTC
Last enriched: 08/07/2026, 06:26:13 UTC
Last updated: 08/07/2026, 06:26:13 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.