Cleartext storage of sensitive information in Ghostscript - CVE-2025-48708

 

Cleartext storage of sensitive information in Ghostscript - CVE-2025-48708

Published: May 24, 2025 / Updated: May 30, 2025


Vulnerability identifier: #VU109790
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/E:P/U:Green
CVE-ID: CVE-2025-48708
CWE-ID: CWE-312
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: Artifex Software, Inc.
Affected software:
Ghostscript

Detailed vulnerability description

The vulnerability allows a remote attacker to read PDF documents protected with a password.

The vulnerability exists due to an error within the gs_lib_ctx_stash_sanitized_arg() function in base/gslibctx.c caused by incorrect sanitization of arguments for the # case. As a result, a created PDF document includes its password in cleartext.


How to mitigate CVE-2025-48708

Install updates from vendor's website.

Sources