cve.bz

CVE-2024-33871 artifex ghostscript: Code Injection

8.8 highEPSS 1.4%Fix available

High (8.8) in artifex ghostscript. EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
An issue was discovered in Artifex Ghostscript before 10.03.1. contrib/opvp/gdevopvp.c allows arbitrary code execution via a custom Driver library, exploitable via a crafted PostScript document. This occurs because the Driver parameter for opvp (and oprp) devices can have an arbitrary name for a dynamic library; this library is then loaded.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-07-05. 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-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
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-33871 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-33871?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-33871?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-33871 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-33871 DSA-5692-1
Debian13, 14ghostscript10.03.1~dfsg~git20240518-1DEBIAN-CVE-2024-33871
Ubuntu20.04:LTSghostscript9.50~dfsg-5ubuntu4.12UBUNTU-CVE-2024-33871 USN-6835-1
Ubuntu22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.7UBUNTU-CVE-2024-33871 USN-6835-1
Ubuntu24.04:LTSghostscript10.02.1~dfsg1-0ubuntu7.1UBUNTU-CVE-2024-33871 USN-6835-1
UbuntuPro:16.04:LTSghostscriptno fix listedUBUNTU-CVE-2024-33871
Red Hatenterprise_linux:8::appstreamlibgs, ghostscript, ghostscript-x11 and 5 more0:9.27-13.el8_10RHSA-2024:4000
Red Hatenterprise_linux:8::crblibgs-devel, ghostscript-doc, libgs-debuginfo and 7 more0:9.27-13.el8_10RHSA-2024:4000
Red Hatenterprise_linux:9::appstreamlibgs, ghostscript, ghostscript-doc and 9 more0:9.54.0-16.el9_4RHSA-2024:3999
Red Hatenterprise_linux:9::crbghostscript, libgs-devel, libgs-debuginfo and 6 more0:9.54.0-16.el9_4RHSA-2024:3999
Red Hatrhel_aus:8.2::appstreamlibgs, ghostscript, libgs-debuginfo and 4 more0:9.25-6.el8_2.1RHSA-2024:4537
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamlibgs, ghostscript, ghostscript-x11 and 5 more0:9.27-2.el8_4.1RHSA-2024:4544
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamlibgs, ghostscript, ghostscript-x11 and 5 more0:9.27-2.el8_6.1RHSA-2024:4462
Red Hatrhel_e4s:9.0::appstreamlibgs, ghostscript, ghostscript-doc and 9 more0:9.54.0-7.el9_0.3RHSA-2024:4014
Red Hatrhel_els:7libgs, ghostscript, libgs-devel and 4 more0:9.25-5.el7_9.1RHSA-2024:4549
Red Hatrhel_eus:8.8::appstreamlibgs, ghostscript, ghostscript-x11 and 5 more0:9.27-6.el8_8.1RHSA-2024:4527
Red Hatrhel_eus:8.8::crblibgs-devel, ghostscript-doc, libgs-debuginfo and 7 more0:9.27-6.el8_8.1RHSA-2024:4527
Red Hatrhel_eus:9.2::appstreamlibgs, ghostscript, ghostscript-doc and 9 more0:9.54.0-12.el9_2.1RHSA-2024:4541
1 more for Red Hat in the JSON and on Red Hat's page.
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.191.1SUSE-SU-2024:2198-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5ghostscript9.52-23.77.1SUSE-SU-2024:2199-1
openSUSELeap 15.5, Leap 15.6ghostscript9.52-150000.191.1SUSE-SU-2024:2198-1
openSUSETumbleweedghostscript10.03.1-1.1openSUSE-SU-2024:14090-1
AlmaLinux8libgs, ghostscript, libgs-devel and 5 more9.27-13.el8_10ALSA-2024:4000
AlmaLinux9libgs, ghostscript, libgs-devel and 5 more9.54.0-16.el9_4ALSA-2024:3999
Rocky Linux8ghostscript0:9.27-13.el8_10RLSA-2024:4000
Rocky Linux9ghostscript0:9.54.0-16.el9_4RLSA-2024:3999
Alpinev3.18ghostscript10.04.0-r0ALPINE-CVE-2024-33871
Alpinev3.19, v3.20, v3.21 and 3 moreghostscript10.03.1-r0ALPINE-CVE-2024-33871
Alpaquita23ghostscript10.01.2-r2BELL-CVE-2024-33871
Alpaquitastreamghostscript10.03.1-r0BELL-CVE-2024-33871

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 Important.

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. This mitigation is equally effective in RHEL 7 and 8 when -dSAFER is explicitly passed on the command line, addressing the vulnerability that allows insecure commands within PostScript files. Since the OPVP device, cannot be removed, we recommend to use -dSAFER in RHEL 7 and 8 as a practical security measure.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7 Extended Lifecycle Supportghostscript-0:9.25-5.el7_9.1Fixed 2024-07-15RHSA-2024:4549
Red Hat Enterprise Linux 8ghostscript-0:9.27-13.el8_10Fixed 2024-06-20RHSA-2024:4000
Red Hat Enterprise Linux 8.2 Advanced Update Supportghostscript-0:9.25-6.el8_2.1Fixed 2024-07-15RHSA-2024:4537
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportghostscript-0:9.27-2.el8_4.1Fixed 2024-07-15RHSA-2024:4544
Red Hat Enterprise Linux 8.4 Telecommunications Update Serviceghostscript-0:9.27-2.el8_4.1Fixed 2024-07-15RHSA-2024:4544
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutionsghostscript-0:9.27-2.el8_4.1Fixed 2024-07-15RHSA-2024:4544
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportghostscript-0:9.27-2.el8_6.1Fixed 2024-07-10RHSA-2024:4462
Red Hat Enterprise Linux 8.6 Telecommunications Update Serviceghostscript-0:9.27-2.el8_6.1Fixed 2024-07-10RHSA-2024:4462
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsghostscript-0:9.27-2.el8_6.1Fixed 2024-07-10RHSA-2024:4462
Red Hat Enterprise Linux 8.8 Extended Update Supportghostscript-0:9.27-6.el8_8.1Fixed 2024-07-15RHSA-2024:4527
Red Hat Enterprise Linux 9ghostscript-0:9.54.0-16.el9_4Fixed 2024-06-20RHSA-2024:3999
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsghostscript-0:9.54.0-7.el9_0.3Fixed 2024-06-20RHSA-2024:4014
Red Hat Enterprise Linux 9.2 Extended Update Supportghostscript-0:9.54.0-12.el9_2.1Fixed 2024-07-15RHSA-2024:4541
Red Hat Enterprise Linux 10ghostscriptNot affected
Red Hat Enterprise Linux 6ghostscriptOut of support scope
Red Hat Enterprise Linux 8gimp:flatpak/ghostscriptAffected

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-33871.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON