Skip to content
OpenAdvisories
High · 7.1 CVE-2020-27792 EUVD-2020-20294GHSA-7h9w-vh8m-rj5g

Ghostscript: heap buffer over write vulnerability in ghostscript's lp8000_print_page() in gdevlp8k.c

Published Aug 19, 2022 · Updated Nov 7, 2026 · Assigned by redhat

Description

A heap-based buffer overwrite vulnerability was found in GhostScript's lp8000_print_page() function in the gdevlp8k.c file. This flaw allows an attacker to trick a user into opening a crafted PDF file, triggering the heap buffer overflow that could lead to memory corruption or a denial of service.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Enterprise Linux 9 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ghostscript 9.51~dfsg-1 —
Debian 13 ghostscript 9.51~dfsg-1 —
Debian 12 ghostscript 9.51~dfsg-1 —
Debian 10 ghostscript 9.27~dfsg-2+deb10u6 DLA-3096-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS ghostscript 9.55.0~dfsg1-0ubuntu5.1 USN-5643-1
Ubuntu 20.04 LTS ghostscript 9.50~dfsg-5ubuntu4.6 USN-5643-1
Ubuntu 18.04 LTS ghostscript 9.26~dfsg+0-0ubuntu0.18.04.17 USN-5643-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS ghostscript 9.26~dfsg+0-0ubuntu0.16.04.14+esm4 USN-5618-1
ReleasePackageFixed inAdvisory
RHEL 8 libgs +7 9.27-16.el8_10 RHSA-2025:4362

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 libgs +7 9.27-16.el8_10 ALSA-2025:4362

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 ghostscript 9.27-16.el8_10 RLSA-2025:4362

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 libgs +5 9.25-5.amzn2.0.1 ALAS2-2023-1947

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 libgs +7 9.27-16.el8_10 ELSA-2025-4362

Advisories 9

References