← 漏洞与更新

已确认被利用CVSS 8.1 (High)漏洞公告WordPressPHP

[已确认被利用] CVE-2026-119977: WordPress WordPress Core Time-of-check Time-of-use (TOCTOU) Race Condition Vulnerability

VulnPulse 解读

WordPress CVE-2026-119977: the flaw that only exists mid-update, and how to protect the update that fixes it

For a short time during a WordPress core update, an attacker with no account can execute code on the host. CISA listed the flaw as exploited on 2026-11-03. Fixes are in 7.1.4 and matching releases for older branches, but the upgrade that delivers them still runs on the old, vulnerable updater.

目录
  1. 受影响对象
  2. 简单来说
  3. 原理
  4. 攻击过程
  5. 应对措施
  6. 尚不清楚的内容
  7. 出处

受影响对象

WordPress sites from 4.7 to 7.1.3 at the moment they run a core update that unpacks the full file set. The fix is in 7.1.4, with branch releases running from 7.0.8, 6.9.11 and 6.8.12 down to 4.7.39. Per Wordfence, sites that update themselves in the background should already be patched. Umut Bayram of Picus Security, who found the bug, writes that the underlying behavior goes back to 2.7.0 and that 2.7 through 4.6 got no fix.

简单来说

Think of a shop that lays out its new fittings in a public yard during a refit, in a spot anyone can guess. While the work lasts, any passerby can tamper with them. The fix moves the fittings to a randomly chosen spot, but the delivery that brings the fix is still handled the old way.

原理

A core update unpacks the new release into an upgrade folder that the web server can reach, then copies it over the live site. The folder name was predictable, so an attacker could run the setup program inside it during that time. Per Bayram's write-up, this program cannot see the live configuration, assumes the site is unconfigured and needs no login. An attacker can write a config pointing to their own database, get it copied over the live one, create an admin and move on to PHP execution. Version 7.1.4 adds a 16-character random value to the folder name, keeps the index.php that stops directory listing, and leaves the config file out of the copy. Unpacking is done by the code already on the site, though, so during the jump to a fixed release the folder name stays predictable even though the config overwrite is blocked. Bayram says PHP can still be run through the temporary copy at that point.

攻击过程

  1. The site starts a core update and the new release lands in a folder with a guessable name
  2. The attacker keeps sending automated requests, hoping to hit that moment
  3. If a request reaches the unpacked setup program, setup can proceed with no login
  4. The updater copies the attacker's config to the live site, or code runs from the temporary copy
  5. Through a new admin account or a plugin upload, PHP code runs on the server

应对措施

  • Admins of unpatched sites: move to 7.1.4 or the newest security release on your branch. Wordfence advises against putting this off out of worry about the final run
  • Server admins: before updating, deny web access to wp-content/upgrade/ (at least to PHP files there) in the web server config, then confirm it is refused. Bayram says the updater never needs that route
  • Server admins: do not rely on an .htaccess inside that folder. Bayram warns the old updater empties the folder before unpacking
  • Admins who can update by hand: Bayram also describes taking a backup, unpacking outside the web root and copying the files across
  • Sites on 4.6 or older: there is no fix for you, so move to a version that has one
  • Site operators: search access logs for outside requests to PHP files under wp-content/upgrade/. Wordfence says a normal update makes none. Also check for leftover files, plugins and users. A clean log does not prove a clean site
  • Anyone relying on a firewall plugin: Patchstack says a PHP-level firewall cannot stop this, and Wordfence needs its Extended Protection mode. Block at the web server as well
  • US federal agencies: CISA's 2026-11-06 deadline has passed, and KEV flags this CVE for forensic triage

尚不清楚的内容

  • How many sites were actually compromised. Wordfence reports over 240,000 blocked attempts, peaking above 74,000 on 2026-10-30, and stresses that blocks are not compromises
  • What evidence CISA relied on for the KEV listing (not published)
  • How serious it really is. WordPress's own advisory says low, the CVE's CVSS is 8.1 (High), and Wordfence calls success hard in practice while noting attacks began on disclosure day
  • What applies before 4.7. NVD starts at 4.7, while Bayram says 2.7.0

出处

本解读由 VulnPulse 根据原文和公开信息以自己的语言撰写。准确信息请以出处为准。 更新:

原始公告 (原文)

WordPress Core WordPress WordPress Core contains a time-of-check time-of-use (TOCTOU) race condition vulnerability that could allow unauthenticated attackers to execute code on the server during the upgrade window. This is due to predictable, web-accessible staging paths used during full-package core upgrades.

在 CISA Known Exploited Vulnerabilities 阅读

2026/11/04 05:45,CISA Known Exploited Vulnerabilities 发布了“[已确认被利用] CVE-2026-119977: WordPress WordPress Core Time-of-check Time-of-use (TOCTOU) Race Condition Vulnerability”(类型:漏洞公告)。已列入 CISA KEV(已确认被利用)。供应商 / NVD 的评级为 CVSS 8.1 (High)。相关技术:WordPress、PHP。CVE:CVE-2026-119977。