CVEfocus › CVE database › CVE-2026-125396

CVE-2026-125396Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery

CVSS 7.8 HighEPSS 0.4% (higher than 30% of CVEs)Published 2026-11-09Updated 2026-11-22Assigner: VulnCheck

Ghostscript before 10.08.0 contains a -dSAFER bypass vulnerability in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types. Attackers can supply crafted PostScript or PDF documents that trigger a type error, recover .forceput via a custom error handler, and cause a use-after-free across save/restore to execute arbitrary code.

CWE-648

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
11Fix pending
3Under investigation
4Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ghostscriptFix pendingUBUNTU-CVE-2026-125396
Ubuntu 26.04ghostscriptUnder investigationUBUNTU-CVE-2026-125396
Ubuntu 24.04ghostscriptUnder investigationUBUNTU-CVE-2026-125396
Ubuntu 22.04ghostscriptUnder investigationUBUNTU-CVE-2026-125396
Ubuntu 20.04ghostscriptFix pendingUBUNTU-CVE-2026-125396
Ubuntu 18.04ghostscriptFix pendingUBUNTU-CVE-2026-125396
Ubuntu 16.04ghostscriptFix pendingUBUNTU-CVE-2026-125396
Debian 14ghostscriptFixed10.08.0~dfsg-1DEBIAN-CVE-2026-125396
Debian 13ghostscriptFixed10.05.1~dfsg-1+deb13u2DEBIAN-CVE-2026-125396
Debian 12ghostscriptFixed10.0.0~dfsg-11+deb12u9DEBIAN-CVE-2026-125396
Red Hat Enterprise Linux 7ghostscriptFix pending
Affected
Red Hat Enterprise Linux 7ghostscript-cupsFix pending
Affected
Red Hat Enterprise Linux 7ghostscript-develFix pending
Affected
Red Hat Enterprise Linux 7ghostscript-docFix pending
Affected
Red Hat Enterprise Linux 7ghostscript-gtkFix pending
Affected
Red Hat Enterprise Linux 7libgsFix pending
Affected
Red Hat Enterprise Linux 7libgs-develFix pending
Affected
Red Hat Enterprise Linux 6ghostscriptWill not fix
Out of support scope
Red Hat Enterprise Linux 6ghostscript-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6ghostscript-docWill not fix
Out of support scope
Red Hat Enterprise Linux 6ghostscript-gtkWill not fix
Out of support scope

What the vendor says

As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.