CWE
59 252
Advisory Published
CVE Published
CVE Published
Updated

CVE-2024-35235: Cupsd Listen arbitrary chmod 0140777

First published: Tue Jun 04 2024(Updated: )

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.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
ubuntu/cups<2.2.7-1ubuntu2.10+
2.2.7-1ubuntu2.10+
ubuntu/cups<2.3.1-9ubuntu1.7
2.3.1-9ubuntu1.7
ubuntu/cups<2.4.1
2.4.1
ubuntu/cups<2.4.6-0ubuntu3.1
2.4.6-0ubuntu3.1
ubuntu/cups<2.4.7-1.2ubuntu7.1
2.4.7-1.2ubuntu7.1
ubuntu/cups<2.4.9
2.4.9
ubuntu/cups<2.1.3-4ubuntu0.11+
2.1.3-4ubuntu0.11+
debian/cups<=2.3.3op2-3+deb11u6<=2.3.3op2-3+deb11u2<=2.4.2-3+deb12u5
2.4.10-1
redhat/CUPS<2.4.9
2.4.9

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203