CVE-2026-65640: Authenticated Remote Code Execution via PostScript Upload in WordPress Core
CVE-2026-65640 is a dangerous file upload vulnerability in WordPress Core that allows a user with the upload_files capability, granted to Authors and higher roles by default, to achieve server-side code execution by uploading a malicious PostScript document. Exploitation requires a server using Imagick and Ghostscript, with media processing passing attacker-controlled content to the renderer. The vulnerable route is triggered during media preview or rendering rather than file storage alone. The issue affects unpatched WordPress releases across historical branches; WordPress 7.0.4 fixes the upload path, with backports provided to branches as old as 4.7, including 6.9.7. This application-level vulnerability is distinct from the underlying Ghostscript vulnerability tracked as CVE-2026-125396.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows arbitrary commands or code to execute with the privileges of the media-rendering service account, compromising confidentiality, integrity, and availability within that account's access. An attacker could read sensitive application data, modify accessible website files, establish persistence, or disrupt service. Exploitation does not automatically grant root privileges; operating-system confinement and service-account permissions constrain the impact.
Mitigation
If you can’t patch tonight, do this now.
Until updates are deployed, restrict the upload_files capability to trusted users and suspend automatic preview generation for untrusted uploads where practical. Disable unnecessary PostScript, EPS, PDF, and XPS processing in ImageMagick policy to prevent delegation to Ghostscript. Review public plugin upload fields that feed the Media Library, since these can expose additional delivery routes. Isolate rendering workers with least-privilege accounts and operating-system confinement such as AppArmor or seccomp; Ghostscript's -dSAFER mode alone is not sufficient protection against the associated renderer exploit.
Remediation
Patch, then assume compromise.
Upgrade WordPress to version 7.0.4 or later, or install the security-fixed release for the deployed branch, including 6.9.7 where applicable. Fixes were backported to branches down to 4.7. For Debian 13 trixie installations using the distribution package, upgrade wordpress to 6.8.10+dfsg1-0+deb13u1 or a superseding fixed package. Also update Ghostscript to 10.08.0 or later, or a distribution package containing the backported fix for CVE-2026-125396. WordPress and Ghostscript updates address different points in the exploitation chain; apply both and verify the renderer actually used by each service, container, or application bundle.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Frequently asked questions
- Is CVE-2026-65640 exploited in the wild?
- Yes. As of Nov 28, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-65640?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-65640, the earliest disclosed Nov 22, 2026.
- Is there a patch for CVE-2026-65640?
- Upgrade WordPress to version 7.0.4 or later, or install the security-fixed release for the deployed branch, including 6.9.7 where applicable. Fixes were backported to branches down to 4.7.
- How severe is CVE-2026-65640?
- CVE-2026-65640 has a CVSS v3 score of 8.8 (High) and an EPSS score of 1.9% (80th percentile) as of Nov 28, 2026.
Recent activity
58 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.