Skip to content

CVE-2024-35235 Cupsd Listen arbitrary chmod 0140777

MediumCVSS 6.7 EPSS 2.4%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

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.

Upgrade path

20 packages: 19 fixed.

PackageAffectedFixed inStatus
alpine/cups(Alpine v3.17) < 2.4.9-r0 2.4.9-r0 Fixed
alpine/cups(Alpine v3.18) < 2.4.9-r0 2.4.9-r0 Fixed
alpine/cups(Alpine v3.19) < 2.4.9-r0 2.4.9-r0 Fixed
alpine/cups(Alpine v3.20) < 2.4.9-r0 2.4.9-r0 Fixed
alpine/cups(Alpine v3.21) < 2.4.9-r0 2.4.9-r0 Fixed
alpine/cups(Alpine v3.22) < 2.4.9-r0 2.4.9-r0 Fixed
alpine/cups(Alpine v3.23) < 2.4.9-r0 2.4.9-r0 Fixed
alpine/cups(Alpine v3.24) < 2.4.9-r0 2.4.9-r0 Fixed
debian/cups(Debian 12) < 2.4.2-3+deb12u6; = 2.4.2-3; = 2.4.2-3+deb12u1; = 2.4.2-3+deb12u2 +3 more 2.4.2-3+deb12u6 Fixed
debian/cups(Debian 13) < 2.4.7-2 2.4.7-2 Fixed
debian/cups(Debian 14) < 2.4.7-2 2.4.7-2 Fixed
Microsoft azure linux < 2.4.10-1 2.4.10-1 Fixed
Microsoft cbl mariner < 2.3.3op2-9 2.3.3op2-9 Fixed
OpenPrinting cups <= 2.4.8; = <= 2.4.8 after 2.4.8 Fixed
ubuntu/cups(Ubuntu 20.04) < 2.3.1-9ubuntu1.7; = 2.2.12-2ubuntu1; = 2.3.0-6; = 2.3.0-7 +12 more 2.3.1-9ubuntu1.7 Fixed
ubuntu/cups(Ubuntu 22.04) < 2.4.1op1-1ubuntu4.9; = 2.3.3op2-7ubuntu2; = 2.4.1op1-1ubuntu1; = 2.4.1op1-1ubuntu2 +8 more 2.4.1op1-1ubuntu4.9 Fixed
ubuntu/cups(Ubuntu 24.04) < 2.4.7-1.2ubuntu7.1; = 2.4.6-0ubuntu3; = 2.4.7-1.2ubuntu2; = 2.4.7-1.2ubuntu3 +1 more 2.4.7-1.2ubuntu7.1 Fixed
ubuntu/cups(Ubuntu Pro 16.04) < 2.1.3-4ubuntu0.11+esm6; = 2.1.0-4ubuntu3; = 2.1.0-5; = 2.1.0-6 +23 more 2.1.3-4ubuntu0.11+esm6 Fixed
ubuntu/cups(Ubuntu Pro 18.04) < 2.2.7-1ubuntu2.10+esm4; = 2.2.4-7ubuntu2; = 2.2.5-2; = 2.2.6-2 +18 more 2.2.7-1ubuntu2.10+esm4 Fixed
debian linux = 10.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
Microsoft cbl mariner < 2.3.3op2-9 2.3.3op2-9
Microsoft azure linux < 2.4.10-1 2.4.10-1
debian/cups(Debian:12) < 2.4.2-3+deb12u6 2.4.2-3+deb12u6
debian/cups(Debian:12) = 2.4.2-3 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u1 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u2 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u3 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u4 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u5 No fix listed
debian/cups(Debian:13) < 2.4.7-2 2.4.7-2
debian/cups(Debian:14) < 2.4.7-2 2.4.7-2
ubuntu/cups(Ubuntu:22.04) < 2.4.1op1-1ubuntu4.9 2.4.1op1-1ubuntu4.9
OpenPrinting cups = <= 2.4.8 No fix listed
OpenPrinting cups <= 2.4.8 No fix listed
alpine/cups(Alpine:v3.17) < 2.4.9-r0 2.4.9-r0
alpine/cups(Alpine:v3.18) < 2.4.9-r0 2.4.9-r0
alpine/cups(Alpine:v3.19) < 2.4.9-r0 2.4.9-r0
alpine/cups(Alpine:v3.20) < 2.4.9-r0 2.4.9-r0
alpine/cups(Alpine:v3.21) < 2.4.9-r0 2.4.9-r0
alpine/cups(Alpine:v3.22) < 2.4.9-r0 2.4.9-r0
alpine/cups(Alpine:v3.23) < 2.4.9-r0 2.4.9-r0
alpine/cups(Alpine:v3.24) < 2.4.9-r0 2.4.9-r0
ubuntu/cups(Ubuntu:24.04) < 2.4.7-1.2ubuntu7.1 2.4.7-1.2ubuntu7.1
debian linux = 10.0 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) < 2.1.3-4ubuntu0.11+esm6 2.1.3-4ubuntu0.11+esm6
Show 79 more
ProductAffected versionsFixed in
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.0-4ubuntu3 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.0-5 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.0-6 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.0-6ubuntu1 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.0-7 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.2-1 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.2-2 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-1 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-1build1 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-3 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.2 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.3 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.4 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.5 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.6 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.7 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.8 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.9 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.10 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.11 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.11+esm1 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.11+esm2 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.11+esm3 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.11+esm4 No fix listed
ubuntu/cups(Ubuntu:Pro:16.04) = 2.1.3-4ubuntu0.11+esm5 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) < 2.2.7-1ubuntu2.10+esm4 2.2.7-1ubuntu2.10+esm4
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.4-7ubuntu2 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.5-2 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.6-2 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.6-3 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.6-4 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.6-5 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu1 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.1 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.2 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.3 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.4 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.5 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.6 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.7 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.8 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.9 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.10 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.10+esm1 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.10+esm2 No fix listed
ubuntu/cups(Ubuntu:Pro:18.04) = 2.2.7-1ubuntu2.10+esm3 No fix listed
ubuntu/cups(Ubuntu:20.04) < 2.3.1-9ubuntu1.7 2.3.1-9ubuntu1.7
ubuntu/cups(Ubuntu:20.04) = 2.2.12-2ubuntu1 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.0-6 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.0-7 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.0-7ubuntu1 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.1-1ubuntu1 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.1-2 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.1-4 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.1-7 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.1-9ubuntu1 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.1-9ubuntu1.1 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.1-9ubuntu1.2 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.1-9ubuntu1.3 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.1-9ubuntu1.4 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.1-9ubuntu1.5 No fix listed
ubuntu/cups(Ubuntu:20.04) = 2.3.1-9ubuntu1.6 No fix listed
ubuntu/cups(Ubuntu:22.04) = 2.3.3op2-7ubuntu2 No fix listed
ubuntu/cups(Ubuntu:22.04) = 2.4.1op1-1ubuntu1 No fix listed
ubuntu/cups(Ubuntu:22.04) = 2.4.1op1-1ubuntu2 No fix listed
ubuntu/cups(Ubuntu:22.04) = 2.4.1op1-1ubuntu3 No fix listed
ubuntu/cups(Ubuntu:22.04) = 2.4.1op1-1ubuntu4 No fix listed
ubuntu/cups(Ubuntu:22.04) = 2.4.1op1-1ubuntu4.1 No fix listed
ubuntu/cups(Ubuntu:22.04) = 2.4.1op1-1ubuntu4.2 No fix listed
ubuntu/cups(Ubuntu:22.04) = 2.4.1op1-1ubuntu4.4 No fix listed
ubuntu/cups(Ubuntu:22.04) = 2.4.1op1-1ubuntu4.6 No fix listed
ubuntu/cups(Ubuntu:22.04) = 2.4.1op1-1ubuntu4.7 No fix listed
ubuntu/cups(Ubuntu:22.04) = 2.4.1op1-1ubuntu4.8 No fix listed
ubuntu/cups(Ubuntu:24.04) = 2.4.6-0ubuntu3 No fix listed
ubuntu/cups(Ubuntu:24.04) = 2.4.7-1.2ubuntu2 No fix listed
ubuntu/cups(Ubuntu:24.04) = 2.4.7-1.2ubuntu3 No fix listed
ubuntu/cups(Ubuntu:24.04) = 2.4.7-1.2ubuntu7 No fix listed

References