← Back to blog

WordPress Patches Critical Flaw Enabling Remote Code Execution

A newly patched vulnerability in WordPress core could allow unauthenticated attackers to execute arbitrary code on some servers. Site administrators are urged to update immediately.

TL;DR

  • WordPress released version 7.1.2 to fix a critical vulnerability affecting all supported versions since 4.7
  • The flaw allows unauthenticated attackers to load external PHP files, potentially leading to remote code execution
  • Servers with specific configurations are at higher risk of full system compromise
  • All WordPress site owners should update immediately to mitigate potential exploitation
  • The patch addresses improper file validation in theme directory handling

WordPress has addressed a severe security vulnerability that could allow attackers to execute arbitrary code on vulnerable websites. The issue, patched in version 7.1.2 released on September 22, affects WordPress installations across multiple supported branches dating back to version 4.7.

The vulnerability stems from improper validation of file paths, enabling unauthenticated attackers to force a WordPress site to load PHP files from outside its designated theme directories. While all WordPress sites are affected by the underlying flaw, servers with certain configurations face heightened risk of remote code execution attacks.

Vulnerability Details

  • The flaw allows loading of external PHP files without authentication requirements
  • Attackers can potentially execute arbitrary code on the server hosting the WordPress site
  • Risk level varies depending on server configuration and file permissions
  • Affects all WordPress versions since 4.7, including latest releases before 7.1.2
  • Vulnerability exists in core WordPress functionality, not third-party plugins

Remediation Steps

  • Immediately update WordPress to version 7.1.2 or later
  • Verify all sites running older supported versions have been updated
  • Review server logs for suspicious file access patterns or unusual activity
  • Consider implementing additional file integrity monitoring for theme directories
  • Ensure regular backup procedures are in place before applying updates

Sources

Sources

Security email updates

One digest email when we publish new security articles (TL;DR plus links to read more). Unsubscribe anytime from the message footer. See our Privacy Policy.

WordPress Patches Critical Flaw Enabling Remote Code Execution — Agent Breach Blog | Agent Breach