RHSA-2024:6197MediumCVSS 6.8

Red Hat Security Advisory: ghostscript security update

Published
September 3, 2024
Last Modified
November 5, 2026

🔗 CVE IDs covered (3)

📋 Description

CVE-2024-29510 — ghostscript: format string injection leads to shell command execution (SAFER bypass) CVE-2024-33869 — ghostscript: path traversal and command execution due to path reduction CVE-2024-33870 — ghostscript: path traversal to arbitrary files if the current directory is in the permitted paths

🎯 Affected products87

  • Red Hat Enterprise Linux AppStream (v. 9)
  • Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-0:9.54.0-17.el9_4.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-0:9.54.0-17.el9_4.i686 as a component of Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-0:9.54.0-17.el9_4.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-0:9.54.0-17.el9_4.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-0:9.54.0-17.el9_4.src as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-0:9.54.0-17.el9_4.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-debuginfo-0:9.54.0-17.el9_4.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-debuginfo-0:9.54.0-17.el9_4.aarch64 as a component of Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-debuginfo-0:9.54.0-17.el9_4.i686 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-debuginfo-0:9.54.0-17.el9_4.i686 as a component of Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-debuginfo-0:9.54.0-17.el9_4.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-debuginfo-0:9.54.0-17.el9_4.ppc64le as a component of Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-debuginfo-0:9.54.0-17.el9_4.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-debuginfo-0:9.54.0-17.el9_4.s390x as a component of Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-debuginfo-0:9.54.0-17.el9_4.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-debuginfo-0:9.54.0-17.el9_4.x86_64 as a component of Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-debugsource-0:9.54.0-17.el9_4.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-debugsource-0:9.54.0-17.el9_4.aarch64 as a component of Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-debugsource-0:9.54.0-17.el9_4.i686 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-debugsource-0:9.54.0-17.el9_4.i686 as a component of Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-debugsource-0:9.54.0-17.el9_4.ppc64le as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-debugsource-0:9.54.0-17.el9_4.ppc64le as a component of Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-debugsource-0:9.54.0-17.el9_4.s390x as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-debugsource-0:9.54.0-17.el9_4.s390x as a component of Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-debugsource-0:9.54.0-17.el9_4.x86_64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-debugsource-0:9.54.0-17.el9_4.x86_64 as a component of Red Hat Enterprise Linux CRB (v. 9)
  • ghostscript-doc-0:9.54.0-17.el9_4.noarch as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • ghostscript-gtk-debuginfo-0:9.54.0-17.el9_4.aarch64 as a component of Red Hat Enterprise Linux AppStream (v. 9)
  • +57 more not shown

✅ Remediation

For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: Passing the -dSAFER safety argument on the command line prevents the issue by locking security-related variables after Ghostscript's initialization. In RHEL 9, -dSAFER is enabled by default, ensuring that insecure commands are rejected in a safer environment. The versions of Ghostscript in RHEL 7 and RHEL 8 have an older implementation of SAFER mode that is not enabled by default, but can be enabled by passing -dSAFER on the command line when invoking Ghostscript. This older SAFER mode implementation denies Postscript code the ability to change the output device, and therefore prevents malicious Postscript code from selecting the uniprint output device in order to exploit the format string vulnerabilities in its upWriteComponentCommands and upYMoveCommand parameters. On RHEL 7 and RHEL 8, we recommend always passing -dSAFER on the command line, and avoiding manually selecting the uniprint output device on the command line. Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

🔗 References (6)