{"id":"CVE-2026-27128","published":"2026-02-24T02:42:53Z","modified":"2026-02-28T02:13:48Z","title":"Craft CMS's race condition in Token Service potentially allows for token usage greater than the token limit","vendor":"Craft CMS","product":"cms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00249,"percentile":0.09773,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-6fx5-5cw5-4897","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/cms/commit/3e4afe18279951c024c64896aa2b93cda6d95fdf","tags":["x_refsource_MISC"]}],"priority":{"score":6.8,"factors":[{"name":"EPSS percentile","points":1.95},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"cms","versions":[">= 4.5.0-RC1, < 4.16.19",">= 5.0.0-RC1, < 5.8.23"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-28T02:13:24.368912Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"craftcms/cms","vulnerableRanges":[">=4.5.0-RC1, <4.16.19",">=5.0.0-RC1, <5.8.23"],"patched":["4.16.19","5.8.23"],"from":["GHSA-6fx5-5cw5-4897"],"provenance":"source"}],"summary":{"text":"A race condition in Craft CMS's Token Service, specifically in the token validation logic of the getTokenRoute() method, lets limited-use tokens be checked and updated in non-atomic steps. An attacker who already holds a valid, unexpired user impersonation URL, and who can get past any rate limiting, can send concurrent requests to reuse a single-use token multiple times, which becomes a privilege escalation when the token belongs to a more privileged account.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:28Z"},"euvd":{"id":"EUVD-2026-7401","exploited":false,"provenance":"source"}}