Daily cloud and web hosting news coverage by HostingDiscussion.com

CloudFest Americas 2026

A fake image upload could hand attackers your WordPress site

WordPress patched a high-severity vulnerability this week that let an attacker with nothing more than Author-level access upload what looks like an ordinary image and use it to run code on the server. That’s a genuinely low bar for exploitation, which is exactly what makes this one worth paying attention to.

The flaw, tracked as CVE-2026-65640 and rated 8.8 on the CVSS scale, comes down to a mismatch in how two different systems handle the same uploaded file. WordPress checks a file’s extension to decide what it’s dealing with. ImageMagick, through the Imagick extension, actually looks at the file’s contents instead. That gap is where the problem lives.

Here’s how it plays out in practice, according to security firm Patchstack. An attacker uploads a PNG that isn’t really a PNG at all. It’s PostScript code disguised with an image extension. WordPress sees the .png and treats it accordingly, but ImageMagick inspects the actual content, spots PostScript hiding inside, and hands it off to Ghostscript to render. Ghostscript then executes it as a program rather than displaying it as an image. WordPress does run a content-checking function meant to catch exactly this kind of thing, but Patchstack notes that not every upload path actually triggers that check, which is what leaves the door open.

The fix, shipped in WordPress 7.0.4, changes how the load() function handles files, making sure it inspects content before passing anything to Imagick. That closes off the PostScript execution path and also stops attackers from using filename tricks to fool Imagick into invoking Ghostscript in the first place. WordPress backported the patch all the way to version 4.7, covering a genuinely wide range of older installations still in active use.

Patchstack’s warning deserves attention if your site fits a certain profile. Multi-author blogs, membership sites, client sites with outside contributors, anywhere administrators run registration loose or hand out contributor access without much scrutiny, this is not a theoretical risk. An Author account uploading a booby-trapped image is a realistic attack path, not a hypothetical one, and it only requires exactly the kind of access level a lot of sites hand out routinely.

Share this post

Web Hosting News

Fresh takes, great finds and engaging stories on the cloud and web hosting industry. Send us a news tip.

Related Stories

Most Viewed

Supporters

Dedicated Servers

Enterprise Dedicated Servers - Intel/AMD EPYC & RYZEN - 100% Uptime 24/7 Support

Save 37% Off Plesk License

Official Plesk Partner, Instant License Delivery, No Contract Commitment. Grab Your Savings NOW!

Up to 30% Off on KVM VPS

Significant discounts on KVM VPS SSD. Worldwide Locations. Full Root Access. Instant Deployment.

.CA Domain for only C$10.99

Get a .CA domain, with domain privacy, full DNS record control, domain forwarding, excellent support.

Web Design and SEO

Premium professional WordPress sites that will not break your wallet. Optimized for SEO to drive traffic.

Interviews

Members Recently Online