CVE-2024-47175 libppd's ppdCreatePPDFromIPP2 function does not sanitize IPP attributes when creating the PPD buffer
CriticalCVSS 9.8
EPSS 63.6%
Framework module
- Published
- Updated
- Exploit status
- Public exploit available
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebian
Description
CUPS is a standards-based, open-source printing system, and libppd can be used for legacy PPD file support. The libppd function ppdCreatePPDFromIPP2 does not sanitize IPP attributes when creating the PPD buffer. When used in combination with other functions such as cfGetPrinterAttributes5, can result in user controlled input and ultimately code execution via Foomatic. This vulnerability can be part of an exploit chain leading to remote code execution (RCE), as described in CVE-2024-47176.
Upgrade path
14 packages: 13 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/cups(Alpine v3.19) | < 2.4.9-r1 | 2.4.9-r1 | Fixed |
| alpine/cups(Alpine v3.20) | < 2.4.9-r1 | 2.4.9-r1 | Fixed |
| alpine/cups(Alpine v3.21) | < 2.4.10-r1 | 2.4.10-r1 | Fixed |
| alpine/cups(Alpine v3.22) | < 2.4.10-r1 | 2.4.10-r1 | Fixed |
| alpine/cups(Alpine v3.23) | < 2.4.10-r1 | 2.4.10-r1 | Fixed |
| alpine/cups(Alpine v3.24) | < 2.4.10-r1 | 2.4.10-r1 | Fixed |
| debian/cups(Debian 12) | < 2.4.2-3+deb12u8; = 2.4.2-3; = 2.4.2-3+deb12u1; = 2.4.2-3+deb12u2 +5 more | 2.4.2-3+deb12u8 | Fixed |
| debian/cups(Debian 13) | < 2.4.10-2 | 2.4.10-2 | Fixed |
| debian/cups(Debian 14) | < 2.4.10-2 | 2.4.10-2 | Fixed |
| OpenPrinting libppd | <= 2.0.0; <= 2.1b1; = 2.1-beta1*; = <= 2.1b1 | after 2.0.0, 2.1b1 | Fixed |
| ubuntu/cups(Ubuntu 22.04) | < 2.4.1op1-1ubuntu4.11 | 2.4.1op1-1ubuntu4.11 | Fixed |
| ubuntu/cups(Ubuntu 24.04) | < 2.4.7-1.2ubuntu7.3 | 2.4.7-1.2ubuntu7.3 | Fixed |
| ubuntu/libppd(Ubuntu 24.04) | < 2:2.0.0-0ubuntu4.1 | 2:2.0.0-0ubuntu4.1 | Fixed |
| debian linux | = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/cups(Debian:12) | < 2.4.2-3+deb12u8 | 2.4.2-3+deb12u8 |
| debian/cups(Debian:12) | = 2.4.2-3 | No fix listed |
| debian/cups(Debian:12) | = 2.4.2-3+deb12u1 | No fix listed |
| debian/cups(Debian:12) | = 2.4.2-3+deb12u2 | No fix listed |
| debian/cups(Debian:12) | = 2.4.2-3+deb12u3 | No fix listed |
| debian/cups(Debian:12) | = 2.4.2-3+deb12u4 | No fix listed |
| debian/cups(Debian:12) | = 2.4.2-3+deb12u5 | No fix listed |
| debian/cups(Debian:12) | = 2.4.2-3+deb12u6 | No fix listed |
| debian/cups(Debian:12) | = 2.4.2-3+deb12u7 | No fix listed |
| debian/cups(Debian:13) | < 2.4.10-2 | 2.4.10-2 |
| debian/cups(Debian:14) | < 2.4.10-2 | 2.4.10-2 |
| ubuntu/cups(Ubuntu:22.04) | < 2.4.1op1-1ubuntu4.11 | 2.4.1op1-1ubuntu4.11 |
| OpenPrinting libppd | = <= 2.1b1 | No fix listed |
| OpenPrinting libppd | <= 2.1b1 | No fix listed |
| alpine/cups(Alpine:v3.19) | < 2.4.9-r1 | 2.4.9-r1 |
| alpine/cups(Alpine:v3.20) | < 2.4.9-r1 | 2.4.9-r1 |
| alpine/cups(Alpine:v3.21) | < 2.4.10-r1 | 2.4.10-r1 |
| alpine/cups(Alpine:v3.22) | < 2.4.10-r1 | 2.4.10-r1 |
| alpine/cups(Alpine:v3.23) | < 2.4.10-r1 | 2.4.10-r1 |
| alpine/cups(Alpine:v3.24) | < 2.4.10-r1 | 2.4.10-r1 |
| ubuntu/cups(Ubuntu:24.04) | < 2.4.7-1.2ubuntu7.3 | 2.4.7-1.2ubuntu7.3 |
| ubuntu/libppd(Ubuntu:24.04) | < 2:2.0.0-0ubuntu4.1 | 2:2.0.0-0ubuntu4.1 |
| OpenPrinting libppd | <= 2.0.0 | No fix listed |
| OpenPrinting libppd | = 2.1-beta1* | No fix listed |
| debian linux | = 11.0 | No fix listed |
References
- Debian Security Tracker CVE-2024-47175 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-7041-1 vendor-advisory
- USN-7045-1 vendor-advisory
- USN-7041-2 vendor-advisory
- USN-7041-3 vendor-advisory
- www.cve.org
- https://github.com/OpenPrinting/libppd/security/advisories/GHSA-7xfx-47qg-grp6 exploit vendor-advisory
- https://github.com/OpenPrinting/cups-browsed/security/advisories/GHSA-rj88-6mr5-rcw8 not-applicable
- https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-p9rh-jxmq-gq47 not-applicable
- https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-w63j-6g73-wmg5 not-applicable
- https://www.cups.org product
- https://www.evilsocket.net/2024/09/26/Attacking-UNIX-systems-via-CUPS-Part-I exploit third-party-advisory
- www.openwall.com mailing-list
- github.com patch
- lists.debian.org mailing-list
- security.netapp.com
- psirt.global.sonicwall.com
- security.alpinelinux.org vendor-advisory