6.7

CVE-2024-35235: Cupsd Listen arbitrary chmod 0140777

Analyzed
AliasesALPINE-CVE-2024-35235MGASA-2024-0227SUSE-SU-2024:2002-1
Published 11-06-2024Last modified 21-02-2025

Vulnerability summary

CVE-2024-35235 is a medium (CVSS 6.7) vulnerability in debian debian_linux. EPSS estimates a 2.42% chance of exploitation in the next 30 days, higher than 84.7% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Routine

Not severe (CVSS 4.4, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.7/10
010
Medium · v3.1 (NVD)
EPSS score
2.42%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2github, reference

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 11-06-2024
    PublishedVulnerability first disclosed.
  2. 21-02-2025
    Last 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

EPSS trend

Probability

2.42%

Chance of exploitation in the next 30 days

Percentile

85%

Versus all other CVEs

30-day change

No change 0.00 pp

From 2.42% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

2 found
  • githubUnverified

    Cups

    Maturity: poc

  • referenceUnverified

    Exploit Reference (openwall.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.

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
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
Show all 38 references