WordPress by WordPress: remote code execution through malicious file upload

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-65640?

CVE-2026-65640 is a vulnerability classified as Unrestricted Upload of File with Dangerous Type, affecting WordPress (affected versions: < 7.0.4). This vulnerability is rated High, with a CVSS score of 8.8. Current sources do not report this vulnerability as exploited.

Overview

Original source data

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.

Affected products and scope

  • Structured affected data marks WordPress versions from 0 through less than 7.0.4 as affected under semver; the default status outside that stated range is unaffected.
  • WordPress 7.0.4 contains the fix.
  • The WordPress notice states that fixes are being backported through the 4.7 branch and to the 7.1 RC3 release. Exact fixed version literals for each older branch are not provided, so administrators should verify the package for the specific branch instead of treating one version as a universal backport label.
  • The narrative says the issue affects all WordPress versions. This is consistent with the structured boundary if it means all versions before the fix; parallel or later branches should not be assumed safe without a verified branch release.

Technical details

The weakness is classified as CWE-434, unrestricted upload of a file with a dangerous type. An authenticated user at Author level or above, or any account with the upload_files capability, can submit a malicious Postscript file through WordPress file upload handling.

When the server uses Imagick and Ghostscript, the uploaded file can enter a processing path that results in remote code execution. The supplied attack characteristics indicate network reachability, low required privileges, and no additional user interaction. The record does not disclose the exact parser, processing call, file path, process identity, sandboxing, or execution payload involved.

Exploitability

The vulnerability is remotely reachable through WordPress file upload handling, but the attacker must first have an authenticated Author-level account or an account with the upload_files capability. The server must also use Imagick and Ghostscript for the attack path to apply.

The record indicates that no additional user interaction is required and that attack complexity is low. The public_exploit field is false, the record has no known-exploited designation, and the available exploitation assessment records exploitation as none and automatable as no. These statuses reflect the evidence available at the time of assessment and do not prove that future exploitation is impossible.

Technical impact

The confirmed technical outcome is remote code execution through a malicious Postscript upload when the stated prerequisites are met. Exploitation starts from an authenticated account with Author-level access or the upload_files capability, so the available evidence does not describe an unauthenticated attack path.

Executed code could affect the confidentiality, integrity, and availability of the website or server within the privileges of the WordPress process. Exploitation may exceed the intended WordPress role boundary, but the operating-system privileges, sandbox escape potential, and cross-site scope are not established by the record.

Business impact

A successful attack could execute attacker-controlled code in the WordPress server context. Possible consequences include modification of website content or code, access to data readable by the WordPress process, persistence, or service disruption.

The practical impact depends on the process privileges, isolation between sites, permissions of the compromised account, and the Imagick or Ghostscript configuration. The available evidence does not confirm a breach, victim, campaign, or specific tenant scope.

Remediation

  1. Upgrade WordPress to 7.0.4, the release identified as containing the security fix.
  2. For older branches, install the branch-specific backported fix when that branch release is available. The evidence does not state exact fixed versions for every branch through 4.7, so verify the vendor package or release rather than treating 7.0.4 as a version label for every branch.
  3. If immediate patching is not possible, review the use of Imagick and Ghostscript and consider temporarily removing the upload_files capability from untrusted or nonessential accounts. This is precautionary risk reduction, not a vendor-confirmed fix.
  4. After updating, recheck the WordPress version, the status of any backported branch release, and all accounts with upload_files. Do not assume that a parallel branch or other release is fixed solely because 7.0.4 contains a fix.

Detection

  1. Inventory WordPress core versions across all servers and prioritize versions below 7.0.4 for remediation.
  2. Identify servers using Imagick and Ghostscript in file or image processing paths.
  3. Enumerate Author-level accounts and all accounts with the upload_files capability, especially third-party or dormant accounts.
  4. Review authentication and upload records for capable accounts that uploaded Postscript files, then investigate unexpected code, file, process, or WordPress content changes after those uploads. This is precautionary monitoring, not a confirmed indicator.
  5. After patching, verify the WordPress version and the processing configuration for Imagick and Ghostscript. The record provides no specific log signature or IOC, and the absence of suspicious events does not prove that a host is safe.
Sources (17)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.