Description
gs_lib_ctx_stash_sanitized_arg in base/gslibctx.c in Artifex Ghostscript before 10.05.1 lacks argument sanitization for the # case. A created PDF document includes its password in cleartext.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Artifex | Ghostscript | < 10.05.1 | 10.05.1 |
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.05.1~dfsg-1 | — |
| Debian 13 | ghostscript | 10.05.1~dfsg-1 | — |
| Debian 12 | ghostscript | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.7 | USN-7623-1 |
| Ubuntu 22.04 LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.12 | USN-7623-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | ghostscript | 9.50~dfsg-5ubuntu4.15+esm1 | USN-7623-1 |
| Ubuntu Pro 18.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.18.04.18+esm4 | USN-7623-1 |
| Ubuntu Pro 16.04 LTS | ghostscript | 9.26~dfsg+0-0ubuntu0.16.04.14+esm9 | USN-7623-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | ghostscript | 9.52-150000.206.1 | SUSE-SU-2025:03461-1 |
| SLES 15 SP6 | ghostscript | 9.52-150000.206.1 | SUSE-SU-2025:03461-1 |
| SLES 12 SP5 | ghostscript | 9.52-23.92.1 | SUSE-SU-2025:03460-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 10.05.1-1.1 | openSUSE-SU-2025:15413-1 |
| openSUSE Leap 16.0 | ghostscript | 10.06.0-160000.1.1 | openSUSE-SU-2026:20592-1 |
| openSUSE Leap 15.6 | ghostscript | 9.52-150000.206.1 | SUSE-SU-2025:03461-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | libgs +8 | 9.56.1-7.amzn2023.0.17 | ALAS2023-2025-1000 |
| Amazon Linux 2 | libgs +5 | 9.54.0-9.amzn2.0.11 | ALAS2-2025-2875 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
B1tBreaker/CVE-2025-48708 ★ 5 · May 25, 2025
Lack of argument sanitization leading to password leakage in Ghostscript PDF versions up to 10.05.0.
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 8
- USN-7623-1 ghostscript vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- WID-SEC-2025-1134 Ghostscript: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Apr 28, 2026
- openSUSE-SU-2026:20592-1 Security update for ghostscript SUSE / openSUSE Security Updates · Apr 23, 2026
- openSUSE-SU-2025:15413-1 ghostscript-10.05.1-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:03460-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2025:03461-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2-2025-2875 Moderate: ghostscript security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jun 12, 2025
- ALAS2023-2025-1000 Moderate: ghostscript security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jun 10, 2025