cve.bz

CVE-2024-29510 artifex ghostscript: Protection Mechanism Failure

6.3 mediumExploitEPSS 28%

Medium (6.3) in artifex ghostscript. EPSS 28% estimated probability of exploitation activity in the next 30 days.

On this page
Artifex Ghostscript before 10.03.1 allows memory corruption, and SAFER sandbox bypass, via format string injection with a uniprint device.

Severity

CVSS 3.1

6.3 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
EPSS
28% (unchanged from 28% a week ago; 28% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-07-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-693 Protection Mechanism Failure
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-29510 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-29510?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-29510?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-29510 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
artifex:ghostscriptbefore 10.03.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ghostscript9.53.3~dfsg-7+deb11u7DSA-5692-1
Debian12ghostscript10.0.0~dfsg-11+deb12u4DEBIAN-CVE-2024-29510 DSA-5692-1
Debian13, 14ghostscript10.03.1~dfsg~git20240518-1DEBIAN-CVE-2024-29510
Ubuntu20.04:LTSghostscript9.50~dfsg-5ubuntu4.12UBUNTU-CVE-2024-29510 USN-6835-1
Ubuntu22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.7UBUNTU-CVE-2024-29510 USN-6835-1
Ubuntu24.04:LTSghostscript10.02.1~dfsg1-0ubuntu7.1UBUNTU-CVE-2024-29510 USN-6835-1
Red Hatenterprise_linux:9::appstreamlibgs, ghostscript, ghostscript-doc and 9 more0:9.54.0-17.el9_4RHSA-2024:6197
Red Hatenterprise_linux:9::crbghostscript, libgs-devel, libgs-debuginfo and 6 more0:9.54.0-17.el9_4RHSA-2024:6197
Red Hatrhel_eus:9.2::appstreamlibgs, ghostscript, ghostscript-doc and 9 more0:9.54.0-12.el9_2.2RHSA-2024:6466
Red Hatrhel_eus:9.2::crbghostscript, libgs-devel, libgs-debuginfo and 6 more0:9.54.0-12.el9_2.2RHSA-2024:6466
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 12 moreghostscript9.52-150000.194.1SUSE-SU-2024:2292-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5ghostscript9.52-23.80.1SUSE-SU-2024:2276-1
openSUSELeap 15.5, Leap 15.6ghostscript9.52-150000.194.1SUSE-SU-2024:2292-1
openSUSETumbleweedghostscript10.03.1-1.1openSUSE-SU-2024:14090-1
AlmaLinux9libgs, ghostscript, libgs-devel and 5 more9.54.0-17.el9_4ALSA-2024:6197
Rocky Linux9ghostscript0:9.54.0-17.el9_4RLSA-2024:6197
Alpinev3.18ghostscript10.04.0-r0ALPINE-CVE-2024-29510
Alpinev3.19, v3.20, v3.21 and 3 moreghostscript10.03.1-r0ALPINE-CVE-2024-29510
Alpaquita23ghostscript10.01.2-r2BELL-CVE-2024-29510
Alpaquitastreamghostscript10.03.1-r0BELL-CVE-2024-29510

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9ghostscript-0:9.54.0-17.el9_4Fixed 2024-09-03RHSA-2024:6197
Red Hat Enterprise Linux 9.2 Extended Update Supportghostscript-0:9.54.0-12.el9_2.2Fixed 2024-09-09RHSA-2024:6466
Red Hat Enterprise Linux 10ghostscriptNot affected
Red Hat Enterprise Linux 6ghostscriptOut of support scope
Red Hat Enterprise Linux 7ghostscriptOut of support scope
Red Hat Enterprise Linux 8ghostscriptNot affected
Red Hat Enterprise Linux 8gimp:flatpak/ghostscriptWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-29510.

Public exploits

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-693 (17).

References

Check your stackJSON