Red Hat Security Advisory: ghostscript security update
🔗 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 CodeReady Linux Builder EUS (v.9.2)
- Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-0:9.54.0-12.el9_2.2.aarch64 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-0:9.54.0-12.el9_2.2.i686 as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- ghostscript-0:9.54.0-12.el9_2.2.ppc64le as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-0:9.54.0-12.el9_2.2.s390x as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-0:9.54.0-12.el9_2.2.src as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-0:9.54.0-12.el9_2.2.x86_64 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-debuginfo-0:9.54.0-12.el9_2.2.aarch64 as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- ghostscript-debuginfo-0:9.54.0-12.el9_2.2.aarch64 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-debuginfo-0:9.54.0-12.el9_2.2.i686 as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- ghostscript-debuginfo-0:9.54.0-12.el9_2.2.i686 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-debuginfo-0:9.54.0-12.el9_2.2.ppc64le as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- ghostscript-debuginfo-0:9.54.0-12.el9_2.2.ppc64le as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-debuginfo-0:9.54.0-12.el9_2.2.s390x as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- ghostscript-debuginfo-0:9.54.0-12.el9_2.2.s390x as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-debuginfo-0:9.54.0-12.el9_2.2.x86_64 as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- ghostscript-debuginfo-0:9.54.0-12.el9_2.2.x86_64 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-debugsource-0:9.54.0-12.el9_2.2.aarch64 as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- ghostscript-debugsource-0:9.54.0-12.el9_2.2.aarch64 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-debugsource-0:9.54.0-12.el9_2.2.i686 as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- ghostscript-debugsource-0:9.54.0-12.el9_2.2.i686 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-debugsource-0:9.54.0-12.el9_2.2.ppc64le as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- ghostscript-debugsource-0:9.54.0-12.el9_2.2.ppc64le as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-debugsource-0:9.54.0-12.el9_2.2.s390x as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- ghostscript-debugsource-0:9.54.0-12.el9_2.2.s390x as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-debugsource-0:9.54.0-12.el9_2.2.x86_64 as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- ghostscript-debugsource-0:9.54.0-12.el9_2.2.x86_64 as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-doc-0:9.54.0-12.el9_2.2.noarch as a component of Red Hat Enterprise Linux AppStream EUS (v.9.2)
- ghostscript-gtk-debuginfo-0:9.54.0-12.el9_2.2.aarch64 as a component of Red Hat CodeReady Linux Builder EUS (v.9.2)
- +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)
- selfhttps://access.redhat.com/errata/RHSA-2024:6466
- externalhttps://access.redhat.com/security/updates/classification/#moderate
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2293950
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2293958
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=2293959
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_6466.json