Time-of-check Time-of-use (TOCTOU) Race Condition Affecting craftcms/cms package, versions >=4.5.0-RC1, <4.16.19>=5.0.0-RC1, <5.8.23


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Time-of-check Time-of-use (TOCTOU) Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-CRAFTCMSCMS-15338448
  • published24 Feb 2026
  • disclosed23 Feb 2026
  • creditvitalysim VS

Introduced: 23 Feb 2026

NewCVE-2026-27128  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade craftcms/cms to version 4.16.19, 5.8.23 or higher.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition via the getTokenRoute function. An attacker can bypass token usage limits by sending concurrent requests before the database update completes, allowing multiple uses of a single-use impersonation token. This is only exploitable if an attacker obtains a valid, non-expired impersonation token and can bypass any rate-limiting rules in place.

References

CVSS Base Scores

version 4.0
version 3.1