Vulnerability · Published Sep 26, 2024 · Assigned by GitHub_M
CVE-2024-47076libcupsfilters's cfGetPrinterAttributes5 does not validate IPP attributes returned from an IPP server
High 8.6
In plain English
A high-severity improper input validation in libcupsfilters from OpenPrinting. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 79.9% (higher than 99.6% 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 `libcupsfilters` contains the code of the filters of the former `cups-filters` package as library functions to be used for the data format conversion tasks needed in Printer Applications. The `cfGetPrinterAttributes5` function in `libcupsfilters` does not sanitize IPP attributes returned from an IPP server. When these IPP attributes are used, for instance, to generate a PPD file, this can lead to attacker controlled data to be provided to the rest of the CUPS system.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
| Debian:12 | cups-filters | 1.28.17-3+deb12u1 | DSA-5778-1 |
| Debian:12 | cups-filters | 1.28.17-3+deb12u1 | DEBIAN-CVE-2024-47076 |
| Debian:13 | cups-filters | 1.28.17-5 | DEBIAN-CVE-2024-47076 |
| Debian:14 | cups-filters | 1.28.17-5 | DEBIAN-CVE-2024-47076 |
| Debian:13 | libcupsfilters | 2.0.0-3 | DEBIAN-CVE-2024-47076 |
| Debian:14 | libcupsfilters | 2.0.0-3 | DEBIAN-CVE-2024-47076 |
| 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-filters | 1.28.15-0ubuntu1.4 | USN-7043-4 |
| Ubuntu:22.04:LTS | cups-filters | 1.28.15-0ubuntu1.3 | USN-7043-1 |
| Ubuntu:22.04:LTS | cups-filters | 1.28.15-0ubuntu1.4 | UBUNTU-CVE-2024-47076 |
| Ubuntu:24.04:LTS | libcupsfilters | 2.0.0-0ubuntu7.1 | UBUNTU-CVE-2024-47076 |
| Ubuntu:24.04:LTS | libcupsfilters | 2.0.0-0ubuntu7.1 | USN-7044-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| OpenPrinting | libcupsfilters | <= 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/libcupsfilters/security/advisories/GHSA-w63j-6g73-wmg5 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/libppd/security/advisories/GHSA-7xfx-47qg-grp6 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
- https://github.com/OpenPrinting/libcupsfilters/commit/95576ec3d20c109332d14672a807353cdc551018
- https://security.netapp.com/advisory/ntap-20241011-0001/
- https://lists.debian.org/debian-lts-announce/2024/09/msg00048.html