WordPress Patches Critical Flaw That Could Enable Code Execution on Some Servers

· Original article ↗

Summary

WordPress fixed critical CVE-2026-87902, affecting versions 4.7.0–7.1.1. The unauthenticated flaw can load PHP files outside a theme folder and may enable code execution on some servers. No attacks were reported as of September 22.

Key points

  • CVE-2026-87902 affects WordPress versions 4.7.0 through 7.1.1; WordPress rates it critical with a CVSS score of 9.2.
  • An unauthenticated attacker can trigger the flaw without user interaction to make WordPress load a PHP file outside a theme folder.
  • Code execution depends on additional server and file conditions; the article says it is not possible on every affected site.
  • The vulnerability involves template-file selection and a value that was not checked for ../ traversal steps.
  • Fixed releases include 7.1.2, 7.0.6, 6.9.9, 6.8.10, 6.7.9, and 6.6.9; fixes were also backported to supported older branches.
  • WordPress recommends updating; it offers no separate workaround. Automatic background updates will start for sites with that option enabled.
  • As of September 22, there were no reports of exploitation, no public proof-of-concept, and no listing in CISA’s Known Exploited Vulnerabilities catalog.

Article Details

Vulnerability Types
  • Path traversal in WordPress template-file selection can cause an unintended local PHP file to be loaded.
Severity
Critical; CVSS 9.2.
Affected Versions
  • WordPress 4.7.0 through 7.1.1
Exploitation Status
not_reported
Exploit Availability
none_reported
Patch Status
available

CVE

People

Vendors

Products

Related Articles