A Public WordPress Form Was Enough. One Uploaded File Could Run Commands on the Server, Across About 10 Apps. Does Your Contact Form Accept Files?
Originally published at security.hackerme.ai. You did not need a stolen password for this one. Researchers showed that a public WordPress contact form upload — a job application, a registration form, a "send us your fil
Originally published at security.hackerme.ai.
You did not need a stolen password for this one. Researchers showed that a public WordPress contact form upload — a job application, a registration form, a "send us your file" box — could be enough to run commands on the server. According to The Hacker News, reporting on research published by pwn.ai on 21 November 2026, they demonstrated that path in about 10 apps. This is research, not a reported attack. There have been no reports of it being used in the wild.
If your website accepts files from visitors, this is worth ten minutes with your host or developer this week.
What the researchers showed
Ghostscript is a document tool that many Linux servers use to turn PDFs, PostScript files and images into other formats. A lot of sites never call it by name. A common image or document library — ImageMagick or Imagick, Pillow, or libvips — can hand a file to Ghostscript in the background, even when the file is named .png, .jpg or .pdf. Making a thumbnail or cropping a picture can be enough to start it.
The flaw, tracked as CVE-2026-125396, lets a crafted file switch off Ghostscript's safety sandbox, called -dSAFER, and run commands on the server. The commands ran as the low-privilege account that does the rendering, which on a typical WordPress site is the same account that runs the website. VulnCheck scores it 8.5 out of 10. The CVE was published on 9 November 2026.
pwn.ai, in research by Paulos Yibelo, reached that interpreter through ordinary upload, preview and print features. The paths that matter most for a small-business site are these, as reported by The Hacker News and spelled out in the research:
- Public upload forms in two popular WordPress plugins, Forminator and Essential Addons for Elementor, with no login. In the tests, a public Forminator form with a PDF field set to store the file in the Media Library, and a public Essential Addons for Elementor registration form with an upload field, were enough. Those tests used Forminator 1.55.1 and Essential Addons for Elementor Lite 6.7.0 with Elementor 4.2.0, on WordPress 7.0.2.
- WordPress itself, if someone with an Author account or higher uploaded a file, on sites that use Imagick and Ghostscript. Authors have that upload right by default.
- Roundcube webmail, when the recipient simply opened a message. The sender needed no account, and the recipient did not have to click the attachment.
They also reached a shared print queue on Debian 13 that accepted jobs with no login, and other document tools. The first ten rows of pwn.ai's application index are the proofs behind the "about 10 apps" figure.
Artifex, which develops Ghostscript, fixed the flaw in version 10.08.0 on 8 September 2026. WordPress had already closed its own upload path in version 7.0.4 on 12 August, under a separate identifier, CVE-2026-65640, and backported that fix to older branches (for example 6.9.7). The Hacker News notes that these are two different points in the same chain, so updating one does not remove the need for the other.
The researchers have not said whether WordPress 7.0.4 also blocks the Forminator and Essential Addons forms they tested on 7.0.2. Updating Ghostscript on the server, including any copy inside a container or an application, is the fix that sits under every route. The Hacker News also notes that a copy of Ghostscript bundled inside a container or an app is not updated by an operating-system update.
As of mid-November, coverage across Linux distributions was still uneven, according to pwn.ai's survey (12 November) and The Hacker News. Debian 12 (Bookworm) was still listed as vulnerable. Amazon Linux listed a fix as pending. Several SUSE branches were in progress. That is a snapshot, not a live inventory of your host, which is why you should ask.
Who should care
This is not a story about every WordPress form, and it is not a claim that your site was hacked. It is a story about sites that accept files and then quietly process them.
You should take it seriously if any of these are true:
- Your WordPress site has a public form that accepts files: a contact form, a job application, a registration or profile upload, an avatar, a "send us a PDF" field.
- People besides you can upload media, including Authors.
- You or your host use Roundcube for webmail (it is bundled with some control panels, including some Plesk setups).
- Your site, or a tool behind it, creates thumbnails or previews of uploaded pictures and documents.
If someone can run commands as the account that runs your website, they can often change the site, plant a page, or steal what the site can already read. That is why a later cleanup can look like the fake Cloudflare checks that have shown up on hacked WordPress sites. Patching later is not the same as never leaving the door open.
What to check this week
Ask your host or developer, in plain words:
- What version of Ghostscript is on the server, and is it 10.08.0 or later, or a confirmed backport of that fix?
- Is there a separate copy inside a container, a document worker, or an application image? An operating-system update does not fix those copies. I wrote about how easy it is to miss what sits inside a container in the Docker Hub leaked keys case.
- Is WordPress on 7.0.4 or later, or on the patched release for your branch (for example 6.9.7)?
- Which plugins offer a public file upload, and do those uploads go into the Media Library or through Imagick?
- Which image libraries does the server use for thumbnails and previews?
Until those answers are clear, it is reasonable to review which forms accept files from people who are not logged in, and to turn off any upload field you do not need. Requiring a login on a form that does not have to be public also reduces who can send a file. None of that replaces the updates.
It also helps to know what your host handles for website security, and what you still need to check. Keeping the software under the site current is the same habit as a PHP security update: the fix only helps where it actually lands.
Do not treat a patched WordPress dashboard, or a host saying "the server is updated," as proof that you are safe. The bundled copy, the plugin form, and the preview worker are easy to miss.
FAQ
Were websites actually hacked this way?
Not that has been reported. The Hacker News says there have been no reports of this being used in attacks. Treat it as research, and update anyway.
Is every WordPress contact form affected?
No. The public, no-login paths the researchers demonstrated were a Forminator form with a PDF upload stored in the Media Library, and an Essential Addons for Elementor registration form with an upload field, on the versions they tested. WordPress core needed an Author-level account or higher, and only on sites using Imagick and Ghostscript. If you use other forms, still ask whether uploaded files are processed the same way.
If I update WordPress, am I done?
No. WordPress 7.0.4 closed WordPress's own upload path. The plugin forms were tested on WordPress 7.0.2, and it has not been stated that 7.0.4 blocks them. You still need Ghostscript 10.08.0 or a confirmed backport, including any copy inside a container or an app.
What is Ghostscript, and why is it on my website?
It is a document tool. Image and PDF libraries often call it in the background to render or convert a file. Many site owners have never heard the name, which is why this is a question for your host, not something you will see in the WordPress dashboard.
A simple first step
The real work is the updates and the questions above. A quick outside check is only a start. You can run a free website security scan to see what an attacker sees from the outside. It will not see Ghostscript on your server, it will not inspect your contact forms, and it does not prove you are safe. But if you want a website vulnerability scanner that takes a few minutes and no setup, it is a reasonable place to check your website's security before you call your host.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.