CVE-2026-32267

Craft CMS Vulnerable to Privilege Escalation/Bypass through UsersController->actionImpersonateWithToken()

Published Mar 16, 2026 CVSS 4.0 · 7.7 High EPSS 9.7% KEV · Not listed
Description
Craft CMS is a content management system (CMS). From version 4.0.0-RC1 to before version 4.17.6 and from version 5.0.0-RC1 to before version 5.9.12, a low-privilege user (or an unauthenticated user who has been sent a shared URL) can escalate their privileges to admin by abusing UsersController->actionImpersonateWithToken. This issue has been patched in versions 4.17.6 and 5.9.12.

Analysis

AI-generated

Technical impact

The vulnerability allows a user with low privileges or an unauthenticated user who receives a shared URL to trigger the UsersController->actionImpersonateWithToken endpoint and obtain administrator rights. This issue is a classic case of arbitrary account impersonation (CWE‑863). The attacker can elevate privileges without needing valid credentials, thereby gaining full control over the CMS.

Affected Systems

Craft CMS versions from 4.0.0‑RC1 up to but not including 4.17.6 and from 5.0.0‑RC1 up to but not including 5.9.12 are affected. The fix is incorporated in 4.17.6 and 5.9.12 respectively.

Risk and Exploitability

The CVSS score of 7.7 indicates a high impact vulnerability, while an EPSS score of 9.362% indicates a moderate likelihood of exploitation. The vulnerability is not listed in CISA KEV. Attackers can remotely exploit the flaw by supplying a crafted link that targets the impersonate endpoint, requiring only low‑privilege or unauthenticated access. Based on the description, it is inferred that the likely attack vector is the use of a crafted shared URL that triggers the vulnerable method.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official patch by upgrading Craft CMS to version 4.17.6 or later, or 5.9.12 or later.
  • If upgrading is not immediately feasible, restrict or disable the impersonate endpoint by configuring the CMS to block actionImpersonateWithToken or to require authentication for URLs or enforcing stricter access controls to prevent attackers from accessing the vulnerable endpoint.
  • If the patch cannot be applied or the endpoint cannot be disabled, rotate all administrative authentication tokens and passwords, and consider forcing a password reset for all admin accounts to mitigate potential unauthorized use of compromised session credentials.

Generated by OpenCVE AI on October 25, 2026 at 21:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-cc7p-2j3x-x7xf Craft CMS Vulnerable to Privilege Escalation/Bypass through UsersController->actionImpersonateWithToken()
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Craftcms craft Cms
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:-:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:rc1:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:rc2:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:4.0.0:rc3:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:5.0.0:-:*:*:*:*:*:*
cpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:*
Vendors & Products Craftcms craft Cms
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Craftcms
Craftcms craftcms
Vendors & Products Craftcms
Craftcms craftcms
Type Values Removed Values Added
Description Craft CMS is a content management system (CMS). From version 4.0.0-RC1 to before version 4.17.6 and from version 5.0.0-RC1 to before version 5.9.12, a low-privilege user (or an unauthenticated user who has been sent a shared URL) can escalate their privileges to admin by abusing UsersController->actionImpersonateWithToken. This issue has been patched in versions 4.17.6 and 5.9.12.
Title Craft CMS Vulnerable to Privilege Escalation/Bypass through UsersController->actionImpersonateWithToken()
Weaknesses CWE-863
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 18, 2026, 3:43 PM
Reserved
Mar 11, 2026, 3:05 PM
Status
Analyzed
Published
Mar 16, 2026, 8:16 PM
Modified
Jun 17, 2026, 10:35 AM