Critical WordPress Flaw Lets Unauthenticated Attackers Execute Remote Code
WordPress released a fix for a critical flaw that lets unauthenticated attackers execute remote code on specific server and theme configurations.
Overview
WordPress released version 7.1.2 to fix a critical path-traversalA flaw where an attacker uses folder navigation symbols in a file request to read restricted files vulnerabilityA flaw in software or hardware that lets an attacker do something the maker did not intend identified as CVEThe public tracking code assigned to a specific known security flaw in software or hardware-2026-87902. This flaw allows unauthenticated attackers to execute remote code on serversA computer or program on a network that stores data and responds to requests from client devices running specific themes and configurationsA text file that stores settings, network addresses, and options for how a program or server runs. The issue stems from improper page-template resolution in the get_page_template() functionality, which lets attackers include a local PHPA widely used server-side scripting language that builds dynamic web pages before sending them to browsers file outside the active theme directories. The vulnerability carries a CVSSThe standard rating scale used to score how severe a software security flaw is v4 score of 9.2 and affects WordPress versions from 4.7 up to 7.1.1. It is classified under CWEThe public catalog of software and hardware bug categories, such as buffer overflow or SQL injection-98, which relates to improper control of filenames in PHP include or require operations. Users of affected themes like Twenty Twelve, Twenty Fourteen, Neve, Hestia, and Sydney must update to version 7.1.2 or the latest patchedA software update released by a developer to fix a bug or close a security flaw maintenance versions to secure their systems.
Terms in this story
- path-traversal
- A flaw where an attacker uses folder navigation symbols in a file request to read restricted files. If a web server lets users download a picture by name without checking the folder path, an attacker can use path traversal to climb into system folders and read configuration files. Security+ objective 2.4 lists the term
- vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- CVE
- The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- configurations
- A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
- PHP
- A widely used server-side scripting language that builds dynamic web pages before sending them to browsers. Because millions of websites and content management systems run on PHP, a newly discovered vulnerability in the PHP engine can put a huge portion of the web at risk.
- CVSS
- The standard rating scale used to score how severe a software security flaw is. Security advisories include a CVSS rating from low to critical based on how easy a bug is to exploit and how much damage it allows. Security+ objective 4.3 lists the term
- CWE
- The public catalog of software and hardware bug categories, such as buffer overflow or SQL injection. While a CVE identifies one specific flaw in one product, the Common Weakness Enumeration names the underlying category of coding mistake so teams can track which bug types recur.
- patched
- A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
- unauthenticated remote code execution
- A flaw that lets an attacker run their own code on someone else's computer over a network. This is one of the most dangerous bug classes in the news because an attacker across the internet can send a crafted request and take control of a server.
- code execution
- A flaw that lets an attacker run any commands or program they choose on the target machine. When an advisory warns that a bug allows arbitrary code execution, an attacker who triggers the flaw can install malware, read files, or take over the program's account.
- unauthenticated remote attacker
- Done without logging in or holding a valid account on the target system. An unauthenticated flaw is especially urgent in the news because any stranger on the internet can trigger it without needing a username or password first.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the GBHackers website. Cite the article, not this page.
Read the full article on GBHackers (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"WordPress has released version 7.1.2 to address a critical path-traversal vulnerability..." Found by reading the article; these exact words are in it - Security+ 2.3 Explain various types of vulnerabilities.
"Critical WordPress Flaw Lets Unauthenticated Attackers Execute Remote Code..." Found in the headline - Security+ 4.3 Explain various activities associated with vulnerability management.
"......address a critical path-traversal vulnerability, tracked as CVE-2026-87902, which could allow unauthenticated remote code..." Found in the opening sentences - CYBR 101 week 10: the web, cookies, phishing, incident response and logs
"Critical WordPress Flaw Lets Unauthenticated Attackers Execute Remote Code..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......address a critical path-traversal vulnerability, tracked as CVE-2026-87902, which could allow unauthenticated remote code..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- U.S. CISA adds WordPress flaw to its Known Exploited Vulnerabilities catalog
- Hackers Actively Exploiting WordPress Vulnerability to Execute Malicious Code
- WordPress patches a critical severity security vulnerability
- Attackers Exploit WordPress CVE-2026-87902 Within Hours of Disclosure
- CVE-2026-87902 in WordPress Enables Conditional RCE
- WordPress 7.1.2 fixes critical unauthenticated path traversal vulnerability (CVE-2026-87902)
- CVE-2026-87902: how close is your WordPress to remote code execution?
- Critical WordPress Core Vulnerability Lets Attackers Execute Code Without Logging In