Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-65640: Authenticated Remote Code Execution via PostScript Upload in WordPress Core

Published Aug 17, 2026 · Updated 4 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days9 mentions · peak 6 in a dayToday
CVSS8.8High · v3
EPSS1.9%80th percentile
CISA KEVNoNot listed
In the wildReported2 exploitation records in Mallory
IdentifiersCVE-2026-65640CWE-434 · Unrestricted Upload of File with…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2026-125396-upload2shellThe repository contains six Markdown documents and eight executable/code-bearing files: a Python payload generator, a Zsh test harness, three .ps programs, and three .pdf-named files that actually contain PostScript. It is a standalone exploit collection, not a recognized exploit-framework module. Repository URL, revision, and archive size were not supplied; empty strings and zero represent unavailable metadata. The visible exploit chain registers an attacker-controlled Type 1 font and replaces the typecheck error handler. During privileged font-loading operations, the handler redirects a .forceput write so that a global dictionary retains a local string. save/restore frees that string, leaving a dangling reference. A spray of 512 arrays and marker scanning locates overlapping storage; modifying a marker verifies the alias. The code then reuses valid string-reference headers with substituted pointers to obtain arbitrary memory views. It walks pointers from currentdevice to Ghostscript's library context and clears the native path_control_active flag. RCE variants subsequently execute commands through %pipe%. Addresses are discovered dynamically, but structure offsets and little-endian 64-bit reference assumptions remain hardcoded; broad cross-build portability is not established merely by using LP64. poc/gen_poc.py exposes probe, memdemo, and rce modes, including custom commands, configurable reverse-shell destinations, optional LockFilePermissions clearing, and optional path-control restoration. Its supplied listing is truncated, limiting complete source validation. The complete static payloads nevertheless show the memory primitive, sandbox-flag modification, marker commands, and loopback reverse shell. poc/poc-native-write.pdf demonstrates control-flow substitution by changing an operator reference from multiplication to subtraction and restoring it. poc/probe-chain.ps prints internal addresses and flags; despite its 'read-only' description, establishing its primitive still involves memory corruption and writes. poc/probe-rce.ps compares command execution before disabling path control, afterward, and after resetting the flag. baseline.ps is benign. The WordPress material documents execution through Imagick/ImageMagick metadata generation as www-data, but explicitly reports that normal HTTP media uploads reject these PostScript-disguised PDFs. The demonstrated integration therefore does not establish a working default WordPress upload-to-shell exploit: it assumes a file already on disk or another accepting ingestion route. A valid-PDF/font-fallback upload payload is discussed but not supplied. Other applications are listed as possible Ghostscript ingestion surfaces, not implemented exploit integrations. The matrix harness has an apparent path defect: because it resides in poc/ and sets BASE to its own directory, its references to $BASE/poc/baseline.ps and $BASE/poc/poc-native-write.pdf resolve to a nonexistent nested poc/poc/ directory in the supplied layout. It also requires Zsh despite its .sh extension. The repository attributes the Ghostscript issue to CVE-2026-125396 and the related WordPress route to CVE-2026-65640, and claims fixes in Ghostscript 10.08.0 and certain backports. Those identifiers, version ranges, patch claims, and reported execution results have not been independently verified here. An undefined-name failure or failed heap overlap alone is not definitive proof of patch status. No destructive local trap or unrelated malicious downloader is apparent in the supplied source; the command-execution and reverse-shell functionality is explicit.evenomn · Disclosed Nov 22, 2026 · python · postscript · file · local · webOperational
FAQ

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.
Activity feed

Recent activity

58 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
breachnewsNews · Nov 22, 2026Upload2Shell: Ghostscript CVE-2026-125396 Upload RCEA WordPress upload-path vulnerability discussed as an application-level route into the Ghostscript sandbox escape. The article identifies affected WordPress versions as 7.0.0–7.0.3, 6.9.0–6.9.6 and additional earlier branches. WordPress released a fix on August 12, 2026. Fixing this upload route does not protect other applications using an unpatched Ghostscript interpreter.Read more ↗the hacker newsNews · Nov 22, 2026Researchers Demonstrate Ghostscript Sandbox-Escape RCE via Crafted File Uploads in Popular AppsA separate WordPress upload-path vulnerability fixed in WordPress 7.0.4. The article identifies it as a different point in the exploitation chain leading to Ghostscript; both the WordPress and Ghostscript fixes are needed. It does not describe this vulnerability's underlying technical cause.Read more ↗cyber security newsNews · Nov 22, 2026Hackers Could Execute Commands on WordPress, Email and Print Servers Through Upload2Shell FlawA separate WordPress core upload issue associated with the media-preview route that researchers used to reach vulnerable Ghostscript through Imagick and ImageMagick. Exploitation requires media-upload privileges, available to Authors and higher roles by default. WordPress fixed this route in 7.0.4 and backported the fix, including to 6.9.7. Operators should apply both WordPress and Ghostscript updates; suspending automatic previews of untrusted files is an interim mitigation.Read more ↗cryptika blogNews · Nov 22, 2026Hackers Could Execute Commands on WordPress, Email and Print Servers Through Upload2Shell Flaw | Cryptika CybersecurityA separately tracked WordPress core upload issue involved in the demonstrated route to vulnerable Ghostscript through media previews using Imagick and ImageMagick. Exploitation requires media upload privileges, available by default to Authors and higher roles. WordPress fixed the route in 7.0.4 and backported the fix, including to 6.9.7. Operators are advised to update both WordPress core and the renderer.Read more ↗
+20 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity31Community discussion across Reddit, Mastodon, and other social sources.