cve.bz

CVE-2024-35235 Link Following

6.7 mediumExploit referenceEPSS 2.4%Fix available

Medium (6.7). EPSS 2.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.7 medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
2.4% (unchanged from 2.4% a week ago; 2.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 85th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-06-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-59 Improper Link Resolution Before File Access (Link Following)
CWE-252 Unchecked Return Value
OWASP Top 10
A01:2025 Broken Access Control, A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-35235 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-35235?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-35235?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-35235 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
openprinting:cupsthrough 2.4.8
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10cups2.2.10-6+deb10u10DLA-3826-1
Debian12cups2.4.2-3+deb12u6DEBIAN-CVE-2024-35235
Debian13, 14cups2.4.7-2DEBIAN-CVE-2024-35235
Ubuntu20.04:LTScups2.3.1-9ubuntu1.7UBUNTU-CVE-2024-35235 USN-6844-1
Ubuntu22.04:LTScups2.4.1op1-1ubuntu4.9UBUNTU-CVE-2024-35235 USN-6844-1
Ubuntu24.04:LTScups2.4.7-1.2ubuntu7.1UBUNTU-CVE-2024-35235 USN-6844-1
UbuntuPro:16.04:LTScups2.1.3-4ubuntu0.11+esm6UBUNTU-CVE-2024-35235 USN-6844-1
UbuntuPro:18.04:LTScups2.2.7-1ubuntu2.10+esm4UBUNTU-CVE-2024-35235 USN-6844-1
Red Hatenterprise_linux:8::appstreamcups, cups-lpd, cups-devel and 9 more1:2.2.6-60.el8_10RHSA-2024:4265
Red Hatenterprise_linux:8::baseoscups, cups-libs, cups-debuginfo and 5 more1:2.2.6-60.el8_10RHSA-2024:4265
Red Hatenterprise_linux:9::appstreamcups, cups-lpd, cups-devel and 11 more1:2.3.3op2-27.el9_4RHSA-2024:4776
Red Hatenterprise_linux:9::baseoscups, cups-libs, cups-debuginfo and 6 more1:2.3.3op2-27.el9_4RHSA-2024:4776
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamcups, cups-lpd, cups-devel and 9 more1:2.2.6-45.el8_6.5RHSA-2024:4715
Red Hatrhel_aus:8.6::baseos, rhel_e4s:8.6::baseos, rhel_tus:8.6::baseoscups, cups-libs, cups-debuginfo and 5 more1:2.2.6-45.el8_6.5RHSA-2024:4715
Red Hatrhel_eus:8.8::appstreamcups, cups-lpd, cups-devel and 9 more1:2.2.6-51.el8_8.4RHSA-2024:4580
Red Hatrhel_eus:8.8::baseoscups, cups-libs, cups-debuginfo and 5 more1:2.2.6-51.el8_8.4RHSA-2024:4580
Red Hatrhel_eus:9.2::appstreamcups, cups-lpd, cups-devel and 11 more1:2.3.3op2-16.el9_2.2RHSA-2024:5644
Red Hatrhel_eus:9.2::baseoscups, cups-libs, cups-debuginfo and 6 more1:2.3.3op2-16.el9_2.2RHSA-2024:5644
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 20 morecups2.2.7-150000.3.59.1SUSE-SU-2024:2003-1
SUSELinux Enterprise Micro 5.5cups2.2.7-150000.3.59.1SUSE-SU-2024:2003-2
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5cups1.7.5-20.49.1SUSE-SU-2024:2002-1
SUSELinux Micro 6.0cups2.4.11-1.1SUSE-SU-2025:20090-1
openSUSELeap 15.5, Leap 15.6, Leap Micro 5.3 and 1 morecups2.2.7-150000.3.59.1SUSE-SU-2024:2003-1
openSUSETumbleweedcups2.4.8-1.1openSUSE-SU-2024:14041-1
AlmaLinux8cups, cups-lpd, cups-libs and 4 more1:2.2.6-60.el8_10ALSA-2024:4265
AlmaLinux9cups, cups-lpd, cups-libs and 5 more1:2.3.3op2-27.el9_4ALSA-2024:4776
Rocky Linux8cups1:2.2.6-60.el8_10RLSA-2024:4265
Alpinev3.17, v3.18, v3.19 and 5 morecups2.4.9-r0ALPINE-CVE-2024-35235
Azure Linux2cups2.3.3op2-9AZL-42592
Azure Linux3cups2.4.10-1AZL-42579
Alpaquita23, streamcups2.4.9-r0BELL-CVE-2024-35235

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The CVE-2024-35235 vulnerability is classified as moderate severity rather than important primarily due to its requirement for elevated privileges and specific preconditions for exploitation. The vulnerability necessitates the ability to edit the cupsd.conf file, which typically requires administrative access. Furthermore, successful exploitation hinges on creating a symbolic link in a writable directory and manipulating the Listen directive within cupsd.conf. While this can lead to arbitrary chmod operations and potentially compromise system files, the precondition of administrative access significantly reduces the likelihood of exploitation by unauthorized users, thereby mitigating the overall impact and severity of the issue.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8cups-1:2.2.6-60.el8_10Fixed 2024-07-02RHSA-2024:4265
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportcups-1:2.2.6-45.el8_6.5Fixed 2024-07-24RHSA-2024:4715
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicecups-1:2.2.6-45.el8_6.5Fixed 2024-07-24RHSA-2024:4715
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionscups-1:2.2.6-45.el8_6.5Fixed 2024-07-24RHSA-2024:4715
Red Hat Enterprise Linux 8.8 Extended Update Supportcups-1:2.2.6-51.el8_8.4Fixed 2024-07-16RHSA-2024:4580
Red Hat Enterprise Linux 9cups-1:2.3.3op2-27.el9_4Fixed 2024-07-23RHSA-2024:4776
Red Hat Enterprise Linux 9.2 Extended Update Supportcups-1:2.3.3op2-16.el9_2.2Fixed 2024-08-20RHSA-2024:5644
Red Hat Enterprise Linux 10cupsNot affected
Red Hat Enterprise Linux 6cupsOut of support scope
Red Hat Enterprise Linux 7cupsOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-35235.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON