CVE-2024-35235: debian debian_linux Link Following
Vulnerability summary
CVE-2024-35235 is a medium (CVSS 6.7) Link Following vulnerability in debian debian_linux. EPSS estimates a 2.42% chance of exploitation in the next 30 days, higher than 83.9% of scored vulnerabilities. 2 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 11-06-2024PublishedVulnerability first disclosed.
- 21-02-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · AlpineEcosystem advisory · calculated6.7MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated4.4MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated6.7MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated6.7MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.42%
Chance of exploitation in the next 30 days
Percentile
84%
Versus all other CVEs
30-day change
0.00 pp
From 2.42% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundCups
Maturity: poc
Exploit Reference (openwall.com)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-59Improper Link Resolution Before File Access ('Link Following')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.
- CWE-252Unchecked Return ValueThe product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.
Affected systems
Suse26 products
- cups&distro=SUSE Enterprise Storage 7.1< 2.2.7-150000.3.59.1
- cups&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS< 2.2.7-150000.3.59.1
- cups&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS< 2.2.7-150000.3.59.1
- cups&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 2.2.7-150000.3.59.1
- cups&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 2.2.7-150000.3.59.1
Redhat15 products
- cups< 1:2.2.6-60.el8_10 | < 1:2.2.6-51.el8_8.4 | < 1:2.2.6-45.el8_6.5 | < 1:2.3.3op2-27.el9_4 | < 1:2.3.3op2-16.el9_2.2
- cups-client< 1:2.2.6-60.el8_10 | < 1:2.2.6-51.el8_8.4 | < 1:2.2.6-45.el8_6.5 | < 1:2.3.3op2-27.el9_4 | < 1:2.3.3op2-16.el9_2.2
- cups-client-debuginfo< 1:2.2.6-60.el8_10 | < 1:2.2.6-51.el8_8.4 | < 1:2.2.6-45.el8_6.5 | < 1:2.3.3op2-27.el9_4 | < 1:2.3.3op2-16.el9_2.2
- cups-debuginfo< 1:2.2.6-60.el8_10 | < 1:2.2.6-51.el8_8.4 | < 1:2.2.6-45.el8_6.5 | < 1:2.3.3op2-27.el9_4 | < 1:2.3.3op2-16.el9_2.2
- cups-debugsource< 1:2.2.6-60.el8_10 | < 1:2.2.6-51.el8_8.4 | < 1:2.2.6-45.el8_6.5 | < 1:2.3.3op2-27.el9_4 | < 1:2.3.3op2-16.el9_2.2
Opensuse5 products
- cups&distro=openSUSE Leap 15.5< 2.2.7-150000.3.59.1
- cups&distro=openSUSE Leap 15.6< 2.2.7-150000.3.59.1
- cups&distro=openSUSE Leap Micro 5.3< 2.2.7-150000.3.59.1
- cups&distro=openSUSE Leap Micro 5.4< 2.2.7-150000.3.59.1
- cups&distro=openSUSE Tumbleweed< 2.4.8-1.1
Debian2 products
- cups< 2.4.2-3+deb12u6 | < 2.4.7-2 | < 2.2.10-6+deb10u10
- debian_linuxEOL10.0
Alpine1 product
- cups< 2.4.9-r0
Mageia1 product
- cups< 2.4.6-1.2.mga9
Openprinting1 product
- cups≤ 2.4.8
Ubuntu1 product
- cups< 2.1.3-4ubuntu0.11+esm6 | < 2.2.7-1ubuntu2.10+esm4 | < 2.3.1-9ubuntu1.7 | < 2.4.1op1-1ubuntu4.9 | < 2.4.7-1.2ubuntu7.1
8 vendors · 52 products
References
38 links- github.com/OpenPrinting/cups/security/advisories/GHSA-vvwp-mv6j-hw6fX Refsource CONFIRMREPORTExploitVendor Advisory
- git.launchpad.net/ubuntu/+source/apparmor/tree/profiles/apparmor.d/abstractions/user-tmpX Refsource MISCProduct
- github.com/OpenPrinting/cups/blob/aba917003c8de55e5bf85010f0ecf1f1ddd1408e/cups/http-addr.cX Refsource MISCProduct
- www.openwall.com/lists/oss-security/2024/06/12/4Mailing List
- www.openwall.com/lists/oss-security/2024/06/12/5Mailing List
- www.openwall.com/lists/oss-security/2024/11/08/3Mailing List