Skip to content
Fencer Vulns
high 8.8

CVE-2024-33871 json

An issue was discovered in Artifex Ghostscript before 10.03.1.

published 2024-07-03 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-31576

cvss
8.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.4%
EPSS 1.4% chance of exploitation in 30 days, percentile 73%
public exploits
0
none known

Summary

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.

Patch / fix

  • artifex ghostscript 10.03.1
  • ghostscript Debian 12 10.0.0~dfsg-11+deb12u4
  • ghostscript Debian 14, Debian 13 10.03.1~dfsg~git20240518-1

debian advisories DEBIAN-CVE-2024-33871

  • ghostscript Ubuntu 20.04 LTS 9.50~dfsg-5ubuntu4.12
  • ghostscript Ubuntu 22.04 LTS 9.55.0~dfsg1-0ubuntu5.7
  • ghostscript Ubuntu 24.04 LTS 10.02.1~dfsg1-0ubuntu7.1

ubuntu advisories UBUNTU-CVE-2024-33871

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • ghostscript RHEL 8 9.27-13.el8_10
  • libgs RHEL 8 9.27-13.el8_10
  • ghostscript-x11 RHEL 8 9.27-13.el8_10
  • ghostscript-tools-fonts RHEL 8 9.27-13.el8_10
  • ghostscript-tools-dvipdf RHEL 8 9.27-13.el8_10
  • ghostscript-tools-printing RHEL 8 9.27-13.el8_10
  • ghostscript RHEL 9 9.54.0-16.el9_4
  • libgs RHEL 9 9.54.0-16.el9_4

red hat advisories RHSA-2024:4549RHSA-2024:4544RHSA-2024:4541RHSA-2024:4537RHSA-2024:4527RHSA-2024:4462

  • ghostscript SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 9.52-23.77.1
  • ghostscript SLES for SAP 15 SP4, SLES for SAP 15 SP3, SLES for SAP 15 SP2 +14 more 9.52-150000.191.1

suse advisories SUSE-SU-2024:2199-1SUSE-SU-2024:2198-1

  • ghostscript openSUSE Tumbleweed 10.03.1-1.1

opensuse advisories openSUSE-SU-2024:14090-1

  • ghostscript AlmaLinux 9 9.54.0-16.el9_4
  • libgs AlmaLinux 9 9.54.0-16.el9_4
  • ghostscript-x11 AlmaLinux 9 9.54.0-16.el9_4
  • ghostscript-tools-fonts AlmaLinux 9 9.54.0-16.el9_4
  • ghostscript-tools-dvipdf AlmaLinux 9 9.54.0-16.el9_4
  • ghostscript-tools-printing AlmaLinux 9 9.54.0-16.el9_4
  • ghostscript AlmaLinux 8 9.27-13.el8_10
  • libgs AlmaLinux 8 9.27-13.el8_10

almalinux advisories ALSA-2024:3999ALSA-2024:4000

  • ghostscript Rocky Linux 9 9.54.0-16.el9_4
  • ghostscript Rocky Linux 8 9.27-13.el8_10

rocky linux advisories RLSA-2024:3999RLSA-2024:4000

  • ghostscript Alpine 3.18 10.04.0-r0
  • ghostscript Alpine 3.24, Alpine 3.23, Alpine 3.22 +3 more 10.03.1-r0

alpine advisories ALPINE-CVE-2024-33871

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-33871 updated cvss 8.8

ghostscript: OPVP device arbitrary code execution via custom Driver library

  • Red Hat Enterprise Linux 6 ghostscript, ghostscript-gtk
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 libgs, ghostscript, ghostscript-x11, ghostscript-tools-fonts, ghostscript-tools-dvipdf, ghostscript-tools-printing
    affected: workaround, no fix available
  • Red Hat CodeReady Linux Builder EUS (v.8.8) ghostscript-tools-fonts 9.27-6.el8_8.1, ghostscript-tools-dvipdf 9.27-6.el8_8.1, ghostscript-tools-printing 9.27-6.el8_8.1
    fixed: vendor fix RHSA-2024:4527
  • Red Hat CodeReady Linux Builder EUS (v.9.2) ghostscript 9.54.0-12.el9_2.1, ghostscript-tools-fonts 9.54.0-12.el9_2.1, ghostscript-tools-printing 9.54.0-12.el9_2.1
    fixed: vendor fix RHSA-2024:4541
  • Red Hat Enterprise Linux AppStream (v. 8) libgs 9.27-13.el8_10, ghostscript 9.27-13.el8_10, ghostscript-x11 9.27-13.el8_10
    fixed: vendor fix RHSA-2024:4000
  • Red Hat Enterprise Linux AppStream (v. 9) libgs 9.54.0-16.el9_4, ghostscript 9.54.0-16.el9_4, ghostscript-x11 9.54.0-16.el9_4, ghostscript-tools-fonts 9.54.0-16.el9_4, ghostscript-tools-dvipdf 9.54.0-16.el9_4, ghostscript-tools-printing 9.54.0-16.el9_4
    fixed: vendor fix RHSA-2024:3999
  • Red Hat Enterprise Linux AppStream AUS (v. 8.2) libgs 9.25-6.el8_2.1, ghostscript 9.25-6.el8_2.1
    fixed: vendor fix RHSA-2024:4537
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) libgs 9.27-2.el8_4.1, ghostscript 9.27-2.el8_4.1, ghostscript-x11 9.27-2.el8_4.1
    fixed: vendor fix RHSA-2024:4544
show 12 more
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) libgs 9.27-2.el8_6.1, ghostscript 9.27-2.el8_6.1, ghostscript-x11 9.27-2.el8_6.1
    fixed: vendor fix RHSA-2024:4462
  • Red Hat Enterprise Linux AppStream E4S (v.8.4) libgs 9.27-2.el8_4.1, ghostscript 9.27-2.el8_4.1, ghostscript-x11 9.27-2.el8_4.1
    fixed: vendor fix RHSA-2024:4544
  • Red Hat Enterprise Linux AppStream E4S (v.8.6) libgs 9.27-2.el8_6.1, ghostscript 9.27-2.el8_6.1, ghostscript-x11 9.27-2.el8_6.1
    fixed: vendor fix RHSA-2024:4462
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) libgs 9.54.0-7.el9_0.3, ghostscript 9.54.0-7.el9_0.3, ghostscript-x11 9.54.0-7.el9_0.3, ghostscript-tools-fonts 9.54.0-7.el9_0.3, ghostscript-tools-dvipdf 9.54.0-7.el9_0.3, ghostscript-tools-printing 9.54.0-7.el9_0.3
    fixed: vendor fix RHSA-2024:4014
  • Red Hat Enterprise Linux AppStream EUS (v.8.8) libgs 9.27-6.el8_8.1, ghostscript 9.27-6.el8_8.1, ghostscript-x11 9.27-6.el8_8.1
    fixed: vendor fix RHSA-2024:4527
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) libgs 9.54.0-12.el9_2.1, ghostscript 9.54.0-12.el9_2.1, ghostscript-x11 9.54.0-12.el9_2.1, ghostscript-tools-fonts 9.54.0-12.el9_2.1, ghostscript-tools-dvipdf 9.54.0-12.el9_2.1, ghostscript-tools-printing 9.54.0-12.el9_2.1
    fixed: vendor fix RHSA-2024:4541
  • Red Hat Enterprise Linux AppStream TUS (v.8.4) libgs 9.27-2.el8_4.1, ghostscript 9.27-2.el8_4.1, ghostscript-x11 9.27-2.el8_4.1
    fixed: vendor fix RHSA-2024:4544
  • Red Hat Enterprise Linux AppStream TUS (v.8.6) libgs 9.27-2.el8_6.1, ghostscript 9.27-2.el8_6.1, ghostscript-x11 9.27-2.el8_6.1
    fixed: vendor fix RHSA-2024:4462
  • Red Hat Enterprise Linux CRB (v. 8) ghostscript-tools-fonts 9.27-13.el8_10, ghostscript-tools-dvipdf 9.27-13.el8_10, ghostscript-tools-printing 9.27-13.el8_10
    fixed: vendor fix RHSA-2024:4000
  • Red Hat Enterprise Linux CRB (v. 9) ghostscript 9.54.0-16.el9_4, ghostscript-tools-fonts 9.54.0-16.el9_4, ghostscript-tools-printing 9.54.0-16.el9_4
    fixed: vendor fix RHSA-2024:3999
  • Red Hat Enterprise Linux Server (v. 7 ELS) libgs 9.25-5.el7_9.1, ghostscript 9.25-5.el7_9.1, ghostscript-cups 9.25-5.el7_9.1 Red Hat Enterprise Linux Server Optional (v. 7 ELS) ghostscript-gtk 9.25-5.el7_9.1
    fixed: vendor fix RHSA-2024:4549
  • Red Hat Enterprise Linux 10 ghostscript
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
2 y ago

Exploit prediction

1.43% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CNA 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

  • artifex ghostscript

Classification

Weakness
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.