CVE-2024-35235Cupsd Listen arbitrary chmod 0140777
OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. In versions 2.4.8 and earlier, when starting the cupsd server with a Listen configuration item pointing to a symbolic link, the cupsd process can be caused to perform an arbitrary chmod of the provided argument, providing world-writable access to the target. Given that cupsd is often running as root, this can result in the change of permission of any user or system files to be world writable. Given the aforementioned Ubuntu AppArmor context, on such systems this vulnerability is limited to those files modifiable by the cupsd process. In that specific case it was found to be possible to turn the configuration of the Listen argument into full control over the cupsd.conf and cups-files.conf configuration files. By later setting the User and Group arguments in cups-files.conf, and printing with a printer configured by PPD with a `FoomaticRIPCommandLine` argument, arbitrary user and group (not root) command execution could be achieved, which can further be used on Ubuntu systems to achieve full root command execution. Commit ff1f8a623e090dee8a8aadf12a6a4b25efac143d contains a patch for the issue.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | cups | Fixed | 2.4.7-1.2ubuntu7.1 | UBUNTU-CVE-2024-35235 |
| Ubuntu 22.04 | cups | Fixed | 2.4.1op1-1ubuntu4.9 | UBUNTU-CVE-2024-35235 |
| Ubuntu 20.04 | cups | Fixed | 2.3.1-9ubuntu1.7 | UBUNTU-CVE-2024-35235 |
| Ubuntu 18.04 | cups | Fix pending | 2.2.7-1ubuntu2.10+esm4 (Ubuntu Pro) | UBUNTU-CVE-2024-35235 |
| Ubuntu 16.04 | cups | Fix pending | 2.1.3-4ubuntu0.11+esm6 (Ubuntu Pro) | UBUNTU-CVE-2024-35235 |
| Debian 14 | cups | Fixed | 2.4.7-2 | DEBIAN-CVE-2024-35235 |
| Debian 13 | cups | Fixed | 2.4.7-2 | DEBIAN-CVE-2024-35235 |
| Debian 12 | cups | Fixed | 2.4.2-3+deb12u6 | DEBIAN-CVE-2024-35235 |
| Red Hat Enterprise Linux 10 | cups | Not affected | ||
| Red Hat Enterprise Linux 10 | cups-client | Not affected | ||
| Red Hat Enterprise Linux 10 | cups-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | cups-filesystem | Not affected | ||
| Red Hat Enterprise Linux 10 | cups-ipptool | Not affected | ||
| Red Hat Enterprise Linux 10 | cups-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | cups-lpd | Not affected | ||
| Red Hat Enterprise Linux 10 | cups-printerapp | Not affected | ||
| Red Hat Enterprise Linux 9 | cups | Fixed | 1:2.3.3op2-27.el9_4 | RHSA-2024:4776 |
| Red Hat Enterprise Linux 9 | cups-client | Fixed | 1:2.3.3op2-27.el9_4 | RHSA-2024:4776 |
| Red Hat Enterprise Linux 9 | cups-devel | Fixed | 1:2.3.3op2-27.el9_4 | RHSA-2024:4776 |
| Red Hat Enterprise Linux 9 | cups-filesystem | Fixed | 1:2.3.3op2-27.el9_4 | RHSA-2024:4776 |
| Red Hat Enterprise Linux 9 | cups-ipptool | Fixed | 1:2.3.3op2-27.el9_4 | RHSA-2024:4776 |
| Red Hat Enterprise Linux 9 | cups-libs | Fixed | 1:2.3.3op2-27.el9_4 | RHSA-2024:4776 |
| Red Hat Enterprise Linux 9 | cups-lpd | Fixed | 1:2.3.3op2-27.el9_4 | RHSA-2024:4776 |
| Red Hat Enterprise Linux 9 | cups-printerapp | Fixed | 1:2.3.3op2-27.el9_4 | RHSA-2024:4776 |
| Red Hat Enterprise Linux 8 | cups | Fixed | 1:2.2.6-60.el8_10 | RHSA-2024:4265 |
| Red Hat Enterprise Linux 8 | cups-client | Fixed | 1:2.2.6-60.el8_10 | RHSA-2024:4265 |
| Red Hat Enterprise Linux 8 | cups-devel | Fixed | 1:2.2.6-60.el8_10 | RHSA-2024:4265 |
| Red Hat Enterprise Linux 8 | cups-filesystem | Fixed | 1:2.2.6-60.el8_10 | RHSA-2024:4265 |
| Red Hat Enterprise Linux 8 | cups-ipptool | Fixed | 1:2.2.6-60.el8_10 | RHSA-2024:4265 |
| Red Hat Enterprise Linux 8 | cups-libs | Fixed | 1:2.2.6-60.el8_10 | RHSA-2024:4265 |
| Red Hat Enterprise Linux 8 | cups-lpd | Fixed | 1:2.2.6-60.el8_10 | RHSA-2024:4265 |
| Red Hat Enterprise Linux 7 | cups | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-client | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-filesystem | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-ipptool | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | cups-lpd | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-lpd | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-php | Will not fix Out of support scope | ||
| AlmaLinux 9 | cups | Fixed | 1:2.3.3op2-27.el9_4 | ALSA-2024:4776 |
| AlmaLinux 9 | cups-client | Fixed | 1:2.3.3op2-27.el9_4 | ALSA-2024:4776 |
| AlmaLinux 9 | cups-devel | Fixed | 1:2.3.3op2-27.el9_4 | ALSA-2024:4776 |
| AlmaLinux 9 | cups-filesystem | Fixed | 1:2.3.3op2-27.el9_4 | ALSA-2024:4776 |
| AlmaLinux 9 | cups-ipptool | Fixed | 1:2.3.3op2-27.el9_4 | ALSA-2024:4776 |
| AlmaLinux 9 | cups-libs | Fixed | 1:2.3.3op2-27.el9_4 | ALSA-2024:4776 |
| AlmaLinux 9 | cups-lpd | Fixed | 1:2.3.3op2-27.el9_4 | ALSA-2024:4776 |
| AlmaLinux 9 | cups-printerapp | Fixed | 1:2.3.3op2-27.el9_4 | ALSA-2024:4776 |
| AlmaLinux 8 | cups | Fixed | 1:2.2.6-60.el8_10 | ALSA-2024:4265 |
| AlmaLinux 8 | cups-client | Fixed | 1:2.2.6-60.el8_10 | ALSA-2024:4265 |
| AlmaLinux 8 | cups-devel | Fixed | 1:2.2.6-60.el8_10 | ALSA-2024:4265 |
| AlmaLinux 8 | cups-filesystem | Fixed | 1:2.2.6-60.el8_10 | ALSA-2024:4265 |
| AlmaLinux 8 | cups-ipptool | Fixed | 1:2.2.6-60.el8_10 | ALSA-2024:4265 |
| AlmaLinux 8 | cups-libs | Fixed | 1:2.2.6-60.el8_10 | ALSA-2024:4265 |
| AlmaLinux 8 | cups-lpd | Fixed | 1:2.2.6-60.el8_10 | ALSA-2024:4265 |
| Rocky Linux 8 | cups | Fixed | 1:2.2.6-60.el8_10 | RLSA-2024:4265 |
| Alpine Linux 3.24 | cups | Fixed | 2.4.9-r0 | ALPINE-CVE-2024-35235 |
| Alpine Linux 3.23 | cups | Fixed | 2.4.9-r0 | ALPINE-CVE-2024-35235 |
| Alpine Linux 3.22 | cups | Fixed | 2.4.9-r0 | ALPINE-CVE-2024-35235 |
| Alpine Linux 3.21 | cups | Fixed | 2.4.9-r0 | ALPINE-CVE-2024-35235 |
| Alpine Linux 3.20 | cups | Fixed | 2.4.9-r0 | ALPINE-CVE-2024-35235 |
| Alpine Linux 3.19 | cups | Fixed | 2.4.9-r0 | ALPINE-CVE-2024-35235 |
| Alpine Linux 3.18 | cups | Fixed | 2.4.9-r0 | ALPINE-CVE-2024-35235 |
| Alpine Linux 3.17 | cups | Fixed | 2.4.9-r0 | ALPINE-CVE-2024-35235 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenPrinting cups: affected: <= 2.4.8
References
- https://github.com/OpenPrinting/cups/security/advisories/GHSA-vvwp-mv6j-hw6f
- https://github.com/OpenPrinting/cups/commit/ff1f8a623e090dee8a8aadf12a6a4b25efac143d
- https://git.launchpad.net/ubuntu/+source/apparmor/tree/profiles/apparmor.d/abstractions/user-tmp#n21
- https://github.com/OpenPrinting/cups/blob/aba917003c8de55e5bf85010f0ecf1f1ddd1408e/cups/http-addr.c#L229-L240
- http://www.openwall.com/lists/oss-security/2024/06/11/1
- http://www.openwall.com/lists/oss-security/2024/06/12/4
- http://www.openwall.com/lists/oss-security/2024/06/12/5
- https://lists.debian.org/debian-lts-announce/2024/06/msg00001.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.