Skip to content

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

HighCVSS 8.5 EPSS 0.13%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 4 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/ghostscript(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/ghostscript(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/ghostscript(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/ghostscript(Ubuntu 26.10) All versions No fix listed No fix yet
artifexsoftware ghostpdl < 10.08.0 10.08.0 Fixed
debian/ghostscript(Debian 12) < 10.0.0~dfsg-11+deb12u9; = 10.0.0~dfsg-11; = 10.0.0~dfsg-11+deb12u1; = 10.0.0~dfsg-11+deb12u2 +6 more 10.0.0~dfsg-11+deb12u9 Fixed
debian/ghostscript(Debian 13) < 10.05.1~dfsg-1+deb13u2; = 10.05.1~dfsg-1; = 10.05.1~dfsg-1+deb13u1 10.05.1~dfsg-1+deb13u2 Fixed
debian/ghostscript(Debian 14) < 10.08.0~dfsg-1; = 10.05.1~dfsg-1; = 10.05.1~dfsg-2; = 10.05.1~dfsg-3 +6 more 10.08.0~dfsg-1 Fixed

Affected products

ProductAffected versionsFixed in
debian/ghostscript(Debian:12) < 10.0.0~dfsg-11+deb12u9 10.0.0~dfsg-11+deb12u9
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u1 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u2 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u3 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u4 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u5 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u6 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u7 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u8 No fix listed
debian/ghostscript(Debian:13) < 10.05.1~dfsg-1+deb13u2 10.05.1~dfsg-1+deb13u2
debian/ghostscript(Debian:13) = 10.05.1~dfsg-1 No fix listed
debian/ghostscript(Debian:13) = 10.05.1~dfsg-1+deb13u1 No fix listed
debian/ghostscript(Debian:14) < 10.08.0~dfsg-1 10.08.0~dfsg-1
debian/ghostscript(Debian:14) = 10.05.1~dfsg-1 No fix listed
debian/ghostscript(Debian:14) = 10.05.1~dfsg-2 No fix listed
debian/ghostscript(Debian:14) = 10.05.1~dfsg-3 No fix listed
debian/ghostscript(Debian:14) = 10.06.0~dfsg-1 No fix listed
debian/ghostscript(Debian:14) = 10.06.0~dfsg-2 No fix listed
debian/ghostscript(Debian:14) = 10.06.0~dfsg-3 No fix listed
debian/ghostscript(Debian:14) = 10.07.0~dfsg-1 No fix listed
debian/ghostscript(Debian:14) = 10.07.0~dfsg-2 No fix listed
debian/ghostscript(Debian:14) = 10.07.1~dfsg-1 No fix listed
ubuntu/ghostscript(Ubuntu:22.04) All versions No fix listed
ubuntu/ghostscript(Ubuntu:24.04) All versions No fix listed
Show 3 more
ProductAffected versionsFixed in
ubuntu/ghostscript(Ubuntu:26.04) All versions No fix listed
ubuntu/ghostscript(Ubuntu:26.10) All versions No fix listed
artifexsoftware ghostpdl < 10.08.0 10.08.0

References