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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ghostscript | 10.08.0~dfsg-1 | — |
| Debian 13 | ghostscript | 10.05.1~dfsg-1+deb13u2 | — |
| Debian 12 | ghostscript | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 10.08.0-5.1 | openSUSE-SU-2026:12528-1 |
Advisories 2
- openSUSE-SU-2026:12528-1 ghostscript-10.08.0-5.1 on GA media SUSE / openSUSE Security Updates · Nov 12, 2026
- WID-SEC-2026-4424 Ghostscript: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Nov 9, 2026
References
- Patch Commit patch
- https://github.com/ArtifexSoftware/ghostpdl product
- https://bugs.ghostscript.com/show_bug.cgi?id=709684 issue-tracking
- https://github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps#L1026-L1035 technical-description
- VulnCheck Advisory: Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery third-party-advisory