Every CVE Search/ Get API key

CVE-2020-27792

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

7.1 HighFix available

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

0.47%Down 0.4 points since Aug 20, 2022
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
ghostscript
AlmaLinux:8
before 9.27-16.el8_10
9.27-16.el8_10
ghostscript-doc
AlmaLinux:8
before 9.27-16.el8_10
9.27-16.el8_10
ghostscript-tools-dvipdf
AlmaLinux:8
before 9.27-16.el8_10
9.27-16.el8_10
ghostscript-tools-fonts
AlmaLinux:8
before 9.27-16.el8_10
9.27-16.el8_10
ghostscript-tools-printing
AlmaLinux:8
before 9.27-16.el8_10
9.27-16.el8_10
ghostscript-x11
AlmaLinux:8
before 9.27-16.el8_10
9.27-16.el8_10
libgs
AlmaLinux:8
before 9.27-16.el8_10
9.27-16.el8_10
libgs-devel
AlmaLinux:8
before 9.27-16.el8_10
9.27-16.el8_10
ghostscript
Debian:12
before 9.51~dfsg-1
9.51~dfsg-1
ghostscript
Debian:13
before 9.51~dfsg-1
9.51~dfsg-1
Show 25 moreShow less
Affected packages
PackageAffectedFixed
ghostscript
Debian:14
before 9.51~dfsg-1
9.51~dfsg-1
ghostscript
Debian: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
ghostscript
Red Hat:enterprise_linux:8::appstream
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-debugsource
Red Hat:enterprise_linux:8::appstream
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-gtk-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-x11
Red Hat:enterprise_linux:8::appstream
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-x11-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:9.27-16.el8_10
0:9.27-16.el8_10
libgs
Red Hat:enterprise_linux:8::appstream
before 0:9.27-16.el8_10
0:9.27-16.el8_10
libgs-debuginfo
Red Hat:enterprise_linux:8::appstream
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-debugsource
Red Hat:enterprise_linux:8::crb
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-doc
Red Hat:enterprise_linux:8::crb
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-gtk-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-tools-dvipdf
Red Hat:enterprise_linux:8::crb
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-tools-fonts
Red Hat:enterprise_linux:8::crb
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-tools-printing
Red Hat:enterprise_linux:8::crb
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript-x11-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:9.27-16.el8_10
0:9.27-16.el8_10
libgs-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:9.27-16.el8_10
0:9.27-16.el8_10
libgs-devel
Red Hat:enterprise_linux:8::crb
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript
Rocky Linux:8
before 0:9.27-16.el8_10
0:9.27-16.el8_10
ghostscript
Ubuntu: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 less
9.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
ghostscript
Ubuntu: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 less
9.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
ghostscript
Ubuntu: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 less
9.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
ghostscript
Ubuntu: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

History
RecordedChangedSources
first indexedCVE 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

Show 57 moreShow less
MoveEnter Open