CVE-2024-47175
cups: libppd: remote command injection via attacker controlled data in PPD file
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (high), Amazon (high), Ubuntu (medium), AlmaLinux (low), Oracle (low), Rocky Linux (low).
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 and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 4.0 | cups, cups-devel | 2.4.11-1.ph4 |
| Photon OS 5.0 | cups, cups-devel | 2.4.11-1.ph5 |
| alma 8 | cups, cups-client, cups-devel and 7 more | 1:2.2.6-62.el8_10 and 1 more |
| alma 9 | cups, cups-client, cups-devel and 8 more | 1:2.3.3op2-31.el9_5 and 1 more |
| alpine 3.19 | cups | 2.4.9-r1 |
| alpine 3.20 | cups | 2.4.9-r1 |
| alpine 3.21 | cups | 2.4.10-r1 |
| alpine 3.22 | cups | 2.4.10-r1 |
| alpine 3.23 | cups | 2.4.10-r1 |
| alpine 3.24 | cups | 2.4.10-r1 |
| alpine edge | cups | 2.4.10-r1 |
| amazon linux 2023 | cups-filters, cups-filters-debuginfo, cups-filters-debugsource and 3 more | 1.28.16-3.amzn2023.0.2 |
Show all 119 entries from 38 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 4.0 | cups | 2.4.11-1.ph4 |
| Photon OS 4.0 | cups-devel | 2.4.11-1.ph4 |
| Photon OS 5.0 | cups | 2.4.11-1.ph5 |
| Photon OS 5.0 | cups-devel | 2.4.11-1.ph5 |
| alma 8 | cups | 1:2.2.6-62.el8_10 |
| alma 8 | cups-client | 1:2.2.6-62.el8_10 |
| alma 8 | cups-devel | 1:2.2.6-62.el8_10 |
| alma 8 | cups-filesystem | 1:2.2.6-62.el8_10 |
| alma 8 | cups-filters | 1.20.0-35.el8_10 |
| alma 8 | cups-filters-devel | 1.20.0-35.el8_10 |
| alma 8 | cups-filters-libs | 1.20.0-35.el8_10 |
| alma 8 | cups-ipptool | 1:2.2.6-62.el8_10 |
| alma 8 | cups-libs | 1:2.2.6-62.el8_10 |
| alma 8 | cups-lpd | 1:2.2.6-62.el8_10 |
| alma 9 | cups | 1:2.3.3op2-31.el9_5 |
| alma 9 | cups-client | 1:2.3.3op2-31.el9_5 |
| alma 9 | cups-devel | 1:2.3.3op2-31.el9_5 |
| alma 9 | cups-filesystem | 1:2.3.3op2-31.el9_5 |
| alma 9 | cups-filters | 1.28.7-17.el9_4 |
| alma 9 | cups-filters-devel | 1.28.7-17.el9_4 |
| alma 9 | cups-filters-libs | 1.28.7-17.el9_4 |
| alma 9 | cups-ipptool | 1:2.3.3op2-31.el9_5 |
| alma 9 | cups-libs | 1:2.3.3op2-31.el9_5 |
| alma 9 | cups-lpd | 1:2.3.3op2-31.el9_5 |
| alma 9 | cups-printerapp | 1:2.3.3op2-31.el9_5 |
| alpine 3.19 | cups | 2.4.9-r1 |
| alpine 3.20 | cups | 2.4.9-r1 |
| alpine 3.21 | cups | 2.4.10-r1 |
| alpine 3.22 | cups | 2.4.10-r1 |
| alpine 3.23 | cups | 2.4.10-r1 |
| alpine 3.24 | cups | 2.4.10-r1 |
| alpine edge | cups | 2.4.10-r1 |
| amazon linux 2023 | cups-filters | 1.28.16-3.amzn2023.0.2 |
| amazon linux 2023 | cups-filters-debuginfo | 1.28.16-3.amzn2023.0.2 |
| amazon linux 2023 | cups-filters-debugsource | 1.28.16-3.amzn2023.0.2 |
| amazon linux 2023 | cups-filters-devel | 1.28.16-3.amzn2023.0.2 |
| amazon linux 2023 | cups-filters-libs | 1.28.16-3.amzn2023.0.2 |
| amazon linux 2023 | cups-filters-libs-debuginfo | 1.28.16-3.amzn2023.0.2 |
| debian 11 | cups | 2.3.3op2-3+deb11u9 |
| debian 12 | cups | 2.4.2-3+deb12u8 |
| debian 13 | cups | 2.4.10-2 |
| debian 14 | cups | 2.4.10-2 |
| echo | cups | 2.4.2-3+deb12u8 |
| Oracle Linux 7 | cups-filters | 1.0.35-29.0.3.el7_9 |
| Oracle Linux 7 | cups-filters-devel | 1.0.35-29.0.3.el7_9 |
| Oracle Linux 7 | cups-filters-libs | 1.0.35-29.0.3.el7_9 |
| Oracle Linux 8 | cups | 1:2.2.6-62.el8_10 |
| Oracle Linux 8 | cups-client | 1:2.2.6-62.el8_10 |
| Oracle Linux 8 | cups-devel | 1:2.2.6-62.el8_10 |
| Oracle Linux 8 | cups-filesystem | 1:2.2.6-62.el8_10 |
| Oracle Linux 8 | cups-filters | 1.20.0-35.0.1.el8_10 |
| Oracle Linux 8 | cups-filters-devel | 1.20.0-35.0.1.el8_10 |
| Oracle Linux 8 | cups-filters-libs | 1.20.0-35.0.1.el8_10 |
| Oracle Linux 8 | cups-ipptool | 1:2.2.6-62.el8_10 |
| Oracle Linux 8 | cups-libs | 1:2.2.6-62.el8_10 |
| Oracle Linux 8 | cups-lpd | 1:2.2.6-62.el8_10 |
| Oracle Linux 9 | cups | 1:2.3.3op2-31.el9_5 |
| Oracle Linux 9 | cups-client | 1:2.3.3op2-31.el9_5 |
| Oracle Linux 9 | cups-devel | 1:2.3.3op2-31.el9_5 |
| Oracle Linux 9 | cups-filesystem | 1:2.3.3op2-31.el9_5 |
| Oracle Linux 9 | cups-filters | 1.28.7-17.0.1.el9_4 |
| Oracle Linux 9 | cups-filters-devel | 1.28.7-17.0.1.el9_4 |
| Oracle Linux 9 | cups-filters-libs | 1.28.7-17.0.1.el9_4 |
| Oracle Linux 9 | cups-ipptool | 1:2.3.3op2-31.el9_5 |
| Oracle Linux 9 | cups-libs | 1:2.3.3op2-31.el9_5 |
| Oracle Linux 9 | cups-lpd | 1:2.3.3op2-31.el9_5 |
| Oracle Linux 9 | cups-printerapp | 1:2.3.3op2-31.el9_5 |
| rapidfort amazon linux 2023 | cups-filters | 1.28.16-3.amzn2023.0.2 |
| rapidfort amazon linux 2023 | cups-filters-devel | 1.28.16-3.amzn2023.0.2 |
| rapidfort amazon linux 2023 | cups-filters-libs | 1.28.16-3.amzn2023.0.2 |
| rapidfort Oracle Linux 9 | cups | 1:2.3.3op2-31.el9_5 |
| rapidfort Oracle Linux 9 | cups-client | 1:2.3.3op2-31.el9_5 |
| rapidfort Oracle Linux 9 | cups-devel | 1:2.3.3op2-31.el9_5 |
| rapidfort Oracle Linux 9 | cups-filesystem | 1:2.3.3op2-31.el9_5 |
| rapidfort Oracle Linux 9 | cups-filters | 0:1.28.7-17.0.1.el9_4 |
| rapidfort Oracle Linux 9 | cups-filters-libs | 0:1.28.7-17.0.1.el9_4 |
| rapidfort Oracle Linux 9 | cups-ipptool | 1:2.3.3op2-31.el9_5 |
| rapidfort Oracle Linux 9 | cups-libs | 1:2.3.3op2-31.el9_5 |
| rapidfort Oracle Linux 9 | cups-lpd | 1:2.3.3op2-31.el9_5 |
| rapidfort Oracle Linux 9 | cups-printerapp | 1:2.3.3op2-31.el9_5 |
| rapidfort ubuntu 20.04 | cups | 0:2.4.1op1-1ubuntu4.11, 0:2.4.7-1.2ubuntu7.3 |
| rapidfort ubuntu 20.04 | rf-cups | 0:2.4.1op1-1ubuntu4.11, 0:2.4.7-1.2ubuntu7.3 |
| rapidfort ubuntu 22.04 | cups | 0:2.4.1op1-1ubuntu4.11, 0:2.4.7-1.2ubuntu7.3 |
| rapidfort ubuntu 22.04 | rf-cups | 0:2.4.1op1-1ubuntu4.11, 0:2.4.7-1.2ubuntu7.3 |
| rapidfort ubuntu 24.04 | cups | 0:2.4.1op1-1ubuntu4.11, 0:2.4.7-1.2ubuntu7.3 |
| rapidfort ubuntu 24.04 | rf-cups | 0:2.4.1op1-1ubuntu4.11, 0:2.4.7-1.2ubuntu7.3 |
| Red Hat | cups | no fix listed |
| Red Hat | cups-client | no fix listed |
| Red Hat | cups-devel | no fix listed |
| Red Hat | cups-filesystem | no fix listed |
| Red Hat | cups-ipptool | no fix listed |
| Red Hat | cups-libs | no fix listed |
| Red Hat | cups-lpd | no fix listed |
| rocky 8 | cups-filters | 1.20.0-35.el8_10 |
| rocky 8 | cups-filters-libs | 1.20.0-35.el8_10 |
| rocky 8 | cups-libs | 1:2.2.6-62.el8_10 |
| rocky 9 | cups | 1:2.3.3op2-31.el9_5 |
| rocky 9 | cups-client | 1:2.3.3op2-31.el9_5 |
| rocky 9 | cups-devel | 1:2.3.3op2-31.el9_5 |
| rocky 9 | cups-filesystem | 1:2.3.3op2-31.el9_5 |
| rocky 9 | cups-filters | 1.28.7-17.el9_4 |
| rocky 9 | cups-filters-libs | 1.28.7-17.el9_4 |
| rocky 9 | cups-ipptool | 1:2.3.3op2-31.el9_5 |
| rocky 9 | cups-libs | 1:2.3.3op2-31.el9_5 |
| rocky 9 | cups-lpd | 1:2.3.3op2-31.el9_5 |
| rocky 9 | cups-printerapp | 1:2.3.3op2-31.el9_5 |
| root.io debian 12 | rootio-cups | 2.4.2-3+deb12u8 |
| root.io debian 13 | rootio-cups | 2.4.10-2 |
| seal Red Hat 8 | cups | 1:2.2.6-51.el8_8.2+sp999 |
| seal Red Hat 8 | seal-cups | 1:2.2.6-51.el8_8.2+sp999 |
| seal Red Hat 9 | cups | 1:2.3.3op2-16.el9+sp999, 1:2.3.3op2-16.el9_2.1+sp999 |
| seal Red Hat 9 | seal-cups | 1:2.3.3op2-16.el9+sp999, 1:2.3.3op2-16.el9_2.1+sp999 |
| ubuntu 16.04-ESM | cups | 2.1.3-4ubuntu0.11+esm8 |
| ubuntu 18.04-ESM | cups | 2.2.7-1ubuntu2.10+esm6 |
| ubuntu 20.04 | cups | 2.3.1-9ubuntu1.9 |
| ubuntu 20.04-ESM | cups | 2.3.1-9ubuntu1.9 |
| ubuntu 22.04 | cups | 2.4.1op1-1ubuntu4.11 |
| ubuntu 24.04 | cups | 2.4.7-1.2ubuntu7.3 |
| ubuntu 24.04 | libppd | 2:2.0.0-0ubuntu4.1 |
References
- http://www.openwall.com/lists/oss-security/2024/09/27/3
- https://access.redhat.com/errata/RHSA-2024:9470
- https://access.redhat.com/security/cve/CVE-2024-47175
- https://bugzilla.redhat.com/2314256
- https://bugzilla.redhat.com/show_bug.cgi?id=2314256
- https://creativecommons.org/licenses/by/4.0/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-47175
- https://errata.almalinux.org/9/ALSA-2024-9470.html
All 29 references
- https://errata.rockylinux.org/RLSA-2024:9470
- https://github.com/OpenPrinting/cups-browsed/security/advisories/GHSA-rj88-6mr5-rcw8
- https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-p9rh-jxmq-gq47
- https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-w63j-6g73-wmg5
- https://github.com/OpenPrinting/libppd/commit/d681747ebf12602cb426725eb8ce2753211e2477
- https://github.com/OpenPrinting/libppd/security/advisories/GHSA-7xfx-47qg-grp6
- https://linux.oracle.com/cve/CVE-2024-47175.html
- https://linux.oracle.com/errata/ELSA-2025-0083.html
- https://lists.debian.org/debian-lts-announce/2024/09/msg00047.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-47175
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0016
- https://security.netapp.com/advisory/ntap-20241011-0001/
- https://ubuntu.com/blog/cups-remote-code-execution-vulnerability-fix-available
- https://ubuntu.com/security/notices/USN-7041-1
- https://ubuntu.com/security/notices/USN-7041-2
- https://ubuntu.com/security/notices/USN-7041-3
- https://ubuntu.com/security/notices/USN-7045-1
- https://www.cups.org
- https://www.cve.org/CVERecord?id=CVE-2024-47175
- https://www.evilsocket.net/2024/09/26/Attacking-UNIX-systems-via-CUPS-Part-I
- https://www.evilsocket.net/2024/09/26/Attacking-UNIX-systems-via-CUPS-Part-I/