Skip to content
OpenAdvisories
High · 7.8 CVE-2026-125396 EUVD-2026-120559GHSA-hg3g-c775-3fpj

Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery

Published Nov 9, 2026 · Updated Nov 10, 2026 · Assigned by VulnCheck

Description

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.

Affected products

VendorProductAffectedFixed
ArtifexSoftware ghostpdl < 10.08.0 10.08.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ghostscript 10.08.0~dfsg-1 —
Debian 13 ghostscript 10.05.1~dfsg-1+deb13u2 —
Debian 12 ghostscript No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ghostscript No fix yet —
Ubuntu 26.04 LTS ghostscript No fix yet —
Ubuntu 24.04 LTS ghostscript No fix yet —
Ubuntu 22.04 LTS ghostscript No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS ghostscript No fix yet —
Ubuntu Pro 18.04 LTS ghostscript No fix yet —
Ubuntu Pro 16.04 LTS ghostscript No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ghostscript 10.08.0-5.1 openSUSE-SU-2026:12528-1

Advisories 2

References