Ghostscript -dSAFER Bypass Vulnerability in Artifex Software Product
CVE-2026-125396
Key Information:
- Vendor
Artifexsoftware
- Status
- Ghostpdl
- CVE ID
- CVE ID:
- CVE-2026-125396
- Vendor
- CVE Published:
- 9 November 2026
- Fixed in
- Fixed in:
- 10.08.0
Timeline
Exploit known 13 days after it was published
- ๐
Vulnerability started trending
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
- ๐ฐ
First article discovered by Cybersecuritynews
Vulnerability published
Vulnerability Reserved
Badges
How risky is it?
- No: Needs local access
- Yes: Public exploit code (4 proof-of-concepts)
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Update to a fixed version
2Look for signs of compromise
Exploit code is public, so check logs on exposed ghostpdl systems for unusual requests or new processes from before you patched. The 4 public proof-of-concepts show what an attack looks like.
3Why it's rated "Patch this week"
- Exploit code is public, so attacks are easy to copy.
- Its CVSS severity is high (8.5).
What is CVE-2026-125396?
CVE-2026-125396 is a vulnerability in Ghostscript, a software used for rendering PDFs and PostScript documents. The flaw exists in the .putgstringcopy procedure within gs_fonts.ps, where the -dSAFER mode's checks are bypassed. Attackers can exploit this by supplying crafted PostScript or PDF documents, triggering a type error that allows them to recover the .forceput operator and execute arbitrary code through a use-after-free condition.
The vulnerability affects Ghostscript versions prior to 10.08.0, which was patched on September 8. The flaw allows attackers to run commands on servers processing these documents, leveraging common applications that interact with Ghostscript without direct calls.
Potential Impact of CVE-2026-125396
-
Arbitrary Code Execution: Attackers can execute arbitrary commands on the server running Ghostscript, potentially compromising the system.
-
Unauthorized Access: The vulnerability can be exploited through various applications, allowing attackers to reach Ghostscript without needing direct access, such as through print jobs or email attachments.
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
News Articles
Researchers Demonstrate Ghostscript Sandbox-Escape RCE via Crafted File Uploads in Popular Apps
Ghostscript flaw CVE-2026-125396 allows crafted files to escape its sandbox and execute server commands through common file-processing apps.
1 week ago
Hackers Could Execute Commands on WordPress, Email and Print Servers Through Upload2Shell Flaw
A flaw in Ghostscript let researchers run commands on WordPress, Roundcube webmail, and Linux print servers through routine file processing.
1 week ago
References
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction
