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 byThe Hacker News
Date reported22 Nov 2026
CVECVE-2026-125396
CVSS8.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
WeaknessCWE-648 (see NVD)
CISA KEVNot listed (no confirmed exploitation in KEV)
Vendor advisorywww.vulncheck.com
CVECVE-2026-65640
CVSS8.8 HIGH CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
WeaknessCWE-434 (unrestricted file upload)
CISA KEVNot listed (no confirmed exploitation in KEV)
Affected productGhostscript
Fixed versions10.08.0 (CVE-2026-125396, per NVD)
Published in NVD2026-11-10 (CVE-2026-125396)
Published in NVD2026-08-17 (CVE-2026-65640)

How it works

Attack flow: Attacker reaches the Ghostscript over the internet / network then Attacker needs a normal (low-privilege) account then Sends crafted input that triggers the unrestricted file upload flaw then Then uses CVE-2026-125396 (a local flaw) to go further then Impact: data can be read, data or code can be changed, service crashes or stops
Built from the official CVSS vectors of CVE-2026-65640, CVE-2026-125396 (NVD)

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.

  1. Attacker reaches the Ghostscript over the internet / network
  2. Attacker needs a normal (low-privilege) account
  3. Sends crafted input that triggers the unrestricted file upload flaw
  4. Then uses CVE-2026-125396 (a local flaw) to go further
  5. Impact: data can be read, data or code can be changed, service crashes or stops

Skillmate analyst mapping (our judgement, not from the vendor):

  • T1190 Exploit Public-Facing Application
  • T1068 Exploitation for Privilege Escalation

Timeline

DateEventSource
2026-08-17CVE-2026-65640 published in NVDNVD
2026-11-10CVE-2026-125396 published in NVDNVD
2026-11-22Reported by The Hacker NewsThe Hacker News
2026-12-03This Skillmate explainer publishedSkillmate

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 list

WP-CLI: shows the WordPress version:

wp core version

How to fix it

  1. Update Ghostscript now. NVD lists the fixed versions as 10.08.0.
  2. Read the vendor advisory for CVE-2026-125396 and upgrade to the fixed release it lists.
  3. 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

ConfirmedNot confirmed yet
CVE-2026-125396 is a real NVD record scored 8.5 HIGHCISA KEV does not list CVE-2026-125396 as exploited in the wild
CVE-2026-65640 is a real NVD record scored 8.8 HIGHCISA KEV does not list CVE-2026-65640 as exploited in the wild
NVD lists fixed versions for CVE-2026-125396: 10.08.0NVD 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.

Sources

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