Description
WordPress is vulnerable to a remote code execution vulnerability via malicious Postscript file upload by an Author level user or higher.

Prerequisites:
* Imagick and Ghostscript in use on the server
* A malicious user with the `upload_files` capability

This issue affects all versions of WordPress. Version 7.0.4 has been released, containing a fix for the vulnerability, and as a courtesy to users on older branches the fix has been backported to all branches back to 4.7.
Published: 2026-08-17
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

WordPress can execute arbitrary code when an authorized user uploads a malicious Postscript (.ps) file, because the Imagick library processes the file via Ghostscript. The flaw permits remote code execution, compromising the hosted server’s confidentiality, integrity and availability. Only a user with the upload_files capability, which is granted to Authors or higher, is required to exploit the vulnerability.

Affected Systems

Every WordPress installation, from the earliest 4.7 release through the current 7.0.4, is affected. The latest 7.0.4 release includes a fix and the patch has been backported to branches as far back as 4.7, so older versions remain vulnerable until updated.

Risk and Exploitability

The vulnerability scores 8.8 on CVSS, indicating a high severity, and the EPSS score is not available. The exploit requires server support for Imagick and Ghostscript, and an attacker must have a role with upload_files capability. All WordPress sites that have not applied the 7.0.4 update or the backported patch remain at risk, but the exploit is straightforward to engineer and there is currently no evidence of exploitation in the wild or listing in the CISA KEV catalog.

Generated by OpenCVE AI on August 18, 2026 at 00:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the WordPress 7.0.4 update or the backported patch for 4.7–7.0.3
  • Disable the Imagick or Ghostscript extensions if they are not essential for your site
  • Restrict upload_file permissions to trusted administrators and block Postscript file uploads through a security plugin or MIME type filter

Generated by OpenCVE AI on August 18, 2026 at 00:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 00:30:00 +0000

Type Values Removed Values Added
Title Remote Code Execution via Malicious Postscript File Upload in WordPress

Tue, 18 Aug 2026 00:00:00 +0000

Type Values Removed Values Added
First Time appeared Wordpress
Wordpress wordpress
Vendors & Products Wordpress
Wordpress wordpress

Mon, 17 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Description WordPress is vulnerable to a remote code execution vulnerability via malicious Postscript file upload by an Author level user or higher. Prerequisites: * Imagick and Ghostscript in use on the server * A malicious user with the `upload_files` capability This issue affects all versions of WordPress. Version 7.0.4 has been released, containing a fix for the vulnerability, and as a courtesy to users on older branches the fix has been backported to all branches back to 4.7.
Weaknesses CWE-434
References
Metrics cvssV3_0

{'score': 8.8, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: hackerone

Published:

Updated: 2026-08-17T20:55:33.162Z

Reserved: 2026-07-22T15:00:06.103Z

Link: CVE-2026-65640

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T21:16:46.470

Modified: 2026-08-17T21:16:46.470

Link: CVE-2026-65640

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T00:15:03Z

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type