A photo is just a photo. That’s what most of us assume when someone uploads a .jpg to a website.
On 21 November, security researchers at pwn.ai published a write-up that shows why that assumption isn’t always safe. They call it Upload2Shell. In plain terms, a file can be named like a photo but actually be a document, and some image tools on a web server will quietly hand it to another program to open. If that program has a flaw, the file can make the server run commands it was never meant to run.
I build and look after WordPress sites, so this one caught my eye. Three of the routes the researchers confirmed were on WordPress: the core media upload, a public upload field in an Elementor add-on, and a public form in Forminator. This article explains what happened in plain English, and how to find and lock down the upload fields on your own site.
What actually happened
Many web servers have a program called Ghostscript installed. It reads PDF and PostScript files, and image tools such as ImageMagick (often used by PHP through a module called Imagick) can pass files to it when they make previews or thumbnails.
The researchers found a memory bug in the way Ghostscript loads a certain kind of font. A specially made document could use it to escape Ghostscript’s built-in safety mode and run commands as the web server. Their earlier research had already shown that files named .png or .jpg can still end up at Ghostscript through image conversion. The name on the file doesn’t decide what opens it.
I’m keeping this at that level on purpose. The point for a business owner isn’t how the attack works. It’s where on your website a stranger can hand your server a file.
The WordPress routes they confirmed
According to pwn.ai’s disclosure timeline and write-up:
- WordPress core. The normal media upload path exposed the problem to anyone with the upload_files permission. By default that’s Authors and above, plus any Contributor who has been given that permission. It needed Imagick and Ghostscript on the server. WordPress fixed its side on 12 August 2026 in version 7.0.4, with backports to older branches, under CVE-2026-65640.
- Essential Addons for Elementor. A public login and registration widget with an upload field switched on allowed a visitor with no account to reach the same problem.
- Forminator. A public form with a PDF upload field, set to store files in the WordPress Media Library, did the same.
The underlying Ghostscript flaw is tracked as CVE-2026-125396. Artifex, who make Ghostscript, released the fix in version 10.08.0 on 8 September 2026, and Debian and Ubuntu have published fixed packages.
Here’s the bit that matters most. Updating WordPress and your plugins is essential, but Ghostscript lives on the server, not inside WordPress. It’s updated by whoever looks after the server, which for most small businesses is the hosting company.
Step one: find every upload field on your site
Most owners don’t know how many places on their website accept a file. Here’s where to look.
- Contact and quote forms. “Attach a photo of the job”, “upload your CV”, “send us your floor plan”. Trades, recruiters and printers often have these.
- Registration and account pages. Some page builder widgets let new users upload a profile photo or document when they sign up.
- Booking and application forms. Proof of ID, certificates, menus for events, artwork for orders.
- Reviews and testimonials. Some review plugins let customers attach photos.
- WooCommerce product options. “Upload your design” fields on personalised products.
- User accounts in the dashboard. Everyone with the Author role or higher can upload to your Media Library. Old freelancers, past staff and test accounts count.
Go through your form plugin’s list of forms, your page builder’s widgets and your Users screen. Write the list down. It’s usually shorter than people fear, but it’s rarely zero.
Five questions for each upload field
- Does it need to exist at all?
- Can someone use it without logging in?
- Which file types does it accept, and does it need all of them?
- Where do the files go: the Media Library, a private folder or an email?
- Who checks what arrives, and how often?
Step two: lock down what you keep
None of this needs a rebuild. Most of it is settings.
- Remove fields you don’t need. If nobody has attached a file to your contact form in a year, take the field off. A form with no upload field can’t be used to upload anything.
- Narrow the file types. If you only need photos, don’t accept PDF, PostScript or “any file”. Most form plugins let you tick the allowed types.
- Keep form uploads out of the Media Library where you can. The Forminator route the researchers confirmed relied on uploads being stored in the Media Library, which is what sends them through WordPress’s image processing. If your form plugin offers a private uploads folder or email delivery instead, consider it.
- Put a login or a check in front of public uploads. If only customers need to upload, ask them to log in first. Spam protection on the form helps too.
- Tidy your users. Remove accounts that no longer need access, and don’t give Author or higher to people who only need to read or comment.
- Update WordPress, plugins and themes. Check your dashboard says you’re on a current version. Check each form or page builder plugin’s changelog for security fixes, and update.
Step three: ask your host one question
This is the step most people miss, because it isn’t in the WordPress dashboard. Send your hosting company something like this:
“Is Ghostscript installed on the server that runs my website? If it is, has it been updated to a version that fixes CVE-2026-125396?”
A good host will give you a straight answer. If they don’t know what you mean, that tells you something too. If you’re not sure who your host is or how to reach them, my website emergency card article covers the details worth having to hand before anything goes wrong.
The wider lesson
Upload2Shell won’t be the last flaw of its kind. The researchers say themselves that Ghostscript sits underneath more file handling than most software shows, and they expect more routes to be found.
So the useful habit isn’t to panic about this one flaw. It’s to know where your website accepts files, keep that list short, and make sure both halves of your site are looked after: the WordPress half you can see, and the server half you can’t. If you pay someone to maintain your site, it’s worth asking whether their care covers the server, or only the plugins. My eight questions to ask before you hire someone to fix your website are a good place to start that conversation.
FAQ
Does this affect every WordPress website?
No. The core WordPress route needed Imagick and Ghostscript on the server and a user with permission to upload. WordPress fixed its side in August. The plugin routes needed a public upload field set up in a particular way. Plenty of sites have none of these, but you only know by checking.
I’ve updated WordPress. Am I safe?
Updating WordPress closes the core route that WordPress fixed. It doesn’t update Ghostscript, which is part of the server. Ask your host whether Ghostscript is installed and patched.
Should I remove every upload field from my website?
Only the ones you don’t need. If customers send you photos of jobs or their CVs, a well set up upload field is useful. Keep it, narrow the file types and decide where the files go.
How can I tell if my site has already been affected?
Signs can include files you don’t recognise, new admin users, unexpected redirects or your host warning you about unusual activity. If you’re worried, ask your host to check their logs and take a fresh backup before anyone changes anything.
Is it safe to read about this flaw?
Yes. Reading about it doesn’t put your site at risk. The researchers’ write-up includes technical detail for developers, but you don’t need any of it to act on the steps above.
Do you know, right now, how many places on your website will accept a file from a stranger?
If you’d rather have someone go through the list with you, you can start a project any time.
Sources: pwn.ai, “Upload2Shell, CVE-2026-125396” (https://pwn.ai/upload2shell) and research write-up, 21 November 2026 (https://pwn.ai/upload2shell/research.html). Plain English summary only; no exploit details are included here.