High‑Severity TOCTOU Race Condition (CVE‑2026‑119977) Lets Unauthenticated Attackers Execute Code During WordPress Core Upgrades
What It Is — WordPress Core (the core software that powers the world’s most popular CMS) contains a time‑of‑check‑time‑of‑use (TOCTOU) race‑condition vulnerability identified as CVE‑2026‑119977. The flaw resides in the upgrade mechanism that stages a full‑package core update in a predictable, web‑accessible directory. An unauthenticated attacker who can guess or discover the staging path can race the upgrade process, inject malicious files, and achieve arbitrary code execution on the web server while the upgrade is in progress. The vulnerability is rated High (CVSS ≈ 7.8) and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild. No public exploit code has been released, but the KEV listing signals that threat actors are already leveraging the weakness against vulnerable WordPress installations.
Affected Products — WordPress Core (all supported versions prior to the patch release). The issue is tied to the core upgrade workflow, not to plugins or themes.
Why It Matters for Trust & Control Assurance — This flaw tests the secure configuration and change‑management control objective: organizations must ensure that software updates are performed in a tamper‑resistant manner and that any temporary files used during upgrades are protected from unauthorized access. Failure to do so undermines audit evidence for patch‑management and configuration‑integrity controls across multiple frameworks.
Recommended Actions
- Apply the official WordPress security release that addresses CVE‑2026‑119977 immediately.
- Restrict access to the staging directory used during upgrades (e.g., via web‑server ACLs or firewall rules) so it is not publicly reachable.
- Validate integrity of the upgrade package with checksums or digital signatures before extraction.
- Enable logging of all file‑system activity in the upgrade path and monitor for anomalous write events during upgrade windows.
- Review and harden the upgrade process: use a dedicated, non‑privileged service account for the upgrade, and consider performing upgrades in an isolated environment before promoting to production.
- Document the change‑management controls applied to the upgrade workflow and retain evidence for audit purposes.
Source: CISA KEV – CVE‑2026‑119977