Vulnerability Details : CVE-2024-35235
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.
Products affected by CVE-2024-35235
Please log in to view affected product information.
Exploit prediction scoring system (EPSS) score for CVE-2024-35235
0.48%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 64 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2024-35235
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.4
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
N/A
|
N/A
|
GitHub, Inc. | 2024-06-11 |
4.4
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
0.8
|
3.6
|
GitHub, Inc. | 2024-06-11 |
4.4
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
N/A
|
N/A
|
RedHat-CVE-2024-35235 | 2024-06-11 |
CWE ids for CVE-2024-35235
-
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.Assigned by:
- a0819718-46f1-4df5-94e2-005712e83aaa (Primary)
- security-advisories@github.com (Secondary)
-
The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.Assigned by:
- a0819718-46f1-4df5-94e2-005712e83aaa (Primary)
- security-advisories@github.com (Secondary)
References for CVE-2024-35235
-
https://github.com/OpenPrinting/cups/commit/ff1f8a623e090dee8a8aadf12a6a4b25efac143d
Merge pull request from GHSA-vvwp-mv6j-hw6f · OpenPrinting/cups@ff1f8a6 · GitHub
-
https://github.com/OpenPrinting/cups/blob/aba917003c8de55e5bf85010f0ecf1f1ddd1408e/cups/http-addr.c#L229-L240
cups/cups/http-addr.c at aba917003c8de55e5bf85010f0ecf1f1ddd1408e · OpenPrinting/cups · GitHub
-
https://github.com/OpenPrinting/cups/security/advisories/GHSA-vvwp-mv6j-hw6f
Cupsd Listen arbitrary chmod 0140777 · Advisory · OpenPrinting/cups · GitHub
-
http://www.openwall.com/lists/oss-security/2024/11/08/3
oss-security - Re: CVE-2024-35235 cups: Cupsd Listen arbitrary chmod 0140777
-
http://www.openwall.com/lists/oss-security/2024/06/12/4
oss-security - Re: CVE-2024-35235 cups: Cupsd Listen arbitrary chmod 0140777
-
https://lists.debian.org/debian-lts-announce/2024/06/msg00001.html
[SECURITY] [DLA 3826-1] cups security update
-
https://git.launchpad.net/ubuntu/+source/apparmor/tree/profiles/apparmor.d/abstractions/user-tmp#n21
user-tmp « abstractions « apparmor.d « profiles - ubuntu/+source/apparmor - [no description]
-
http://www.openwall.com/lists/oss-security/2024/06/12/5
oss-security - Re: Re: CVE-2024-35235 cups: Cupsd Listen arbitrary chmod 0140777
-
http://www.openwall.com/lists/oss-security/2024/06/11/1
oss-security - CVE-2024-35235 cups: Cupsd Listen arbitrary chmod 0140777
Jump to