CVEfocus › CVE database › CVE-2024-35235

CVE-2024-35235Cupsd Listen arbitrary chmod 0140777

CVSS 4.4 MediumEPSS 0.7% (higher than 49% of CVEs)Published 2024-06-11Updated 2025-02-21Assigner: GitHub_M

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.

CWE-252CWE-59

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

45Fixed
2Fix pending
12Will not fix
8Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04cupsFixed2.4.7-1.2ubuntu7.1UBUNTU-CVE-2024-35235
Ubuntu 22.04cupsFixed2.4.1op1-1ubuntu4.9UBUNTU-CVE-2024-35235
Ubuntu 20.04cupsFixed2.3.1-9ubuntu1.7UBUNTU-CVE-2024-35235
Ubuntu 18.04cupsFix pending2.2.7-1ubuntu2.10+esm4 (Ubuntu Pro)UBUNTU-CVE-2024-35235
Ubuntu 16.04cupsFix pending2.1.3-4ubuntu0.11+esm6 (Ubuntu Pro)UBUNTU-CVE-2024-35235
Debian 14cupsFixed2.4.7-2DEBIAN-CVE-2024-35235
Debian 13cupsFixed2.4.7-2DEBIAN-CVE-2024-35235
Debian 12cupsFixed2.4.2-3+deb12u6DEBIAN-CVE-2024-35235
Red Hat Enterprise Linux 10cupsNot affected
Red Hat Enterprise Linux 10cups-clientNot affected
Red Hat Enterprise Linux 10cups-develNot affected
Red Hat Enterprise Linux 10cups-filesystemNot affected
Red Hat Enterprise Linux 10cups-ipptoolNot affected
Red Hat Enterprise Linux 10cups-libsNot affected
Red Hat Enterprise Linux 10cups-lpdNot affected
Red Hat Enterprise Linux 10cups-printerappNot affected
Red Hat Enterprise Linux 9cupsFixed1:2.3.3op2-27.el9_4RHSA-2024:4776
Red Hat Enterprise Linux 9cups-clientFixed1:2.3.3op2-27.el9_4RHSA-2024:4776
Red Hat Enterprise Linux 9cups-develFixed1:2.3.3op2-27.el9_4RHSA-2024:4776
Red Hat Enterprise Linux 9cups-filesystemFixed1:2.3.3op2-27.el9_4RHSA-2024:4776
Red Hat Enterprise Linux 9cups-ipptoolFixed1:2.3.3op2-27.el9_4RHSA-2024:4776
Red Hat Enterprise Linux 9cups-libsFixed1:2.3.3op2-27.el9_4RHSA-2024:4776
Red Hat Enterprise Linux 9cups-lpdFixed1:2.3.3op2-27.el9_4RHSA-2024:4776
Red Hat Enterprise Linux 9cups-printerappFixed1:2.3.3op2-27.el9_4RHSA-2024:4776
Red Hat Enterprise Linux 8cupsFixed1:2.2.6-60.el8_10RHSA-2024:4265
Red Hat Enterprise Linux 8cups-clientFixed1:2.2.6-60.el8_10RHSA-2024:4265
Red Hat Enterprise Linux 8cups-develFixed1:2.2.6-60.el8_10RHSA-2024:4265
Red Hat Enterprise Linux 8cups-filesystemFixed1:2.2.6-60.el8_10RHSA-2024:4265
Red Hat Enterprise Linux 8cups-ipptoolFixed1:2.2.6-60.el8_10RHSA-2024:4265
Red Hat Enterprise Linux 8cups-libsFixed1:2.2.6-60.el8_10RHSA-2024:4265
Red Hat Enterprise Linux 8cups-lpdFixed1:2.2.6-60.el8_10RHSA-2024:4265
Red Hat Enterprise Linux 7cupsWill not fix
Out of support scope
Red Hat Enterprise Linux 7cups-clientWill not fix
Out of support scope
Red Hat Enterprise Linux 7cups-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7cups-filesystemWill not fix
Out of support scope
Red Hat Enterprise Linux 7cups-ipptoolWill not fix
Out of support scope
Red Hat Enterprise Linux 7cups-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 7cups-lpdWill not fix
Out of support scope
Red Hat Enterprise Linux 6cupsWill not fix
Out of support scope
Red Hat Enterprise Linux 6cups-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6cups-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6cups-lpdWill not fix
Out of support scope
Red Hat Enterprise Linux 6cups-phpWill not fix
Out of support scope
AlmaLinux 9cupsFixed1:2.3.3op2-27.el9_4ALSA-2024:4776
AlmaLinux 9cups-clientFixed1:2.3.3op2-27.el9_4ALSA-2024:4776
AlmaLinux 9cups-develFixed1:2.3.3op2-27.el9_4ALSA-2024:4776
AlmaLinux 9cups-filesystemFixed1:2.3.3op2-27.el9_4ALSA-2024:4776
AlmaLinux 9cups-ipptoolFixed1:2.3.3op2-27.el9_4ALSA-2024:4776
AlmaLinux 9cups-libsFixed1:2.3.3op2-27.el9_4ALSA-2024:4776
AlmaLinux 9cups-lpdFixed1:2.3.3op2-27.el9_4ALSA-2024:4776
AlmaLinux 9cups-printerappFixed1:2.3.3op2-27.el9_4ALSA-2024:4776
AlmaLinux 8cupsFixed1:2.2.6-60.el8_10ALSA-2024:4265
AlmaLinux 8cups-clientFixed1:2.2.6-60.el8_10ALSA-2024:4265
AlmaLinux 8cups-develFixed1:2.2.6-60.el8_10ALSA-2024:4265
AlmaLinux 8cups-filesystemFixed1:2.2.6-60.el8_10ALSA-2024:4265
AlmaLinux 8cups-ipptoolFixed1:2.2.6-60.el8_10ALSA-2024:4265
AlmaLinux 8cups-libsFixed1:2.2.6-60.el8_10ALSA-2024:4265
AlmaLinux 8cups-lpdFixed1:2.2.6-60.el8_10ALSA-2024:4265
Rocky Linux 8cupsFixed1:2.2.6-60.el8_10RLSA-2024:4265
Alpine Linux 3.24cupsFixed2.4.9-r0ALPINE-CVE-2024-35235
Alpine Linux 3.23cupsFixed2.4.9-r0ALPINE-CVE-2024-35235
Alpine Linux 3.22cupsFixed2.4.9-r0ALPINE-CVE-2024-35235
Alpine Linux 3.21cupsFixed2.4.9-r0ALPINE-CVE-2024-35235
Alpine Linux 3.20cupsFixed2.4.9-r0ALPINE-CVE-2024-35235
Alpine Linux 3.19cupsFixed2.4.9-r0ALPINE-CVE-2024-35235
Alpine Linux 3.18cupsFixed2.4.9-r0ALPINE-CVE-2024-35235
Alpine Linux 3.17cupsFixed2.4.9-r0ALPINE-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.

References

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.