# CVE-2026-27128: Craft CMS's race condition in Token Service potentially allows for token usage greater than the token limit

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-02-23T22:16:22.000Z
- Modified: 2026-06-17T10:26:43.020Z
- Also known as: GHSA-6fx5-5cw5-4897
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- craftcms cms: >= 4.5.0-RC1, < 4.16.19; >= 5.0.0-RC1, < 5.8.23
- craftcms/cms (Packagist): from 4.5.0-RC1 before 4.16.19; from 5.0.0-RC1 before 5.8.23
- craftcms craft_cms: from >4.5.0 before 4.16.19; from >5.0.0 before 5.8.23; 4.5.0; 5.0.0

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-6fx5-5cw5-4897> (third-party-advisory, web)
- <https://github.com/craftcms/cms/commit/3e4afe18279951c024c64896aa2b93cda6d95fdf> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27128> (advisory)
- <https://github.com/craftcms/cms> (package)

## Sources

- CVE List: [CVE-2026-27128](https://www.cve.org/CVERecord?id=CVE-2026-27128), CVE Terms of Use, modified 2026-02-28
- GitHub Advisory Database: [GHSA-6fx5-5cw5-4897](https://github.com/advisories/GHSA-6fx5-5cw5-4897), CC-BY-4.0, modified 2026-02-24
- NVD: [CVE-2026-27128](https://nvd.nist.gov/vuln/detail/CVE-2026-27128), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27128 · Whole record: https://cve.day/CVE-2026-27128.json · Rebuilt by cve.day 2026-11-25T22:59:14.709Z
