---
id: CVE-2020-27792
title: >-
  Ghostscript: heap buffer over write vulnerability in ghostscript's
  lp8000_print_page() in gdevlp8k.c
summary: >-
  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…
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-119
vendor: Red Hat
product: ghostscript
affected:
  - ghostscript (all versions)
  - ghostscript
  - ghostscript
  - ghostscript
published: '2022-08-19'
updated: '2026-11-07'
sourceUpdated: '2026-11-07T13:41:30.506Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2020-27792'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2025:4362'
    label: 'RHSA-2025:4362'
  - url: 'https://access.redhat.com/security/cve/CVE-2020-27792'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2247179'
    label: RHBZ#2247179
  - url: >-
      https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=4f6bc662909ab79e8fbe9822afb36e8a0eafc2b7
tags:
  - cve.org
epss: 0.00468
epssPercentile: 0.40715
ingestedAt: '2026-11-07T14:18:21.473Z'
---

## Overview

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

- `ghostscript (all versions)`
- `ghostscript`
- `ghostscript`
- `ghostscript`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

### Workarounds

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.
