CVE-2018-16540
published 2018-09-05CVE-2018-16540: In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files to the builtin PDF14 converter could use a use-after-free in copydevice…
PriorityP335high7.8CVSS 3.0
AVLACLPRNUIRSUCHIHAH
EPSS
1.56%
72.5th percentile
In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files to the builtin PDF14 converter could use a use-after-free in copydevice handling to crash the interpreter or possibly have unspecified other impact.
Affected
21 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| artifex | ghostscript | < 9.24 | 9.24 |
| artifex | ghostscript | >= 0 < 9.22~dfsg-3 | 9.22~dfsg-3 |
| artifex | ghostscript | >= 0 < 9.22~dfsg-3 | 9.22~dfsg-3 |
| artifex | ghostscript | >= 0 < 9.22~dfsg-3 | 9.22~dfsg-3 |
| artifex | ghostscript | >= 0 < 9.22~dfsg-3 | 9.22~dfsg-3 |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | ghostscript | < ghostscript 9.22~dfsg-3 (bookworm) | ghostscript 9.22~dfsg-3 (bookworm) |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_server_aus | — | — |
| redhat | enterprise_linux_server_eus | — | — |
| redhat | enterprise_linux_server_eus | — | — |
| redhat | enterprise_linux_server_tus | — | — |
| redhat | enterprise_linux_workstation | — | — |
| redhat | openshift_container_platform | — | — |
CVSS provenance
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8HIGH
vendor_redhat7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Ghostscript vulnerabilities
vendor_ubuntu·2018-09-19
CVE-2018-11645 Ghostscript vulnerabilities
Title: Ghostscript vulnerabilities
Summary: Several security issues were fixed in Ghostscript.
Tavis Ormandy discovered multiple security issues in Ghostscript. If a user
or automated system were tricked into processing a specially crafted file,
a remote attacker could possibly use these issues to access arbitrary
files, execute arbitrary code, or cause a denial of service.
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
ghostscript: use-after-free in copydevice handling (699661)
vendor_redhat·2018-09-06·CVSS 7.8
CVE-2018-16540 [HIGH] CWE-416 ghostscript: use-after-free in copydevice handling (699661)
ghostscript: use-after-free in copydevice handling (699661)
In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files to the builtin PDF14 converter could use a use-after-free in copydevice handling to crash the interpreter or possibly have unspecified other impact.
It was discovered that the ghostscript PDF14 compositor did not properly handle the copying of a device. An attacker could possibly exploit this to bypass the -dSAFER protection and crash ghostscript or, possibly, execute arbitrary code in the ghostscript context via a specially crafted PostScript document.
Statement: This issue affects the versions of ghostscript as shipped with Red Hat Enterprise Linux 5, 6, and 7.
Red Hat Enterprise Linux 6 is now in Maintenance Support 2 Phase of the support a
Debian
CVE-2018-16540: ghostscript - In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript ...
vendor_debian·2018·CVSS 7.8
CVE-2018-16540 [HIGH] CVE-2018-16540: ghostscript - In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript ...
In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files to the builtin PDF14 converter could use a use-after-free in copydevice handling to crash the interpreter or possibly have unspecified other impact.
Scope: local
bookworm: resolved (fixed in 9.22~dfsg-3)
bullseye: resolved (fixed in 9.22~dfsg-3)
forky: resolved (fixed in 9.22~dfsg-3)
sid: resolved (fixed in 9.22~dfsg-3)
trixie: resolved (fixed in 9.22~dfsg-3)
GHSA
GHSA-685m-wc38-2pv8: In Artifex Ghostscript before 9
ghsa_unreviewed·2022-05-14
CVE-2018-16540 [HIGH] CWE-416 GHSA-685m-wc38-2pv8: In Artifex Ghostscript before 9
In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files to the builtin PDF14 converter could use a use-after-free in copydevice handling to crash the interpreter or possibly have unspecified other impact.
OSV
CVE-2018-16540: In Artifex Ghostscript before 9
osv·2018-09-05·CVSS 7.8
CVE-2018-16540 [HIGH] CVE-2018-16540: In Artifex Ghostscript before 9
In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files to the builtin PDF14 converter could use a use-after-free in copydevice handling to crash the interpreter or possibly have unspecified other impact.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2018-16540 ghostscript: use-after-free in copydevice handling (699661)
bugzilla·2018-09-06·CVSS 7.8
CVE-2018-16540 [HIGH] CVE-2018-16540 ghostscript: use-after-free in copydevice handling (699661)
CVE-2018-16540 ghostscript: use-after-free in copydevice handling (699661)
In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files to the builtin PDF14 converter could use a use-after-free in copydevice handling to crash the interpreter or possibly have unspecified other impact.
External Reference:
https://www.kb.cert.org/vuls/id/332928
https://www.artifex.com/news/ghostscript-security-resolved/
Upstream Bug:
https://bugs.ghostscript.com/show_bug.cgi?id=699661
Upstream Patch:
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=c432131c
Discussion:
Created ghostscript tracking bugs for this issue:
Affects: fedora-all [bug 1625844]
---
Statement:
This issue affects the versions of ghostscript as shipped with Red Hat Enterprise Linux 5, 6, and 7
Bugzilla
CVE-2018-16540 ghostscript: use-after-free in copydevice handling (699661) [fedora-all]
bugzilla·2018-09-06·CVSS 7.8
CVE-2018-16540 [HIGH] CVE-2018-16540 ghostscript: use-after-free in copydevice handling (699661) [fedora-all]
CVE-2018-16540 ghostscript: use-after-free in copydevice handling (699661) [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supporte
http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=c432131c3fdb2143e148e8ba88555f7f7a63b25ehttps://access.redhat.com/errata/RHBA-2019:0327https://access.redhat.com/errata/RHSA-2019:0229https://bugs.ghostscript.com/show_bug.cgi?id=699661https://lists.debian.org/debian-lts-announce/2018/09/msg00015.htmlhttps://security.gentoo.org/glsa/201811-12https://usn.ubuntu.com/3768-1/https://www.artifex.com/news/ghostscript-security-resolved/https://www.debian.org/security/2018/dsa-4288http://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=c432131c3fdb2143e148e8ba88555f7f7a63b25ehttps://access.redhat.com/errata/RHBA-2019:0327https://access.redhat.com/errata/RHSA-2019:0229https://bugs.ghostscript.com/show_bug.cgi?id=699661https://lists.debian.org/debian-lts-announce/2018/09/msg00015.htmlhttps://security.gentoo.org/glsa/201811-12https://usn.ubuntu.com/3768-1/https://www.artifex.com/news/ghostscript-security-resolved/https://www.debian.org/security/2018/dsa-4288
2018-09-05
Published