CVE-2026-27128
MEDIUM 6.9CVSS 4.0Craft CMS Race condition in Token Service potentially allows for token usage greater than the token limit
Craft is a content management system (CMS). In versions 4.5.0-RC1 through 4.16.18 and 5.0.0-RC1 through 5.8.22, a Time-of-Check-Time-of-Use (TOCTOU) race condition exists in Craft CMS’s token validation service for tokens that explicitly set a limited usage. The getTokenRoute() method reads a token’s usage count, checks if it’s within limits, then updates the database in separate non-atomic operations. By sending concurrent requests, an attacker can use a single-use impersonation token multiple times before the database update completes. To make this work, an attacker needs to obtain a valid user account impersonation URL with a non-expired token via some other means and exploit a race condition while bypassing any rate-limiting rules in place. For this to be a privilege escalation, the impersonation URL must include a token for a user account with more permissions than the current user. Versions 4.16.19 and 5.8.23 patch the issue.
- Published
- 24 Feb 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-367
- Also known as
- GHSA-6fx5-5cw5-4897
- Sources
- NVDJSONOSV GHSA-6fx5-5cw5-4897JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
> 4.5.0, < 4.16.19 | 4.16.19 |
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
> 5.0.0, < 5.8.23 | 5.8.23 |
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:4.5.0:-:*:*:*:*:*:* |
= 4.5.0 | |
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:4.5.0:rc1:*:*:*:*:*:* |
= 4.5.0 | |
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:5.0.0:-:*:*:*:*:*:* |
= 5.0.0 | |
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:* |
= 5.0.0 | |
| OSV | Packagist | craftcms/cms | >= 4.5.0-RC1, < 4.16.19 | 4.16.19 |
| OSV | Packagist | craftcms/cms | >= 5.0.0-RC1, < 5.8.23 | 5.8.23 |
References
- https://github.com/craftcms/cms/commit/3e4afe18279951c024c64896aa2b93cda6d95fdf · Patch, WEB
- https://github.com/craftcms/cms/security/advisories/GHSA-6fx5-5cw5-4897 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27128 · ADVISORY
- https://github.com/craftcms/cms · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 24 Feb 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 23 Feb 2026)