The WordPress security team has released WordPress 7.0.4, a critical security update that patches a high-severity remote code execution (RCE) vulnerability. The flaw, tracked as CVE-2026-65640 with a CVSS score of 8.8, affects WordPress sites that use the Imagick PHP extension and the Ghostscript library for image processing. An authenticated attacker with at least 'Author'-level permissions (i.e., the ability to upload files) can upload a malicious file disguised as an image to trigger the vulnerability and achieve full server compromise. The fix has been backported to all WordPress versions since 4.7. Due to the widespread use of WordPress, immediate updates are strongly recommended for all site administrators.
The vulnerability is an authenticated RCE that stems from a file type validation bypass in the media upload process. Here's how it works:
upload_files capability (typically 'Author' role and above) uploads a file..png but contains malicious PostScript code within its content.This attack is only possible on servers where the Imagick PHP extension is installed and enabled.
This vulnerability poses the greatest risk to multi-author blogs, news sites, and community forums where non-administrator users are permitted to upload media files.
As of the disclosure, there are no known active exploits in the wild. However, the vulnerability was responsibly disclosed by researchers at pwn.ai, and now that the details and patch are public, the development of exploit code by malicious actors is highly likely. The low complexity of the exploit, once an attacker has author-level credentials, increases the risk.
Successful exploitation of CVE-2026-65640 grants an attacker full remote code execution on the web server. This allows the attacker to:
Given that WordPress powers over 40% of the web, the potential impact is massive, even though it requires prior authentication.
The following patterns may help identify vulnerable or compromised systems:
gswww-data, apache).PNG files with PostScript headers%!PS-Adobe- which indicate PostScript content.Web server logsPOST) from non-administrator users that are followed by errors in application or system logs.phpinfo()gs (Ghostscript). D3FEND's File Analysis (D3-FA) can be applied to uploaded files.php.ini file will prevent the vulnerability from being triggered. This is a form of D3FEND's Application Configuration Hardening (D3-ACH). However, this may break functionality on your site that relies on server-side image processing.upload_files capability unless it is absolutely necessary for their role.Update WordPress to a patched version (7.0.4 or the latest security release for older branches).
Mapped D3FEND Techniques:
As a temporary mitigation, disable the Imagick PHP extension on the server to prevent the vulnerable code path from being reached.
Mapped D3FEND Techniques:
Audit and restrict user roles, ensuring only trusted users have the 'upload_files' capability.
WordPress releases version 7.0.4, patching CVE-2026-65640.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.