Short answer: A security flaw in Ghostscript allowed attackers to run commands on servers processing malicious files. Users of popular apps and WordPress sites are affected. Update software to fix the issue.
TL;DR
- Ghostscript had a security flaw that could let attackers run commands.
- Many applications and WordPress plugins use Ghostscript to process files.
- Updates to Ghostscript and associated libraries are needed to fix the issue.
- Authentication on print queues and file type restrictions can help.
What is CVE-2026-125396?
This incident involves a security flaw in Ghostscript, a program used to convert files. Attackers could exploit it by sending specially crafted files to servers, allowing them to run commands. This happened because of a bug in how Ghostscript handles fonts, which could be triggered by common file types in various applications. Users of affected applications and WordPress sites need to update to fix the issue.
- RCE (remote code execution)
- An attacker can run their own commands on someone else's computer or server over the internet.
- Vulnerability
- A mistake or weakness in software that an attacker can misuse.
- Exploit
- Code or steps that take advantage of a weakness.
Key facts
| Reported by | The Hacker News |
|---|---|
| Date reported | 22 Nov 2026 |
| CVE | CVE-2026-125396 |
| CVSS | 8.5 HIGH CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| Weakness | CWE-648 (see NVD) |
| CISA KEV | Not listed (no confirmed exploitation in KEV) |
| Vendor advisory | www.vulncheck.com |
| CVE | CVE-2026-65640 |
| CVSS | 8.8 HIGH CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Weakness | CWE-434 (unrestricted file upload) |
| CISA KEV | Not listed (no confirmed exploitation in KEV) |
| Affected product | Ghostscript |
| Fixed versions | 10.08.0 (CVE-2026-125396, per NVD) |
| Published in NVD | 2026-11-10 (CVE-2026-125396) |
| Published in NVD | 2026-08-17 (CVE-2026-65640) |
How it works

A crafted PostScript or PDF file can bypass Ghostscript's security sandbox. The file triggers a type error, which allows the attacker to execute arbitrary code. This happens when a library like ImageMagick processes a file that is named incorrectly but is actually a malicious PostScript or EPS file.
- Attacker reaches the Ghostscript over the internet / network
- Attacker needs a normal (low-privilege) account
- Sends crafted input that triggers the unrestricted file upload flaw
- Then uses CVE-2026-125396 (a local flaw) to go further
- Impact: data can be read, data or code can be changed, service crashes or stops
Skillmate analyst mapping (our judgement, not from the vendor):
Timeline
| Date | Event | Source |
|---|---|---|
| 2026-08-17 | CVE-2026-65640 published in NVD | NVD |
| 2026-11-10 | CVE-2026-125396 published in NVD | NVD |
| 2026-11-22 | Reported by The Hacker News | The Hacker News |
| 2026-12-03 | This Skillmate explainer published | Skillmate |
Am I affected?
These commands only read the version or settings. Compare the output with the vendor advisory linked in the facts table.
WordPress
WP-CLI: lists plugins and their versions:
wp plugin listWP-CLI: shows the WordPress version:
wp core version
How to fix it
- Update Ghostscript now. NVD lists the fixed versions as 10.08.0.
- Read the vendor advisory for CVE-2026-125396 and upgrade to the fixed release it lists.
- If you cannot patch today, limit who can reach the affected service and watch its logs.
How to detect it
Look for unusual server commands or file access after document uploads.
What is confirmed and what is not
| Confirmed | Not confirmed yet |
|---|---|
| CVE-2026-125396 is a real NVD record scored 8.5 HIGH | CISA KEV does not list CVE-2026-125396 as exploited in the wild |
| CVE-2026-65640 is a real NVD record scored 8.8 HIGH | CISA KEV does not list CVE-2026-65640 as exploited in the wild |
| NVD lists fixed versions for CVE-2026-125396: 10.08.0 | NVD links no vendor advisory for CVE-2026-65640 yet |
| Reported by The Hacker News | |
| Reported by www.vulncheck.com | |
| Reported by bugs.ghostscript.com |
Why it matters
Companies and users must update Ghostscript and related libraries to prevent unauthorized code execution. This is critical for security, especially in systems handling sensitive data or running as low-privilege accounts.
Learn the skills behind this story
Want to understand attacks like this and defend against them? Join Skillmate cybersecurity training or practise hands-on in Skillmate Labs.
FAQ
What is a use-after-free vulnerability?
It’s when a program tries to use memory that has already been freed, potentially leading to code execution.
Can this vulnerability affect servers running Ghostscript 10.08.0 or later?
No, the vulnerability was fixed in Ghostscript 10.08.0, so servers using this version are not affected.
What should I do if I use WordPress and need to upload files?
Update to WordPress 7.0.4 or later, which includes a fix for this vulnerability.
Can this issue be exploited remotely?
Yes, attackers can exploit this via malicious file uploads, especially if they have certain permissions.
Related Skillmate posts
Sources
- Researchers Demonstrate Ghostscript Sandbox-Escape RCE via Crafted File Uploads in Popular Apps (The Hacker News)
- Primary source / advisory (www.vulncheck.com)
- Ghostscript (primary source) (bugs.ghostscript.com)
- NVD CVE record (NVD)
How we wrote this: facts come from the sources above, NVD and CISA KEV. An on-prem AI model drafted the plain-English parts and every sentence was checked against the sources; unsupported sentences were removed. MITRE mapping is our own judgement.
Watch today's video brief: https://youtu.be/Gyqu7KhN9u8
