Vulnerability · Published Sep 26, 2024 · Assigned by GitHub_M
CVE-2024-47175libppd's ppdCreatePPDFromIPP2 function does not sanitize IPP attributes when creating the PPD buffer
High 8.6
In plain English
A high-severity improper input validation in libppd from OpenPrinting. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 63.6% (higher than 99.2% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | cups | 1:2.2.6-62.el8_10 | ALSA-2025:0083 |
| AlmaLinux:9 | cups | 1:2.3.3op2-31.el9_5 | ALSA-2024:9470 |
| AlmaLinux:8 | cups-client | 1:2.2.6-62.el8_10 | ALSA-2025:0083 |
| AlmaLinux:9 | cups-client | 1:2.3.3op2-31.el9_5 | ALSA-2024:9470 |
| AlmaLinux:8 | cups-devel | 1:2.2.6-62.el8_10 | ALSA-2025:0083 |
| AlmaLinux:9 | cups-devel | 1:2.3.3op2-31.el9_5 | ALSA-2024:9470 |
| AlmaLinux:8 | cups-filesystem | 1:2.2.6-62.el8_10 | ALSA-2025:0083 |
| AlmaLinux:9 | cups-filesystem | 1:2.3.3op2-31.el9_5 | ALSA-2024:9470 |
| AlmaLinux:8 | cups-filters | 1.20.0-35.el8_10 | ALSA-2024:7463 |
| AlmaLinux:9 | cups-filters | 1.28.7-17.el9_4 | ALSA-2024:7346 |
| AlmaLinux:8 | cups-filters-devel | 1.20.0-35.el8_10 | ALSA-2024:7463 |
| AlmaLinux:9 | cups-filters-devel | 1.28.7-17.el9_4 | ALSA-2024:7346 |
| AlmaLinux:8 | cups-filters-libs | 1.20.0-35.el8_10 | ALSA-2024:7463 |
| AlmaLinux:9 | cups-filters-libs | 1.28.7-17.el9_4 | ALSA-2024:7346 |
| AlmaLinux:8 | cups-ipptool | 1:2.2.6-62.el8_10 | ALSA-2025:0083 |
| AlmaLinux:9 | cups-ipptool | 1:2.3.3op2-31.el9_5 | ALSA-2024:9470 |
| AlmaLinux:8 | cups-libs | 1:2.2.6-62.el8_10 | ALSA-2025:0083 |
| AlmaLinux:9 | cups-libs | 1:2.3.3op2-31.el9_5 | ALSA-2024:9470 |
| AlmaLinux:8 | cups-lpd | 1:2.2.6-62.el8_10 | ALSA-2025:0083 |
| AlmaLinux:9 | cups-lpd | 1:2.3.3op2-31.el9_5 | ALSA-2024:9470 |
| AlmaLinux:9 | cups-printerapp | 1:2.3.3op2-31.el9_5 | ALSA-2024:9470 |
| Alpine:v3.20 | cups | 2.4.9-r1 | ALPINE-CVE-2024-47175 |
| Alpine:v3.21 | cups | 2.4.10-r1 | ALPINE-CVE-2024-47175 |
| Alpine:v3.22 | cups | 2.4.10-r1 | ALPINE-CVE-2024-47175 |
| Alpine:v3.23 | cups | 2.4.10-r1 | ALPINE-CVE-2024-47175 |
| Alpine:v3.24 | cups | 2.4.10-r1 | ALPINE-CVE-2024-47175 |
| Debian:12 | cups | 2.4.2-3+deb12u8 | DEBIAN-CVE-2024-47175 |
| Debian:12 | cups | 2.4.2-3+deb12u8 | DSA-5779-1 |
| Debian:13 | cups | 2.4.10-2 | DEBIAN-CVE-2024-47175 |
| Debian:14 | cups | 2.4.10-2 | DEBIAN-CVE-2024-47175 |
| Rocky Linux:8 | cups | 1:2.2.6-62.el8_10 | RLSA-2025:0083 |
| Rocky Linux:9 | cups | 1:2.3.3op2-31.el9_5 | RLSA-2024:9470 |
| Rocky Linux:8 | cups-filters | 0:1.20.0-35.el8_10 | RLSA-2024:7463 |
| Rocky Linux:9 | cups-filters | 0:1.28.7-17.el9_4 | RLSA-2024:7346 |
| Ubuntu:22.04:LTS | cups | 2.4.1op1-1ubuntu4.11 | USN-7041-1 |
| Ubuntu:22.04:LTS | cups | 2.4.1op1-1ubuntu4.11 | UBUNTU-CVE-2024-47175 |
| Ubuntu:24.04:LTS | cups | 2.4.7-1.2ubuntu7.3 | USN-7041-1 |
| Ubuntu:24.04:LTS | cups | 2.4.7-1.2ubuntu7.3 | UBUNTU-CVE-2024-47175 |
| Ubuntu:24.04:LTS | libppd | 2:2.0.0-0ubuntu4.1 | UBUNTU-CVE-2024-47175 |
| Ubuntu:24.04:LTS | libppd | 2:2.0.0-0ubuntu4.1 | USN-7045-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| OpenPrinting | libppd | <= 2.1b1 |
Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
References
- https://github.com/OpenPrinting/libppd/security/advisories/GHSA-7xfx-47qg-grp6 x_refsource_CONFIRM
- https://github.com/OpenPrinting/cups-browsed/security/advisories/GHSA-rj88-6mr5-rcw8 x_refsource_MISC
- https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-p9rh-jxmq-gq47 x_refsource_MISC
- https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-w63j-6g73-wmg5 x_refsource_MISC
- https://www.cups.org x_refsource_MISC
- https://www.evilsocket.net/2024/09/26/Attacking-UNIX-systems-via-CUPS-Part-I x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2024/09/27/3
- https://github.com/OpenPrinting/libppd/commit/d681747ebf12602cb426725eb8ce2753211e2477
- https://lists.debian.org/debian-lts-announce/2024/09/msg00047.html
- https://security.netapp.com/advisory/ntap-20241011-0001/
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0016