Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilitywidely-deployed-product-advisoryprivilege-escalation-method

WordPress Fixes Authenticated RCE in Imagick File Upload Handling

Vulnerability Disclosure · 9 sources · Updated 4mo ago · First seen Aug 12, 2026

WordPress Fixes Authenticated RCE in Imagick File Upload Handling

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
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · Aug 12, 2026 – Aug 17, 2026
  1. Aug 17, 20264mo ago

    CVE entry published for WordPress CVE-2026-65640

    A new CVE record was received for CVE-2026-65640, formally describing the WordPress authenticated remote code execution flaw involving malicious PostScript uploads processed through Imagick and Ghostscript. The entry lists affected versions earlier than 7.0.4 and includes CVSS v3 scoring and CWE-434 classification.

    CVE-2026-65640 - WordPress Arbitrary Remote Code Execution via Image Processing
  2. Aug 13, 20264mo ago

    CSIRT Panamá warns CVE-2026-65640 is actively exploited

    CSIRT Panamá published an alert on CVE-2026-65640, warning that the authenticated WordPress Imagick/Ghostscript RCE flaw was being actively exploited in the wild. The advisory identified affected versions as WordPress 4.7.0 through 7.0.3 and urged immediate upgrades to 7.0.4 or later.

    CSIRT Panamá Aviso 2026-ago-13: Vulnerabilidad Crítica en WordPress que permite ejecución remota de códigos - CVE-2026-65640 - CSIRT Panama
  3. Reported Aug 12, 20264mo ago

    pwn.ai responsibly disclosed WordPress Imagick/Ghostscript RCE flaw

    Researchers at pwn.ai responsibly reported an authenticated remote code execution vulnerability in WordPress affecting Author+ users via malicious file uploads on sites using Imagick and Ghostscript. The flaw is tracked as CVE-2026-65640 and GHSA-8vr3-7mxf-gx8w.

    WordPress 7.0.4 Release - WordPress News
  4. Aug 12, 20264mo ago

    WordPress begins backporting the security fix to older branches

    Alongside the 7.0.4 release, WordPress said the security fixes were being backported through the 4.7 branch and into the 7.1 RC3 release. This extended the remediation beyond the main current release line.

    WordPress 7.0.4 Release - WordPress News
  5. Aug 12, 20264mo ago

    WordPress patches CVE-2026-65640 in version 7.0.4

    WordPress released version 7.0.4 as a security update to fix the authenticated Author+ remote code execution issue involving crafted uploads processed by Imagick and Ghostscript. WordPress advised administrators to update immediately, and the fix includes changes to file inspection logic in WP_Image_Editor_Imagick::load().

    WordPress 7.0.4 Release - WordPress News
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Wordpress

Organizations

2 linked
WordpressWordPress Foundation
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.