Description
In ghostscript before version 9.50, the .buildfont1 procedure did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. An attacker could abuse this flaw by creating a specially crafted PostScript file that could escalate privileges and access files outside of restricted areas.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| ghostscript | ghostscript | before 9.50 | — |
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 | 9.27~dfsg-3.1 | — |
| Debian 13 | ghostscript | 9.27~dfsg-3.1 | — |
| Debian 12 | ghostscript | 9.27~dfsg-3.1 | — |
| Debian 10 | ghostscript | 9.27~dfsg-2+deb10u1 | DSA-4499-1 |
| Debian 9 | ghostscript | 9.26a~dfsg-0+deb9u4 | DSA-4499-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 8 | ghostscript | 9.26a~dfsg-0+deb8u4 | DLA-1880-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.18.04.10 | USN-4092-1 |
| Ubuntu 16.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.16.04.10 | USN-4092-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | libgs +7 | 9.25-2.el8_0.2 | RHSA-2019:2465 |
| RHEL 7 | libgs +5 | 9.25-2.el7_7.1 | RHSA-2019:2462 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | ghostscript | 9.26a-3.18.2 | SUSE-SU-2019:2348-1 |
| SLES 15 | ghostscript | 9.26a-3.18.2 | SUSE-SU-2019:2348-1 |
| SLES 12 SP4 | ghostscript | 9.26a-23.25.1 | SUSE-SU-2019:2347-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP4 | ghostscript | 9.26a-23.25.1 | SUSE-SU-2019:2347-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 9.54.0-2.2 | openSUSE-SU-2024:10783-1 |
| openSUSE Leap 15.1 | ghostscript +1 | 9.26a-lp151.3.3.1 | openSUSE-SU-2019:2139-1 |
| openSUSE Leap 15.0 | ghostscript +1 | 9.26a-lp150.2.20.1 | openSUSE-SU-2019:2160-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | ghostscript | 9.27-r2 | — |
| Alpine v3.23 | ghostscript | 9.27-r2 | — |
| Alpine v3.22 | ghostscript | 9.27-r2 | — |
| Alpine v3.21 | ghostscript | 9.27-r2 | — |
| Alpine v3.20 | ghostscript | 9.27-r2 | — |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | ghostscript | 9.27-r2 | — |
| Alpine v3.18 | ghostscript | 9.27-r2 | — |
| Alpine v3.17 | ghostscript | 9.27-r2 | — |
| Alpine v3.16 | ghostscript | 9.27-r2 | — |
| Alpine v3.15 | ghostscript | 9.27-r2 | — |
| Alpine v3.14 | ghostscript | 9.27-r2 | — |
| Alpine v3.13 | ghostscript | 9.27-r2 | — |
| Alpine v3.12 | ghostscript | 9.27-r2 | — |
| Alpine v3.11 | ghostscript | 9.27-r2 | — |
| Alpine v3.10 | ghostscript | 9.27-r2 | — |
| Alpine v3.9 | ghostscript | 9.26-r3 | — |
| Alpine v3.8 | ghostscript | 9.26-r3 | — |
| Alpine v3.7 | ghostscript | 9.26-r3 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | libgs +7 | 9.25-2.el8_0.2 | ELSA-2019-2465 |
| Oracle Linux 7 | libgs +5 | 9.25-2.el7_7.1 | ELSA-2019-2462 |
Advisories 12
- RHSA-2019:2462 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2019:2465 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- USN-4092-1 ghostscript vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-4499-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1880-1 ghostscript - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2019:2347-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10783-1 ghostscript-9.54.0-2.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:2139-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:2160-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:2348-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2019-2462 Important: ghostscript security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Aug 16, 2019
- ELSA-2019-2465 Important: ghostscript security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Aug 13, 2019