CVE-2023-4504OpenPrinting CUPS/libppd Postscript Parsing Heap Overflow
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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | cups | Fixed | 2.4.1op1-1ubuntu4.7 | UBUNTU-CVE-2023-4504 |
| Ubuntu 22.04 | libppd | Under investigation | UBUNTU-CVE-2023-4504 | |
| Ubuntu 20.04 | cups | Fixed | 2.3.1-9ubuntu1.6 | UBUNTU-CVE-2023-4504 |
| Ubuntu 20.04 | libppd | Fix pending | UBUNTU-CVE-2023-4504 | |
| Ubuntu 18.04 | cups | Fix pending | 2.2.7-1ubuntu2.10+esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-4504 |
| Ubuntu 18.04 | libppd | Fix pending | UBUNTU-CVE-2023-4504 | |
| Ubuntu 16.04 | cups | Fix pending | 2.1.3-4ubuntu0.11+esm4 (Ubuntu Pro) | UBUNTU-CVE-2023-4504 |
| Ubuntu 16.04 | libppd | Fix pending | UBUNTU-CVE-2023-4504 | |
| Ubuntu 14.04 | cups | Fix pending | ||
| Ubuntu 14.04 | libppd | Fix pending | ||
| Debian 14 | cups | Fixed | 2.4.2-6 | DEBIAN-CVE-2023-4504 |
| Debian 13 | cups | Fixed | 2.4.2-6 | DEBIAN-CVE-2023-4504 |
| Debian 12 | cups | Fixed | 2.4.2-3+deb12u2 | DEBIAN-CVE-2023-4504 |
| Red Hat Enterprise Linux 9 | cups | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | cups-client | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | cups-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | cups-filesystem | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | cups-ipptool | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | cups-libs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | cups-lpd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | cups-printerapp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cups | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cups-client | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cups-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cups-filesystem | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cups-ipptool | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cups-libs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | cups-lpd | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | cups | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-client | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-filesystem | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-ipptool | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-lpd | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-lpd | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-php | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | cups | Fixed | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Alpine Linux 3.23 | cups | Fixed | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Alpine Linux 3.22 | cups | Fixed | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Alpine Linux 3.21 | cups | Fixed | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Alpine Linux 3.20 | cups | Fixed | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Alpine Linux 3.19 | cups | Fixed | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Alpine Linux 3.18 | cups | Fixed | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Alpine Linux 3.17 | cups | Fixed | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
What the vendor says
As published in the CVE record by AHA, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenPrinting CUPS: affected: before 2.4.6; fixed in
2.4.6 - OpenPrinting libppd: affected: before d09348b
Vendor advisories:
- https://github.com/OpenPrinting/libppd/security/advisories/GHSA-4f65-6ph5-qwh6 (vendor-advisory)
- https://github.com/OpenPrinting/cups/security/advisories/GHSA-pf5r-86w9-678h (vendor-advisory)
- https://github.com/OpenPrinting/cups/releases/tag/v2.4.7 (release-notes)
References
- https://takeonme.org/cves/CVE-2023-4504.html
- https://github.com/OpenPrinting/libppd/security/advisories/GHSA-4f65-6ph5-qwh6
- https://github.com/OpenPrinting/cups/security/advisories/GHSA-pf5r-86w9-678h
- https://github.com/OpenPrinting/cups/releases/tag/v2.4.7
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AMYDKIE4PSJDEMC5OWNFCDMHFGLJ57XG/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5WVS4I7JG3LISFPKTM6ADKJXXEPEEWBQ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5WHEJIYMMAIXU2EC35MGTB5LGGO2FFJE/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T2GSPQAFK2Z6L57TRXEKZDF42K2EVBH7/
- https://lists.debian.org/debian-lts-announce/2023/09/msg00041.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PXPVADB56NMLJWG4IZ3OZBNJ2ZOLPQJ6/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.