CVE-2020-36773
Ghostscript: out-of-bounds write and use-after-free in devices/vector/gdevtxtw.c (for txtwrite)
Severity by source
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
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 2 | ghostscript, ghostscript-cups, ghostscript-debuginfo and 4 more | 9.25-5.amzn2.0.9 |
| debian 11 | ghostscript | 9.53.0~dfsg-1 |
| debian 12 | ghostscript | 9.53.0~dfsg-1 |
| debian 13 | ghostscript | 9.53.0~dfsg-1 |
| debian 14 | ghostscript | 9.53.0~dfsg-1 |
| echo | ghostscript | 9.53.0~dfsg-1 |
| root.io debian 12 | rootio-ghostscript | 9.53.0~dfsg-1 |
Show all 13 entries from 7 sources
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 2 | ghostscript | 9.25-5.amzn2.0.9 |
| amazon linux 2 | ghostscript-cups | 9.25-5.amzn2.0.9 |
| amazon linux 2 | ghostscript-debuginfo | 9.25-5.amzn2.0.9 |
| amazon linux 2 | ghostscript-doc | 9.25-5.amzn2.0.9 |
| amazon linux 2 | ghostscript-gtk | 9.25-5.amzn2.0.9 |
| amazon linux 2 | libgs | 9.25-5.amzn2.0.9 |
| amazon linux 2 | libgs-devel | 9.25-5.amzn2.0.9 |
| debian 11 | ghostscript | 9.53.0~dfsg-1 |
| debian 12 | ghostscript | 9.53.0~dfsg-1 |
| debian 13 | ghostscript | 9.53.0~dfsg-1 |
| debian 14 | ghostscript | 9.53.0~dfsg-1 |
| echo | ghostscript | 9.53.0~dfsg-1 |
| root.io debian 12 | rootio-ghostscript | 9.53.0~dfsg-1 |
References
- https://access.redhat.com/security/cve/CVE-2020-36773
- https://bugs.ghostscript.com/show_bug.cgi?id=702229
- https://bugzilla.opensuse.org/show_bug.cgi?id=1177922
- https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=8c7bd787defa071c96289b7da9397f673fddb874
- https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/tag/gs9530
- https://nvd.nist.gov/vuln/detail/CVE-2020-36773
- https://www.cve.org/CVERecord?id=CVE-2020-36773