Vulnerabilities / CVE-2020-36773

critical

CVE-2020-36773

Ghostscript: out-of-bounds write and use-after-free in devices/vector/gdevtxtw.c (for txtwrite)

Published Modified CWE 416, 787
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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high), Amazon (high).

Description

Artifex Ghostscript before 9.53.0 has an out-of-bounds write and use-after-free in devices/vector/gdevtxtw.c (for txtwrite) because a single character code in a PDF document can map to more than one Unicode code point (e.g., for a ligature).

Affected packages and fixed versions

SourcePackageFixed in
amazon linux 2ghostscript, ghostscript-cups, ghostscript-debuginfo and 4 more9.25-5.amzn2.0.9
debian 11ghostscript9.53.0~dfsg-1
debian 12ghostscript9.53.0~dfsg-1
debian 13ghostscript9.53.0~dfsg-1
debian 14ghostscript9.53.0~dfsg-1
echoghostscript9.53.0~dfsg-1
root.io debian 12rootio-ghostscript9.53.0~dfsg-1
Show all 13 entries from 7 sources
SourcePackageFixed in
amazon linux 2ghostscript9.25-5.amzn2.0.9
amazon linux 2ghostscript-cups9.25-5.amzn2.0.9
amazon linux 2ghostscript-debuginfo9.25-5.amzn2.0.9
amazon linux 2ghostscript-doc9.25-5.amzn2.0.9
amazon linux 2ghostscript-gtk9.25-5.amzn2.0.9
amazon linux 2libgs9.25-5.amzn2.0.9
amazon linux 2libgs-devel9.25-5.amzn2.0.9
debian 11ghostscript9.53.0~dfsg-1
debian 12ghostscript9.53.0~dfsg-1
debian 13ghostscript9.53.0~dfsg-1
debian 14ghostscript9.53.0~dfsg-1
echoghostscript9.53.0~dfsg-1
root.io debian 12rootio-ghostscript9.53.0~dfsg-1

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.