CVE-2020-27792Ghostscript: heap buffer over write vulnerability in ghostscript's lp8000_print_page()…
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | ghostscript | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | ghostscript | Fixed | 9.50~dfsg-5ubuntu4.6 | UBUNTU-CVE-2020-27792 |
| Ubuntu 18.04 | ghostscript | Fixed | 9.26~dfsg+0-0ubuntu0.18.04.17 | UBUNTU-CVE-2020-27792 |
| Ubuntu 16.04 | ghostscript | Fix pending | 9.26~dfsg+0-0ubuntu0.16.04.14+esm4 (Ubuntu Pro) | UBUNTU-CVE-2020-27792 |
| Ubuntu 14.04 | ghostscript | Fix pending | ||
| Debian 14 | ghostscript | Fixed | 9.51~dfsg-1 | DEBIAN-CVE-2020-27792 |
| Debian 13 | ghostscript | Fixed | 9.51~dfsg-1 | DEBIAN-CVE-2020-27792 |
| Debian 12 | ghostscript | Fixed | 9.51~dfsg-1 | DEBIAN-CVE-2020-27792 |
| Red Hat Enterprise Linux 9 | ghostscript | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-tools-dvipdf | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-tools-fonts | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-tools-printing | Not affected | ||
| Red Hat Enterprise Linux 9 | ghostscript-x11 | Not affected | ||
| Red Hat Enterprise Linux 9 | libgs | Not affected | ||
| Red Hat Enterprise Linux 9 | libgs-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | ghostscript | Fixed | 0:9.27-16.el8_10 | RHSA-2025:4362 |
| Red Hat Enterprise Linux 8 | ghostscript-doc | Fixed | 0:9.27-16.el8_10 | RHSA-2025:4362 |
| Red Hat Enterprise Linux 8 | ghostscript-tools-dvipdf | Fixed | 0:9.27-16.el8_10 | RHSA-2025:4362 |
| Red Hat Enterprise Linux 8 | ghostscript-tools-fonts | Fixed | 0:9.27-16.el8_10 | RHSA-2025:4362 |
| Red Hat Enterprise Linux 8 | ghostscript-tools-printing | Fixed | 0:9.27-16.el8_10 | RHSA-2025:4362 |
| Red Hat Enterprise Linux 8 | ghostscript-x11 | Fixed | 0:9.27-16.el8_10 | RHSA-2025:4362 |
| Red Hat Enterprise Linux 8 | libgs | Fixed | 0:9.27-16.el8_10 | RHSA-2025:4362 |
| Red Hat Enterprise Linux 8 | libgs-devel | Fixed | 0:9.27-16.el8_10 | RHSA-2025:4362 |
| Red Hat Enterprise Linux 7 | ghostscript | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ghostscript-cups | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ghostscript-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ghostscript-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ghostscript-gtk | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgs-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ghostscript | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ghostscript-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ghostscript-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ghostscript-gtk | Will not fix Out of support scope | ||
| AlmaLinux 8 | ghostscript | Fixed | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux 8 | ghostscript-doc | Fixed | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux 8 | ghostscript-tools-dvipdf | Fixed | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux 8 | ghostscript-tools-fonts | Fixed | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux 8 | ghostscript-tools-printing | Fixed | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux 8 | ghostscript-x11 | Fixed | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux 8 | libgs | Fixed | 9.27-16.el8_10 | ALSA-2025:4362 |
| AlmaLinux 8 | libgs-devel | Fixed | 9.27-16.el8_10 | ALSA-2025:4362 |
| Rocky Linux 8 | ghostscript | Fixed | 0:9.27-16.el8_10 | RLSA-2025:4362 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 9
Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2025:4362 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2025:4362
- https://access.redhat.com/security/cve/CVE-2020-27792
- https://bugzilla.redhat.com/show_bug.cgi?id=2247179
- https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=4f6bc662909ab79e8fbe9822afb36e8a0eafc2b7
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.