{"schemaVersion":3,"id":"CVE-2023-4504","aliases":["ALPINE-CVE-2023-4504","UBUNTU-CVE-2023-4504","USN-6391-1","USN-6391-2","DEBIAN-CVE-2023-4504","CGA-55j2-hgxx-vxfg","CGA-8wgj-7f4g-7rxm"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-09-21T22:47:41.879Z","modified":"2025-11-04T16:10:38.138Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":2.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":2.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":2.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":2.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":2.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00664,"percentile":0.50797,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.001000000000000046,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00663},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00664,"percentile":0.50797}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00663,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0068,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00664,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00664,"percentile":0.50797}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_OPENPRINTING_LIBPPD","name":"Libppd","source":"github","url":"https://github.com/OpenPrinting/libppd/security/advisories/GHSA-4f65-6ph5-qwh6","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"GITHUB_OPENPRINTING_CUPS","name":"Cups","source":"github","url":"https://github.com/OpenPrinting/cups/security/advisories/GHSA-cxc6-w2g7-69p7","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_99979F5F4607A3BC","name":"Exploit Reference (takeonme.org)","source":"reference","url":"https://takeonme.org/cves/CVE-2023-4504.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":3,"weaknesses":[{"id":"CWE-122","name":"Heap-based Buffer Overflow","description":"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"alpine","product":"cups","name":"cups","label":"cups","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/cups","purlType":"apk","versions":[{"text":"< 2.4.7-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.7-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"cups","name":"cups","label":"cups","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/cups","purlType":"apk","versions":[{"text":"< 2.4.7-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.7-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"cups","name":"cups","label":"cups","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/cups","purlType":"apk","versions":[{"text":"< 2.4.7-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.7-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"cups","name":"cups","label":"cups","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/cups","purlType":"deb","versions":[{"text":"< 2.4.2-3+deb12u2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.4.2-6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.2-3+deb12u2 | < 2.4.2-6","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"cups","name":"cups","label":"cups","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/cups","purlType":"deb","versions":[{"text":"< 2.3.1-9ubuntu1.6","noFixRecorded":false,"fixedIn":null},{"text":"< 2.4.1op1-1ubuntu4.7","noFixRecorded":false,"fixedIn":null},{"text":"< 2.1.3-4ubuntu0.11+esm4","noFixRecorded":false,"fixedIn":null},{"text":"< 2.2.7-1ubuntu2.10+esm2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.3.1-9ubuntu1.6 | < 2.4.1op1-1ubuntu4.7 | < 2.1.3-4ubuntu0.11+esm4 | < 2.2.7-1ubuntu2.10+esm2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libppd","name":"libppd","label":"libppd","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libppd","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"37","noFixRecorded":false,"fixedIn":null},{"text":"38","noFixRecorded":false,"fixedIn":null},{"text":"39","noFixRecorded":false,"fixedIn":null}],"versionsText":"37 | 38 | 39","eol":{"isEol":true,"eolDate":"2023-12-05T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"37","label":"37","eolFrom":"2023-12-05T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"openprinting","product":"cups","name":"cups","label":"cups","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.4.6","noFixRecorded":false,"fixedIn":null},{"text":"< 2.4.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.6 | < 2.4.7","eol":null,"hubHref":"/vendor/openprinting/cups"},{"vendor":"openprinting","product":"libppd","name":"libppd","label":"libppd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< d09348b","noFixRecorded":false,"fixedIn":null},{"text":"2.0:rc2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< d09348b | 2.0:rc2","eol":null,"hubHref":"/vendor/openprinting/libppd"}],"affectedCount":10,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://takeonme.org/cves/CVE-2023-4504.html","label":"takeonme.org/cves/CVE-2023-4504.html","hostname":"takeonme.org","tags":["Technical Description","Third Party Advisory","REPORT","Advisory","Exploit"]},{"url":"https://github.com/OpenPrinting/libppd/security/advisories/GHSA-4f65-6ph5-qwh6","label":"github.com/OpenPrinting/libppd/security/advisories/GHSA-4f65-6ph5-qwh6","hostname":"github.com","tags":["Vendor Advisory","Advisory","Exploit"]},{"url":"https://github.com/OpenPrinting/cups/security/advisories/GHSA-pf5r-86w9-678h","label":"github.com/OpenPrinting/cups/security/advisories/GHSA-pf5r-86w9-678h","hostname":"github.com","tags":["Vendor Advisory","Advisory","Exploit"]},{"url":"https://github.com/OpenPrinting/cups/releases/tag/v2.4.7","label":"github.com/OpenPrinting/cups/releases/tag/v2.4.7","hostname":"github.com","tags":["Release Notes","Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AMYDKIE4PSJDEMC5OWNFCDMHFGLJ57XG/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB","Mailing List","Release Notes"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5WVS4I7JG3LISFPKTM6ADKJXXEPEEWBQ/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB","Mailing List","Release Notes"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5WHEJIYMMAIXU2EC35MGTB5LGGO2FFJE/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB","Mailing List","Release Notes"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T2GSPQAFK2Z6L57TRXEKZDF42K2EVBH7/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB","Mailing List","Release Notes"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00041.html","label":"lists.debian.org/debian-lts-announce/2023/09/msg00041.html","hostname":"lists.debian.org","tags":["WEB","Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PXPVADB56NMLJWG4IZ3OZBNJ2ZOLPQJ6/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB","Third Party Advisory"]},{"url":"http://seclists.org/fulldisclosure/2024/Sep/33","label":"seclists.org/fulldisclosure/2024/Sep/33","hostname":"seclists.org","tags":["WEB"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2023-4504","label":"security.alpinelinux.org/vuln/CVE-2023-4504","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-4504","label":"ubuntu.com/security/CVE-2023-4504","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6391-1","label":"ubuntu.com/security/notices/USN-6391-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-6392-1","label":"ubuntu.com/security/notices/USN-6392-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-6391-2","label":"ubuntu.com/security/notices/USN-6391-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-4504","label":"www.cve.org/CVERecord?id=CVE-2023-4504","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-4504","label":"security-tracker.debian.org/tracker/CVE-2023-4504","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4504.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4504.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4504","label":"nvd.nist.gov/vuln/detail/CVE-2023-4504","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]}],"lineage":{"upstream":[],"downstream":["DLA-3594-1","MGASA-2023-0284","OPENSUSE-SU-2024:13250-1","SUSE-SU-2023:3706-1","SUSE-SU-2023:3707-1","SUSE-SU-2023:3707-2","SUSE-SU-2025:20090-1"],"duplicates":[],"related":["CGA-45C7-82G3-6QHQ","CGA-CC9M-8C94-H5PH","OPENSUSE-SU-2024:13250-1","SUSE-SU-2023:3706-1","SUSE-SU-2023:3707-1","SUSE-SU-2023:3707-2","SUSE-SU-2025:20090-1"]},"timeline":[{"kind":"published","date":"2023-09-21T22:47:41.879Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-04T16:10:38.138Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":38,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T13:16:56.696Z","stale":false,"partial":false}}