WordPress Fixes Authenticated RCE in Imagick File Upload Handling
Vulnerability Disclosure · 9 sources · Updated 4mo ago · First seen Aug 12, 2026

WordPress released 7.0.4 as an emergency security update to fix an authenticated remote code execution flaw affecting sites that use Imagick with Ghostscript for media processing. The vulnerability, tracked as CVE-2026-65640 and GHSA-8vr3-7mxf-gx8w, allows users with Author-level or higher privileges to upload a crafted file and trigger code execution during image handling, prompting WordPress to urge site owners to update immediately.
Reports indicate the bug stemmed from a mismatch between WordPress file-type validation and how ImageMagick identifies content, allowing disguised PostScript, EPS, or malformed PDF/polyglot payloads to be processed as seemingly benign images such as PNG files. WordPress said the issue was responsibly reported by pwn.ai and patched by tightening inspection in WP_Image_Editor_Imagick::load(), blocking dangerous signatures and validating filenames and format prefixes; the fix is also being backported to the 4.7 branch and included in 7.1 RC3.
Why it matters
Impact assessment
WordPress sites that allow Author-level or higher users to upload media are affected if they use the Imagick extension with Ghostscript for media processing. The impact is severe because successful exploitation can yield server-side code execution in the web-server context, enabling site compromise, content tampering, data exposure, and persistence.
Exposure is broad across WordPress deployments running vulnerable versions, but practical risk is concentrated in multi-author, membership, open-registration, and loosely governed environments where semi-trusted users have upload rights. One referenced advisory states exploitation has been observed in the wild, although this is not confirmed across all sources.
Affected populations
- WordPress installations running versions earlier than 7.0.4
- Supported backport branches down to 4.7 before patched releases are applied
- Sites using Imagick for image handling
- Servers with Ghostscript installed and reachable through the Imagick processing chain
- Higher-risk environments: multi-author sites, membership sites, open-registration sites, and organizations with semi-trusted content contributors
Severity and business impact
- Remote code execution with privileges of the web service account
- Potential full site compromise
- Unauthorized website content modification
- Exposure of application or server-resident sensitive data
- Installation of backdoors, malware, or persistence mechanisms
- Possible use of the compromised host as a pivot for further internal attacks
- Reputational and operational impact for public-facing websites and content platforms
Exploitation status
- WordPress characterized the issue as urgent and advised immediate update
- CSIRT Panamá reported active exploitation in the wild
- Other references describe the risk as practical and realistic but do not independently confirm active exploitation


