Vulnerability · Published Jul 3, 2024 · Assigned by mitre
CVE-2024-33871
High 8.8
In plain English
A high-severity code injection in the ghostscript package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | ghostscript | 9.27-13.el8_10 | ALSA-2024:4000 |
| AlmaLinux:9 | ghostscript | 9.54.0-16.el9_4 | ALSA-2024:3999 |
| AlmaLinux:8 | ghostscript-doc | 9.27-13.el8_10 | ALSA-2024:4000 |
| AlmaLinux:9 | ghostscript-doc | 9.54.0-16.el9_4 | ALSA-2024:3999 |
| AlmaLinux:8 | ghostscript-tools-dvipdf | 9.27-13.el8_10 | ALSA-2024:4000 |
| AlmaLinux:9 | ghostscript-tools-dvipdf | 9.54.0-16.el9_4 | ALSA-2024:3999 |
| AlmaLinux:8 | ghostscript-tools-fonts | 9.27-13.el8_10 | ALSA-2024:4000 |
| AlmaLinux:9 | ghostscript-tools-fonts | 9.54.0-16.el9_4 | ALSA-2024:3999 |
| AlmaLinux:8 | ghostscript-tools-printing | 9.27-13.el8_10 | ALSA-2024:4000 |
| AlmaLinux:9 | ghostscript-tools-printing | 9.54.0-16.el9_4 | ALSA-2024:3999 |
| AlmaLinux:8 | ghostscript-x11 | 9.27-13.el8_10 | ALSA-2024:4000 |
| AlmaLinux:9 | ghostscript-x11 | 9.54.0-16.el9_4 | ALSA-2024:3999 |
| AlmaLinux:8 | libgs | 9.27-13.el8_10 | ALSA-2024:4000 |
| AlmaLinux:9 | libgs | 9.54.0-16.el9_4 | ALSA-2024:3999 |
| AlmaLinux:8 | libgs-devel | 9.27-13.el8_10 | ALSA-2024:4000 |
| AlmaLinux:9 | libgs-devel | 9.54.0-16.el9_4 | ALSA-2024:3999 |
| Alpine:v3.20 | ghostscript | 10.03.1-r0 | ALPINE-CVE-2024-33871 |
| Alpine:v3.21 | ghostscript | 10.03.1-r0 | ALPINE-CVE-2024-33871 |
| Alpine:v3.22 | ghostscript | 10.03.1-r0 | ALPINE-CVE-2024-33871 |
| Alpine:v3.23 | ghostscript | 10.03.1-r0 | ALPINE-CVE-2024-33871 |
| Alpine:v3.24 | ghostscript | 10.03.1-r0 | ALPINE-CVE-2024-33871 |
| Debian:12 | ghostscript | 10.0.0~dfsg-11+deb12u4 | DEBIAN-CVE-2024-33871 |
| Debian:12 | ghostscript | 10.0.0~dfsg-11+deb12u4 | DSA-5692-1 |
| Debian:13 | ghostscript | 10.03.1~dfsg~git20240518-1 | DEBIAN-CVE-2024-33871 |
| Debian:14 | ghostscript | 10.03.1~dfsg~git20240518-1 | DEBIAN-CVE-2024-33871 |
| Rocky Linux:8 | ghostscript | 0:9.27-13.el8_10 | RLSA-2024:4000 |
| Rocky Linux:9 | ghostscript | 0:9.54.0-16.el9_4 | RLSA-2024:3999 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.7 | USN-6835-1 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.7 | UBUNTU-CVE-2024-33871 |
| Ubuntu:24.04:LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.1 | UBUNTU-CVE-2024-33871 |
| Ubuntu:24.04:LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.1 | USN-6835-1 |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H