Skip to main content
Public proof of conceptFix available

CVE-2023-4504

A public proof of concept exists; no exploitation attested.

  • Published2023-09-21
  • WeaknessCWE-122 · CWE-787

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

Due to failure in validating the length provided by an attacker-crafted PPD PostScript document, CUPS and libppd are susceptible to a heap-based buffer overflow and possibly code execution. This issue has been fixed in CUPS version 2.4.7, released in September of 2023.

Timeline

dates in UTC
  1. 2023-09-2123:15CVE publishedNVD

Versions per branch

NVD
Fedoraproject fedora
BranchAffectedFixed in
37.x= 37no fix published
38.x= 38no fix published
39.x= 39no fix published
Debian debian linux
BranchAffectedFixed in
10.0= 10.0no fix published
Openprinting cups
BranchAffectedFixed in
2.4< 2.4.72.4.7

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As AHA, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • OpenPrinting CUPSother versions: not affected
    Affected
    • < 2.4.6fixed in 2.4.6semver
  • OpenPrinting libppdother versions: not affected
    Affected
    • < d09348bfixed in d09348bgit

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-10-07

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • cupsWolfiall versions · fixed in 2.4.7-r0
  • cupsUbuntu:Pro:18.04:LTSall versions · fixed in 2.2.7-1ubuntu2.10+esm2
  • cupsUbuntu:Pro:16.04:LTSall versions · fixed in 2.1.3-4ubuntu0.11+esm4
  • cupsUbuntu:22.04:LTSall versions · fixed in 2.4.1op1-1ubuntu4.7
  • cupsUbuntu:20.04:LTSall versions · fixed in 2.3.1-9ubuntu1.6
  • cupsTuxCare:Ubuntu:18.04all versions · fixed in 2.2.7-1ubuntu2.10+tuxcare.els2and 15 other packages
  • cupsTuxCare:Ubuntu:16.04all versions · fixed in 2.1.3-4ubuntu0.11+tuxcare.els4and 18 other packages
  • cupsTuxCare:OracleLinux:6all versions · fixed in 1:1.4.2-81.el6_10.tuxcare.els1and 4 other packages

70 more package ranges on OSV.dev

Vendor advisories

  • CVE-2023-4504 Red Hat Product Security31 known affected

    libppd: Postscript Parsing Heap Overflow

    cups as a component of Red Hat Enterprise Linux 6 · cups-devel as a component of Red Hat Enterprise Linux 6 · cups-libs as a component of Red Hat Enterprise Linux 6 · +28 more

Full record on NVD

Fix

  1. Workaround from the vendor Red Hat Product Security CVE-2023-4504 · 31 productsFor a successful attack, the victim had to install a PPD file (driver) that contains the crafted PS sequence, which triggers the issue. It is not recommended to install drivers from unreliable sources.
  2. No fix planned, says the vendor Red Hat Product Security CVE-2023-4504 · 14 productsOut of support scope
  3. No fix planned, says the vendor Red Hat Product Security CVE-2023-4504 · 17 productsWill not fix

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-04-23
  • CISA-ADPCVSS 3.172025-04-23
  • NVDCVSS 3.17read 2026-10-23
  • CNAweakness (CWE)CWE-122known since 2026-10-23
  • NVDweakness (CWE)CWE-787read 2026-10-23
  • FIRST EPSSEPSS score0.6 %2026-11-16
  • PoC-in-GitHubproof of concept1known since 2026-11-01
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
2023-09-21
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

What is CVE-2023-4504?

Due to failure in validating the length provided by an attacker-crafted PPD PostScript document, CUPS and libppd are susceptible to a heap-based buffer overflow and possibly code execution. This issue has been fixed in CUPS version 2.4.7, released in September of 2023.

Is CVE-2023-4504 actively exploited?

A proof-of-concept exploit exists for CVE-2023-4504, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2023-4504?

CVE-2023-4504 has a CVSS v3 base score of 7 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H.

Running libppd? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record