CVE-2020-27792
Ghostscript: heap buffer over write vulnerability in ghostscript's lp8000_print_page() in gdevlp8k.c
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.1
Ghostscript: heap buffer over write vulnerability in ghostscript's lp8000_print_page() in gdevlp8k.c
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.
- Record
CVE-2020-27792- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
EUVDEUVD-2020-20294
7.1
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.
- Record
EUVD-2020-20294- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-7h9w-vh8m-rj5g
7.1
A heap-based buffer over write vulnerability was found in GhostScript's lp8000_print_page()...
A heap-based buffer over write vulnerability was found in GhostScript's lp8000_print_page() function in gdevlp8k.c file. An attacker could trick a user to open a crafted PDF file, triggering the heap buffer overflow that could lead to memory corruption or a denial of service.
- Record
GHSA-7h9w-vh8m-rj5g- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Weakness
- CWE-119, CWE-122, CWE-400
- Updated
- 2026-11-02
NVD
7.1
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.
- Record
CVE-2020-27792- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
OSVBELL-CVE-2020-27792
7.1
CVE-2020-27792 does not affect BellSoft software
- Record
BELL-CVE-2020-27792- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Updated
- 2026-11-02
OSV
7.1
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.
- Record
CVE-2020-27792- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Updated
- 2026-11-02
Show 7 moreShow less
OSVDEBIAN-CVE-2020-27792
7.1
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.
- Record
DEBIAN-CVE-2020-27792- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2025:4362
7.8
Red Hat Security Advisory: ghostscript security update
- Record
RHSA-2025:4362- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRLSA-2025:4362
7.8
Moderate: ghostscript security update
The Ghostscript suite contains utilities for rendering PostScript and PDF documents. Ghostscript translates PostScript code to common bitmap formats so that the code can be displayed or printed.
Security Fix(es):
-
ghostscript: heap buffer over write vulnerability in GhostScript's lp8000_print_page() in gdevlp8k.c (CVE-2020-27792)
-
ghostscript: dangling pointer in gdev_prn_open_printer_seekable() (CVE-2023-46751)
-
ghostscript: Buffer Overflow in Ghostscript PDF XRef Stream Handling (CVE-2024-46952)
-
ghostscript: Arbitrary Code Execution in Artifex Ghostscript Pattern Color Space (CVE-2024-46951)
-
ghostscript: Directory Traversal in Ghostscript via Overlong UTF-8 Encoding (CVE-2024-46954)
-
ghostscript: Path Traversal and Code Execution via Integer Overflow in Ghostscript (CVE-2024-46953)
-
ghostscript: Out-of-Bounds Data Access in Ghostscript Leads to Arbitrary Code Execution (CVE-2024-46956)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
RLSA-2025:4362- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-27792
7.1
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.
- Record
UBUNTU-CVE-2020-27792- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Updated
- 2026-11-02
OSVALSA-2025:4362 No score
Moderate: ghostscript security update
The Ghostscript suite contains utilities for rendering PostScript and PDF documents. Ghostscript translates PostScript code to common bitmap formats so that the code can be displayed or printed.
Security Fix(es):
- ghostscript: heap buffer over write vulnerability in GhostScript's lp8000_print_page() in gdevlp8k.c (CVE-2020-27792)
- ghostscript: dangling pointer in gdev_prn_open_printer_seekable() (CVE-2023-46751)
- ghostscript: Buffer Overflow in Ghostscript PDF XRef Stream Handling (CVE-2024-46952)
- ghostscript: Arbitrary Code Execution in Artifex Ghostscript Pattern Color Space (CVE-2024-46951)
- ghostscript: Directory Traversal in Ghostscript via Overlong UTF-8 Encoding (CVE-2024-46954)
- ghostscript: Path Traversal and Code Execution via Integer Overflow in Ghostscript (CVE-2024-46953)
- ghostscript: Out-of-Bounds Data Access in Ghostscript Leads to Arbitrary Code Execution (CVE-2024-46956)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
- Record
ALSA-2025:4362- Updated
- 2026-11-02
OSVUSN-5618-1 No score
ghostscript vulnerability
It was discovered the Ghostscript incorrectly handled memory when processing certain inputs. By tricking a user into opening a specially crafted PDF file, an attacker could cause the program to crash.
- Record
USN-5618-1- Updated
- 2026-11-02
OSVUSN-5643-1 No score
ghostscript vulnerabilities
It was discovered that GhostScript incorrectly handled certain PDF files. If a user or automated system were tricked into opening a specially crafted PDF file, a remote attacker could use this issue to cause GhostScript to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2020-27792)
It was discovered that GhostScript incorrectly handled certain PDF files. If a user or automated system were tricked into opening a specially crafted PDF file, a remote attacker could use this issue to cause GhostScript to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only affected Ubuntu 22.04 LTS. (CVE-2022-2085)
- Record
USN-5643-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
ghostscriptAlmaLinux:8 |
before 9.27-16.el8_10 | 9.27-16.el8_10 |
ghostscript-docAlmaLinux:8 |
before 9.27-16.el8_10 | 9.27-16.el8_10 |
ghostscript-tools-dvipdfAlmaLinux:8 |
before 9.27-16.el8_10 | 9.27-16.el8_10 |
ghostscript-tools-fontsAlmaLinux:8 |
before 9.27-16.el8_10 | 9.27-16.el8_10 |
ghostscript-tools-printingAlmaLinux:8 |
before 9.27-16.el8_10 | 9.27-16.el8_10 |
ghostscript-x11AlmaLinux:8 |
before 9.27-16.el8_10 | 9.27-16.el8_10 |
libgsAlmaLinux:8 |
before 9.27-16.el8_10 | 9.27-16.el8_10 |
libgs-develAlmaLinux:8 |
before 9.27-16.el8_10 | 9.27-16.el8_10 |
ghostscriptDebian:12 |
before 9.51~dfsg-1 | 9.51~dfsg-1 |
ghostscriptDebian:13 |
before 9.51~dfsg-1 | 9.51~dfsg-1 |
Show 25 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ghostscriptDebian:14 |
before 9.51~dfsg-1 | 9.51~dfsg-1 |
ghostscriptDebian:10 |
before 9.27~dfsg-2+deb10u6, plus listed versions 9.27~dfsg-29.27~dfsg-2+deb10u19.27~dfsg-2+deb10u29.27~dfsg-2+deb10u39.27~dfsg-2+deb10u49.27~dfsg-2+deb10u5 |
9.27~dfsg-2+deb10u6 |
ghostscriptRed Hat:enterprise_linux:8::appstream |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-debugsourceRed Hat:enterprise_linux:8::appstream |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-gtk-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-x11Red Hat:enterprise_linux:8::appstream |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-x11-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
libgsRed Hat:enterprise_linux:8::appstream |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
libgs-debuginfoRed Hat:enterprise_linux:8::appstream |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-debugsourceRed Hat:enterprise_linux:8::crb |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-docRed Hat:enterprise_linux:8::crb |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-gtk-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-tools-dvipdfRed Hat:enterprise_linux:8::crb |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-tools-fontsRed Hat:enterprise_linux:8::crb |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-tools-printingRed Hat:enterprise_linux:8::crb |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscript-x11-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
libgs-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
libgs-develRed Hat:enterprise_linux:8::crb |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscriptRocky Linux:8 |
before 0:9.27-16.el8_10 | 0:9.27-16.el8_10 |
ghostscriptUbuntu:Pro:16.04:LTS |
before 9.26~dfsg+0-0ubuntu0.16.04.14+esm4, plus listed versions 9.16~dfsg~0-0ubuntu39.16~dfsg~0-0ubuntu49.18~dfsg~0-0ubuntu19.18~dfsg~0-0ubuntu29.18~dfsg~0-0ubuntu2.2 Show 25 moreShow less9.18~dfsg~0-0ubuntu2.39.18~dfsg~0-0ubuntu2.49.18~dfsg~0-0ubuntu2.69.18~dfsg~0-0ubuntu2.79.18~dfsg~0-0ubuntu2.89.18~dfsg~0-0ubuntu2.99.25~dfsg+1-0ubuntu0.16.04.19.25~dfsg+1-0ubuntu0.16.04.29.25~dfsg+1-0ubuntu0.16.04.39.26~dfsg+0-0ubuntu0.16.04.19.26~dfsg+0-0ubuntu0.16.04.39.26~dfsg+0-0ubuntu0.16.04.49.26~dfsg+0-0ubuntu0.16.04.59.26~dfsg+0-0ubuntu0.16.04.69.26~dfsg+0-0ubuntu0.16.04.79.26~dfsg+0-0ubuntu0.16.04.89.26~dfsg+0-0ubuntu0.16.04.99.26~dfsg+0-0ubuntu0.16.04.109.26~dfsg+0-0ubuntu0.16.04.119.26~dfsg+0-0ubuntu0.16.04.129.26~dfsg+0-0ubuntu0.16.04.139.26~dfsg+0-0ubuntu0.16.04.149.26~dfsg+0-0ubuntu0.16.04.14+esm19.26~dfsg+0-0ubuntu0.16.04.14+esm29.26~dfsg+0-0ubuntu0.16.04.14+esm3 |
9.26~dfsg+0-0ubuntu0.16.04.14+esm4 |
ghostscriptUbuntu:18.04:LTS |
before 9.26~dfsg+0-0ubuntu0.18.04.17, plus listed versions 9.21~dfsg+1-0ubuntu39.22~dfsg+1-0ubuntu19.22~dfsg+1-0ubuntu1.19.22~dfsg+1-0ubuntu1.29.25~dfsg+1-0ubuntu0.18.04.1 Show 16 moreShow less9.25~dfsg+1-0ubuntu0.18.04.29.26~dfsg+0-0ubuntu0.18.04.19.26~dfsg+0-0ubuntu0.18.04.39.26~dfsg+0-0ubuntu0.18.04.49.26~dfsg+0-0ubuntu0.18.04.59.26~dfsg+0-0ubuntu0.18.04.69.26~dfsg+0-0ubuntu0.18.04.79.26~dfsg+0-0ubuntu0.18.04.89.26~dfsg+0-0ubuntu0.18.04.99.26~dfsg+0-0ubuntu0.18.04.109.26~dfsg+0-0ubuntu0.18.04.119.26~dfsg+0-0ubuntu0.18.04.129.26~dfsg+0-0ubuntu0.18.04.139.26~dfsg+0-0ubuntu0.18.04.149.26~dfsg+0-0ubuntu0.18.04.159.26~dfsg+0-0ubuntu0.18.04.16 |
9.26~dfsg+0-0ubuntu0.18.04.17 |
ghostscriptUbuntu:20.04:LTS |
before 9.50~dfsg-5ubuntu4.6, plus listed versions 9.27~dfsg+0-0ubuntu39.27~dfsg+0-0ubuntu49.50~dfsg-5ubuntu19.50~dfsg-5ubuntu29.50~dfsg-5ubuntu3 Show 6 moreShow less9.50~dfsg-5ubuntu49.50~dfsg-5ubuntu4.19.50~dfsg-5ubuntu4.29.50~dfsg-5ubuntu4.39.50~dfsg-5ubuntu4.49.50~dfsg-5ubuntu4.5 |
9.50~dfsg-5ubuntu4.6 |
ghostscriptUbuntu:22.04:LTS |
before 9.55.0~dfsg1-0ubuntu5.1, plus listed versions 9.54.0~dfsg1-0ubuntu29.55.0~dfsg1-0ubuntu49.55.0~dfsg1-0ubuntu5 |
9.55.0~dfsg1-0ubuntu5.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-27792 is a high vulnerability (CVSS 7.1) in Artifex Ghostscript, published August 19, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.47%, the 40th percentile. Fixed in ghostscript 9.27-16.el8_10.
References
access.redhat.com/errata/RHSA-2025:4362
access.redhat.com/security/cve/CVE-2020-27792
bugzilla.redhat.com/show_bug.cgi?id=2247179
git.ghostscript.com?p=ghostpdl.git;a=commitdiff;h=4f6bc662909ab79e8fbe9822afb36e8a0eafc2b7
bugs.ghostscript.com/show_bug.cgi?id=701844
git.ghostscript.com?p=ghostpdl.git%3Ba=commitdiff%3Bh=4f6bc662909ab79e8fbe9822afb36e8a0eafc2b7
Show 57 moreShow less
lists.debian.org/debian-lts-announce/2022/09/msg00005.html
nvd.nist.gov/vuln/detail/CVE-2020-27792
github.com/advisories/GHSA-7h9w-vh8m-rj5g
access.redhat.com/security/cve/CVE-2023-46751
access.redhat.com/security/cve/CVE-2024-46951
access.redhat.com/security/cve/CVE-2024-46952
access.redhat.com/security/cve/CVE-2024-46953
access.redhat.com/security/cve/CVE-2024-46954
access.redhat.com/security/cve/CVE-2024-46956
bugzilla.redhat.com/2247179
bugzilla.redhat.com/2253365
bugzilla.redhat.com/2325041
bugzilla.redhat.com/2325043
bugzilla.redhat.com/2325044
bugzilla.redhat.com/2325045
bugzilla.redhat.com/2325047
errata.almalinux.org/8/ALSA-2025-4362.html
docs.bell-sw.com/security/cves/CVE-2020-27792
security-tracker.debian.org/tracker/CVE-2020-27792
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2253365
bugzilla.redhat.com/show_bug.cgi?id=2325041
bugzilla.redhat.com/show_bug.cgi?id=2325043
bugzilla.redhat.com/show_bug.cgi?id=2325044
bugzilla.redhat.com/show_bug.cgi?id=2325045
bugzilla.redhat.com/show_bug.cgi?id=2325047
security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_4362.json
cve.org/CVERecord?id=CVE-2020-27792
cve.org/CVERecord?id=CVE-2023-46751
nvd.nist.gov/vuln/detail/CVE-2023-46751
cve.org/CVERecord?id=CVE-2024-46951
nvd.nist.gov/vuln/detail/CVE-2024-46951
bugs.ghostscript.com/show_bug.cgi?id=707991
cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit?id=f49812186baa7d1362880673408a6fbe8719b4f8
github.com/ArtifexSoftware/ghostpdl/blob/master/doc/News.html
suse.com/support/update/announcement/2024/suse-su-20243942-1
cve.org/CVERecord?id=CVE-2024-46952
nvd.nist.gov/vuln/detail/CVE-2024-46952
bugs.ghostscript.com/show_bug.cgi?id=708001
cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit?id=b1f0827c30f59a2dcbc8a39e42cace7a1de35f7f
cve.org/CVERecord?id=CVE-2024-46953
nvd.nist.gov/vuln/detail/CVE-2024-46953
bugs.ghostscript.com/show_bug.cgi?id=707793
cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit?id=1f21a45df0fa3abec4cff12951022b192dda3c00
cve.org/CVERecord?id=CVE-2024-46954
nvd.nist.gov/vuln/detail/CVE-2024-46954
bugs.ghostscript.com/show_bug.cgi?id=707788
cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit?id=55f587dd039282316f512e1bea64218fd991f934
cve.org/CVERecord?id=CVE-2024-46956
nvd.nist.gov/vuln/detail/CVE-2024-46956
bugs.ghostscript.com/show_bug.cgi?id=707895
cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit?id=f4151f12db32cd3ed26c24327de714bf2c3ed6ca
errata.rockylinux.org/RLSA-2025:4362
ubuntu.com/security/CVE-2020-27792
ubuntu.com/security/notices/USN-5618-1
ubuntu.com/security/notices/USN-5643-1
ubuntu.com/security/CVE-2022-2085