Heap-based Buffer Overflow Affecting OpenPrinting/cups package, versions [,2.4.7)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-OPENPRINTINGCUPS-5914927
  • published22 Sept 2023
  • disclosed20 Sept 2023
  • creditzenofex, WanderingGlitch

Introduced: 20 Sep 2023

CVE-2023-4504  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade OpenPrinting/cups to version 2.4.7 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow due to improper checks in raster-interpret.c file. An attacker can execute arbitrary code by providing a maliciously crafted CUPS document.

Note: This is only exploitable if the victim installs a PPD file (driver) that contains the crafted PS sequence.

CVSS Scores

version 3.1