7.8
Advisory Published
Updated

CVE-2018-16802

First published: Mon Sep 10 2018(Updated: )

An issue was discovered in Artifex Ghostscript before 9.25. Incorrect "restoration of privilege" checking when running out of stack during exception handling could be used by attackers able to supply crafted PostScript to execute code using the "pipe" instruction. This is due to an incomplete fix for <a href="https://access.redhat.com/security/cve/CVE-2018-16509">CVE-2018-16509</a>. References: <a href="https://seclists.org/oss-sec/2018/q3/228">https://seclists.org/oss-sec/2018/q3/228</a> <a href="https://seclists.org/oss-sec/2018/q3/229">https://seclists.org/oss-sec/2018/q3/229</a> <a href="https://seclists.org/oss-sec/2018/q3/233">https://seclists.org/oss-sec/2018/q3/233</a> Upstream Patches: <a href="https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=643b24db">https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=643b24db</a> <a href="https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=3e5d316b">https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=3e5d316b</a> <a href="https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=5812b1b7">https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=5812b1b7</a>

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
redhat/ghostscript<9.25
9.25
debian/ghostscript
9.53.3~dfsg-7+deb11u7
9.53.3~dfsg-7+deb11u9
10.0.0~dfsg-11+deb12u6
10.04.0~dfsg-2
Artifex Software Ghostscript<9.25
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Ubuntu Linux=14.04
Ubuntu Linux=16.04
Ubuntu Linux=18.04
redhat enterprise Linux desktop=7.0
redhat enterprise Linux server=7.0
redhat enterprise Linux server aus=7.6
redhat enterprise Linux server eus=7.6
redhat enterprise Linux server tus=7.6
redhat enterprise Linux workstation=7.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is the severity of CVE-2018-16802?

    The severity of CVE-2018-16802 is high with a CVSS score of 7.8.

  • How can attackers exploit CVE-2018-16802?

    Attackers can exploit CVE-2018-16802 by supplying crafted PostScript to execute code using the "pipe" instruction.

  • Which software versions are affected by CVE-2018-16802?

    The affected software versions include Artifex Ghostscript before 9.25, and certain versions of Ubuntu, Debian, Canonical Ubuntu Linux, and Red Hat Enterprise Linux Server.

  • What is the remedy for CVE-2018-16802?

    The remedy for CVE-2018-16802 is to update to Ghostscript version 9.25 or later.

  • Where can I find more information about CVE-2018-16802?

    You can find more information about CVE-2018-16802 at the following references: [Reference 1](https://seclists.org/oss-sec/2018/q3/228), [Reference 2](http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=3e5d316b72e3965b7968bb1d96baa137cd063ac6), [Reference 3](http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=643b24dbd002fb9c131313253c307cf3951b3d47).

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203