Vulnerabilities / CVE-2016-7978

critical

CVE-2016-7978

ghostscript: reference leak in .setdevice allows use-after-free and remote code execution

Published Modified CWE 416
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat5.8CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Oracle (medium), Ubuntu (medium).

Description

Use-after-free vulnerability in Ghostscript 9.20 might allow remote attackers to execute arbitrary code via vectors related to a reference leak in .setdevice.

Affected packages and fixed versions

SourcePackageFixed in
debian 11ghostscript9.19~dfsg-3.1
debian 12ghostscript9.19~dfsg-3.1
debian 13ghostscript9.19~dfsg-3.1
debian 14ghostscript9.19~dfsg-3.1
debian 7ghostscript9.05~dfsg-6.3+deb7u3
debian 8ghostscript9.06~dfsg-2+deb8u3
echoghostscript9.19~dfsg-3.1
Oracle Linux 7ghostscript, ghostscript-cups, ghostscript-devel and 2 more9.07-20.el7_3.1
root.io debian 12rootio-ghostscript9.19~dfsg-3.1
ubuntu 12.04ghostscript9.05~dfsg-0ubuntu4.4
ubuntu 14.04ghostscript9.10~dfsg-0ubuntu10.5
ubuntu 16.04ghostscript9.18~dfsg~0-0ubuntu2.2
Show all 18 entries from 14 sources
SourcePackageFixed in
debian 11ghostscript9.19~dfsg-3.1
debian 12ghostscript9.19~dfsg-3.1
debian 13ghostscript9.19~dfsg-3.1
debian 14ghostscript9.19~dfsg-3.1
debian 7ghostscript9.05~dfsg-6.3+deb7u3
debian 8ghostscript9.06~dfsg-2+deb8u3
echoghostscript9.19~dfsg-3.1
Oracle Linux 7ghostscript9.07-20.el7_3.1
Oracle Linux 7ghostscript-cups9.07-20.el7_3.1
Oracle Linux 7ghostscript-devel9.07-20.el7_3.1
Oracle Linux 7ghostscript-doc9.07-20.el7_3.1
Oracle Linux 7ghostscript-gtk9.07-20.el7_3.1
root.io debian 12rootio-ghostscript9.19~dfsg-3.1
ubuntu 12.04ghostscript9.05~dfsg-0ubuntu4.4
ubuntu 14.04ghostscript9.10~dfsg-0ubuntu10.5
ubuntu 16.04ghostscript9.18~dfsg~0-0ubuntu2.2
ubuntu 16.04-ESMghostscript9.18~dfsg~0-0ubuntu2.2
ubuntu 16.10ghostscript9.19~dfsg+1-0ubuntu6.2

References

All 13 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.