CVE-2024-33871 Code injection in n/a
Attackers can execute arbitrary code via crafted PostScript documents by exploiting dynamic library loading in Ghostscript.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-33871?
CVE-2024-33871 is a high-severity code injection vulnerability in Artifex Ghostscript, published on 3 Jul 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
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.
Weakness: CWE-94
Which versions are affected by CVE-2024-33871?
It affects 1 product.
Linux distribution packages (40)
ghostscript AlmaLinux:8 | All versions | 9.27-13.el8_10 |
ghostscript-doc AlmaLinux:8 | All versions | 9.27-13.el8_10 |
ghostscript-tools-dvipdf AlmaLinux:8 | All versions | 9.27-13.el8_10 |
ghostscript-tools-fonts AlmaLinux:8 | All versions | 9.27-13.el8_10 |
ghostscript-tools-printing AlmaLinux:8 | All versions | 9.27-13.el8_10 |
ghostscript-x11 AlmaLinux:8 | All versions | 9.27-13.el8_10 |
libgs AlmaLinux:8 | All versions | 9.27-13.el8_10 |
libgs-devel AlmaLinux:8 | All versions | 9.27-13.el8_10 |
ghostscript AlmaLinux:9 | All versions | 9.54.0-16.el9_4 |
ghostscript-doc AlmaLinux:9 | All versions | 9.54.0-16.el9_4 |
ghostscript-tools-dvipdf AlmaLinux:9 | All versions | 9.54.0-16.el9_4 |
ghostscript-tools-fonts AlmaLinux:9 | All versions | 9.54.0-16.el9_4 |
ghostscript-tools-printing AlmaLinux:9 | All versions | 9.54.0-16.el9_4 |
ghostscript-x11 AlmaLinux:9 | All versions | 9.54.0-16.el9_4 |
libgs AlmaLinux:9 | All versions | 9.54.0-16.el9_4 |
libgs-devel AlmaLinux:9 | All versions | 9.54.0-16.el9_4 |
ghostscript Red Hat:enterprise_linux:8::appstream | All versions | 0:9.27-13.el8_10 |
ghostscript-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:9.27-13.el8_10 |
ghostscript-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:9.27-13.el8_10 |
ghostscript-gtk-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:9.27-13.el8_10 |
ghostscript-x11 Red Hat:enterprise_linux:8::appstream | All versions | 0:9.27-13.el8_10 |
ghostscript-x11-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:9.27-13.el8_10 |
libgs Red Hat:enterprise_linux:8::appstream | All versions | 0:9.27-13.el8_10 |
libgs-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:9.27-13.el8_10 |
ghostscript-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:9.27-13.el8_10 |
ghostscript-debugsource Red Hat:enterprise_linux:8::crb | All versions | 0:9.27-13.el8_10 |
ghostscript-doc Red Hat:enterprise_linux:8::crb | All versions | 0:9.27-13.el8_10 |
ghostscript-gtk-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:9.27-13.el8_10 |
ghostscript-tools-dvipdf Red Hat:enterprise_linux:8::crb | All versions | 0:9.27-13.el8_10 |
ghostscript-tools-fonts Red Hat:enterprise_linux:8::crb | All versions | 0:9.27-13.el8_10 |
ghostscript-tools-printing Red Hat:enterprise_linux:8::crb | All versions | 0:9.27-13.el8_10 |
ghostscript-x11-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:9.27-13.el8_10 |
libgs-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:9.27-13.el8_10 |
libgs-devel Red Hat:enterprise_linux:8::crb | All versions | 0:9.27-13.el8_10 |
ghostscript Red Hat:enterprise_linux:9::appstream | All versions | 0:9.54.0-16.el9_4 |
ghostscript-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:9.54.0-16.el9_4 |
ghostscript-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:9.54.0-16.el9_4 |
ghostscript-doc Red Hat:enterprise_linux:9::appstream | All versions | 0:9.54.0-16.el9_4 |
ghostscript-gtk-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:9.54.0-16.el9_4 |
ghostscript-tools-dvipdf Red Hat:enterprise_linux:9::appstream | All versions | 0:9.54.0-16.el9_4 |
Products include Artifex Ghostscript.
How do I fix CVE-2024-33871?
Upgrade to a fixed version.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-33871 being exploited?
There is no known exploitation of CVE-2024-33871 in the wild and no public exploit code.
Other vulnerabilities in Artifex Ghostscript
Sources
Also known as ALPINE-CVE-2024-33871, ALSA-2024:3999, ALSA-2024:4000, BELL-CVE-2024-33871, DEBIAN-CVE-2024-33871, GHSA-mq7h-fm69-h6xq and 16 more.