CVE-2024-33871: Ghostscript 10.03.1 (2024-05-02) fixed 5 CVEs including CVE-2024-33871 arbitrary code execution

Published May 27, 2024
·
Updated

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.

Other sources

The "Driver" parameter for the "opvp"/"oprp" device specifies the name of a dynamic library and allows any library to be loaded, potentially leading to arbitrary code execution.

References: https://bugs.ghostscript.com/showbug.cgi?id=707754 https://ghostscript.readthedocs.io/en/gs10.03.1/News.html

Upstream patch: https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=7145885041bb52cc23964f0aa2aec1b1c82b5908

— Red Hat

Affected Software

13 affected componentsFixes available
redhat/ghostscript<10.03.1
10.03.1
Artifex Ghostscript<10.03.1
debian/ghostscript<10.0.0~dfsg-11+deb12u4
10.0.0~dfsg-11+deb12u4
debian/ghostscript<10.03.1~dfsg~git20240518-1
10.03.1~dfsg~git20240518-1
debian/ghostscript<10.03.1~dfsg~git20240518-1
10.03.1~dfsg~git20240518-1
debian/ghostscript
10.0.0~dfsg-11+deb12u810.05.1~dfsg-1+deb13u110.05.1~dfsg-1+deb13u310.08.0~dfsg-2
alpine/ghostscript<10.04.0-r0
10.04.0-r0
alpine/ghostscript<10.03.1-r0
10.03.1-r0
alpine/ghostscript<10.03.1-r0
10.03.1-r0
alpine/ghostscript<10.03.1-r0
10.03.1-r0
alpine/ghostscript<10.03.1-r0
10.03.1-r0
alpine/ghostscript<10.03.1-r0
10.03.1-r0
alpine/ghostscript<10.03.1-r0
10.03.1-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/ghostscript to a version that resolves this vulnerability.

    Fixed in 10.03.1
  2. Upgrade

    Upgrade debian/ghostscript to a version that resolves this vulnerability.

    Fixed in 10.0.0~dfsg-11+deb12u4
  3. Upgrade

    Upgrade debian/ghostscript to a version that resolves this vulnerability.

    Fixed in 10.03.1~dfsg~git20240518-1
  4. Upgrade

    Upgrade debian/ghostscript to a version that resolves this vulnerability.

    Fixed in 10.0.0~dfsg-11+deb12u8Fixed in 10.05.1~dfsg-1+deb13u1Fixed in 10.05.1~dfsg-1+deb13u3Fixed in 10.08.0~dfsg-2
  5. Upgrade

    Upgrade alpine/ghostscript to a version that resolves this vulnerability.

    Fixed in 10.04.0-r0
  6. Upgrade

    Upgrade alpine/ghostscript to a version that resolves this vulnerability.

    Fixed in 10.03.1-r0
  7. Upgrade

    Upgrade Artifex Ghostscript to a version that resolves this vulnerability.

    Fixed in 10.03.1

Event History

Jul 3, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-33871?

CVE-2024-33871 is considered a critical vulnerability due to its potential for arbitrary code execution.

2

How do I fix CVE-2024-33871?

To fix CVE-2024-33871, upgrade to Ghostscript version 10.03.1 or later.

3

Which versions of Ghostscript are affected by CVE-2024-33871?

CVE-2024-33871 affects Ghostscript versions prior to 10.03.1.

4

What type of attack is associated with CVE-2024-33871?

CVE-2024-33871 allows for arbitrary code execution via a crafted PostScript document.

5

Are there any specific platforms affected by CVE-2024-33871?

Yes, both Red Hat and Debian versions of Ghostscript are affected if they are below the specified patched versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203