Skip to main content
VulnerabilityPublished Updated

CVE-2026-27128: craftcms cms · Time-of-check Time-of-use (TOCTOU) Race Condition

Affects craftcms cmsSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.9 Medium : upgrade to 5.8.23 or 4.16.19 when convenient.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% chance of exploitation in 30 days – higher than 9% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.8.23, 4.16.19
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade craftcms cms to 5.8.23 or 4.16.19.

Affected software

ProductAffectedFixed in
craftcmscmsAffected
  • >=5.0.0-RC1 <5.8.23
Fixed in
  • 5.8.23
craftcmscmsAffected
  • >=4.5.0-RC1 <4.16.19
Fixed in
  • 4.16.19

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Organizations should promptly upgrade Craft CMS to versions 4.16.19 or 5.8.23 or later, where the vulnerability is patched with atomic token usage updates. Until patching is possible, administrators should enforce strict access controls to limit who can generate impersonation tokens and monitor for unusual concurrent access patterns indicative of race condition exploitation. Rate limiting and anomaly detection should be strengthened to prevent rapid concurrent requests using the same token. Additionally, reviewing and restricting the lifetime and scope of impersonation tokens can reduce exposure. Implementing application-layer concurrency controls or database transaction mechanisms to ensure atomic updates of token usage counts can mitigate race conditions. Regular audits of token usage logs and alerting on repeated token reuse attempts can help detect exploitation attempts early. Finally, educating developers and administrators about TOCTOU risks and secure token management practices is recommended.

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.

References

Community reviews

Loading reviews…