PT-2024-5078 · Openprinting+10 · Openprinting Cups+10

Rmcnamara-Snyk

·

Published

2024-06-11

·

Updated

2025-02-03

·

CVE-2024-35235

CVSS v3.1

6.7

Medium

VectorAV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions: OpenPrinting CUPS versions 2.4.8 and earlier
Description: The issue is related to the cupsd server, which can be caused to perform an arbitrary chmod of the provided argument when starting with a Listen configuration item pointing to a symbolic link. This can result in world-writable access to the target, allowing the change of permission of any user or system files to be world writable. On Ubuntu systems, this vulnerability is limited to those files modifiable by the cupsd process. It is 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.
Recommendations: For OpenPrinting CUPS versions 2.4.8 and earlier, apply the patch from commit ff1f8a623e090dee8a8aadf12a6a4b25efac143d to resolve the issue. As a temporary workaround, consider restricting access to the Listen configuration item and the FoomaticRIPCommandLine argument to minimize the risk of exploitation.

Exploit

Fix

Unchecked Return Value

Link Following

Weakness Enumeration

Related Identifiers

ALSA-2024:4265
ALSA-2024:4776
ALSA-2024_4265
ALSA-2024_4776
ALSA-2024_7346
ALSA-2024_7463
ALT-PU-2024-13658
ALT-PU-2024-14167
AZL-42579
AZL-42592
BDU:2024-05605
CESA-2024_4265
CVE-2024-35235
DLA-3826-1
GHSA-VVWP-MV6J-HW6F
INFSA-2024_4265
INFSA-2024_4776
MGASA-2024-0227
OESA-2024-1758
OPENSUSE-SU-2024:14041-1
OPENSUSE-SU-2024_2003-1
RHSA-2024:4265
RHSA-2024:4580
RHSA-2024:4715
RHSA-2024:4776
RHSA-2024:5644
RHSA-2024_4265
RHSA-2024_4776
SUSE-SU-2024:2002-1
SUSE-SU-2024:2003-1
SUSE-SU-2024:2003-2
SUSE-SU-2024_2002-1
SUSE-SU-2024_2003-1
SUSE-SU-2025:20090-1
USN-6844-1
USN-6844-2

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Openprinting Cups
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu