CVE-2023-4504
NixOS vulnerability analysis and mitigation

Overview

CVE-2023-4504 affects CUPS (Common UNIX Printing System) and libppd, discovered in September 2023. The vulnerability stems from a failure in validating the length provided by an attacker-crafted PPD PostScript document, making these systems susceptible to a heap-based buffer overflow. The issue affects CUPS versions prior to 2.4.7 and libppd version 2.0rc2 (CUPS Advisory, LibPPD Advisory).

Technical details

The vulnerability exists in the scan_ps function, which scans through a string looking for the next PostScript object. When processing a string containing an open parenthesis and ending with a single backslash character, the code incorrectly iterates forward without proper bounds checking, resulting in a 1-byte read beyond the allocated heap buffer. The vulnerability has been assigned a CVSS v3.1 base score of 7.0 HIGH with vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability could potentially lead to code execution on affected systems. When exploited, an attacker could compromise the machine running the affected software, either CUPS or another application using the libppd library, potentially gaining a privileged position in the targeted network (CUPS Advisory).

Mitigation and workarounds

The vulnerability has been fixed in CUPS version 2.4.7, released in September 2023. Users are advised to upgrade to this version or later. Various Linux distributions have also released security updates, including Fedora 37, 38, and 39, and Debian (Debian Advisory, Fedora Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management