Vulnerability · Published Sep 21, 2023 · Assigned by AHA
CVE-2023-4504OpenPrinting CUPS/libppd Postscript Parsing Heap Overflow
High 7.0
In plain English
A high-severity heap buffer overflow in CUPS from OpenPrinting. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | cups | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Alpine:v3.21 | cups | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Alpine:v3.22 | cups | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Alpine:v3.23 | cups | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Alpine:v3.24 | cups | 2.4.7-r0 | ALPINE-CVE-2023-4504 |
| Debian:12 | cups | 2.4.2-3+deb12u2 | DEBIAN-CVE-2023-4504 |
| Debian:13 | cups | 2.4.2-6 | DEBIAN-CVE-2023-4504 |
| Debian:14 | cups | 2.4.2-6 | DEBIAN-CVE-2023-4504 |
| Ubuntu:22.04:LTS | cups | 2.4.1op1-1ubuntu4.7 | USN-6391-1 |
| Ubuntu:22.04:LTS | cups | 2.4.1op1-1ubuntu4.7 | UBUNTU-CVE-2023-4504 |
| Ubuntu:22.04:LTS | libppd | no fix listed | UBUNTU-CVE-2023-4504 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| OpenPrinting | CUPS | 0 – before 2.4.6 |
| OpenPrinting | libppd | 0 – before d09348b |
Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://takeonme.org/cves/CVE-2023-4504.html technical-description, third-party-advisory
- 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
- 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/
- http://seclists.org/fulldisclosure/2024/Sep/33