{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35235 exists.","fix":"Apply the vendor's patch.","what":"CVE-2024-35235 is a medium-severity vulnerability in Debian Debian Linux, published on 11 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-35235 and fix it if it is affected.\n\nWhat it is: CVE-2024-35235 is a medium-severity vulnerability in Debian Debian Linux, published on 11 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35235 exists.\n\nAffected product: Debian Debian Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-35235/ (Markdown: https://insights.sbomify.com/CVE-2024-35235/index.md)","id":"CVE-2024-35235","markdown":"https://insights.sbomify.com/CVE-2024-35235/index.md","name":"CVE-2024-35235","record":{"aliases":["ALPINE-CVE-2024-35235","ALSA-2024:4265","ALSA-2024:4776","AZL-42579","AZL-42592","BELL-CVE-2024-35235","CLSA-2024-1734531954","CLSA-2025-1762537123","CLSA-2025-1762537354","CLSA-2025-1762544838","DEBIAN-CVE-2024-35235","DLA-3826-1","GHSA-vvwp-mv6j-hw6f","MGASA-2024-0227","OESA-2024-1758","RHSA-2024:4265","RHSA-2024:4580","RHSA-2024:4715","RHSA-2024:4776","RHSA-2024:5644","RLSA-2024:4265","SUSE-SU-2024:2002-1","SUSE-SU-2024:2003-1","SUSE-SU-2024:2003-2","UBUNTU-CVE-2024-35235","USN-6844-1","openSUSE-SU-2024:14041-1"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["privilege_escalation","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"CUPS printing system","requires_auth":"high_privilege","summary":"Attackers can exploit a symlink in the Listen configuration to change file permissions, leading to arbitrary code execution and privilege escalation.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"cups","vendor":"openprinting"}],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-252","name":"Unchecked Return Value"}],"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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_aus:8.6::baseos","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:8.6::baseos","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:8.8::baseos","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_eus:9.2::baseos","Red Hat:rhel_tus:8.6::appstream","Red Hat:rhel_tus:8.6::baseos","Rocky Linux:8","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Module for Desktop Applications 15 SP5","SUSE:Linux Enterprise Module for Desktop Applications 15 SP6","SUSE:Linux Enterprise Module for Development Tools 15 SP5","SUSE:Linux Enterprise Module for Development Tools 15 SP6","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Leap Micro 5.3","openSUSE:Leap Micro 5.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Cupsd Listen arbitrary chmod 0140777","id":"CVE-2024-35235","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux"],"type":"privilege_escalation","year":"2024"},"n_packages":194,"n_references":8,"next":{"headline":"Audiobookshelf Cross-Site-Scripting vulnerability via crafted ebooks","id":"CVE-2024-35236"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups","purl":"pkg:rpm/almalinux/cups","source":"ALSA-2024:4265"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-client","purl":"pkg:rpm/almalinux/cups-client","source":"ALSA-2024:4265"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-devel","purl":"pkg:rpm/almalinux/cups-devel","source":"ALSA-2024:4265"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-filesystem","purl":"pkg:rpm/almalinux/cups-filesystem","source":"ALSA-2024:4265"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-ipptool","purl":"pkg:rpm/almalinux/cups-ipptool","source":"ALSA-2024:4265"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-libs","purl":"pkg:rpm/almalinux/cups-libs","source":"ALSA-2024:4265"},{"ecosystem":"AlmaLinux:8","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-lpd","purl":"pkg:rpm/almalinux/cups-lpd","source":"ALSA-2024:4265"},{"ecosystem":"AlmaLinux:9","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups","purl":"pkg:rpm/almalinux/cups","source":"ALSA-2024:4776"},{"ecosystem":"AlmaLinux:9","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups-client","purl":"pkg:rpm/almalinux/cups-client","source":"ALSA-2024:4776"},{"ecosystem":"AlmaLinux:9","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups-devel","purl":"pkg:rpm/almalinux/cups-devel","source":"ALSA-2024:4776"},{"ecosystem":"AlmaLinux:9","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups-filesystem","purl":"pkg:rpm/almalinux/cups-filesystem","source":"ALSA-2024:4776"},{"ecosystem":"AlmaLinux:9","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups-ipptool","purl":"pkg:rpm/almalinux/cups-ipptool","source":"ALSA-2024:4776"},{"ecosystem":"AlmaLinux:9","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups-libs","purl":"pkg:rpm/almalinux/cups-libs","source":"ALSA-2024:4776"},{"ecosystem":"AlmaLinux:9","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups-lpd","purl":"pkg:rpm/almalinux/cups-lpd","source":"ALSA-2024:4776"},{"ecosystem":"AlmaLinux:9","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups-printerapp","purl":"pkg:rpm/almalinux/cups-printerapp","source":"ALSA-2024:4776"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups","purl":"pkg:rpm/redhat/cups","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-client","purl":"pkg:rpm/redhat/cups-client","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-client-debuginfo","purl":"pkg:rpm/redhat/cups-client-debuginfo","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-debuginfo","purl":"pkg:rpm/redhat/cups-debuginfo","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-debugsource","purl":"pkg:rpm/redhat/cups-debugsource","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-devel","purl":"pkg:rpm/redhat/cups-devel","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-filesystem","purl":"pkg:rpm/redhat/cups-filesystem","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-ipptool","purl":"pkg:rpm/redhat/cups-ipptool","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-ipptool-debuginfo","purl":"pkg:rpm/redhat/cups-ipptool-debuginfo","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-libs-debuginfo","purl":"pkg:rpm/redhat/cups-libs-debuginfo","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-lpd","purl":"pkg:rpm/redhat/cups-lpd","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-lpd-debuginfo","purl":"pkg:rpm/redhat/cups-lpd-debuginfo","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups","purl":"pkg:rpm/redhat/cups","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-client-debuginfo","purl":"pkg:rpm/redhat/cups-client-debuginfo","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-debuginfo","purl":"pkg:rpm/redhat/cups-debuginfo","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-debugsource","purl":"pkg:rpm/redhat/cups-debugsource","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-ipptool-debuginfo","purl":"pkg:rpm/redhat/cups-ipptool-debuginfo","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-libs","purl":"pkg:rpm/redhat/cups-libs","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-libs-debuginfo","purl":"pkg:rpm/redhat/cups-libs-debuginfo","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["1:2.2.6-60.el8_10"],"introduced":["0"],"last_affected":[],"package":"cups-lpd-debuginfo","purl":"pkg:rpm/redhat/cups-lpd-debuginfo","source":"RHSA-2024:4265"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups","purl":"pkg:rpm/redhat/cups","source":"RHSA-2024:4776"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups-client","purl":"pkg:rpm/redhat/cups-client","source":"RHSA-2024:4776"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups-client-debuginfo","purl":"pkg:rpm/redhat/cups-client-debuginfo","source":"RHSA-2024:4776"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups-debuginfo","purl":"pkg:rpm/redhat/cups-debuginfo","source":"RHSA-2024:4776"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:2.3.3op2-27.el9_4"],"introduced":["0"],"last_affected":[],"package":"cups-debugsource","purl":"pkg:rpm/redhat/cups-debugsource","source":"RHSA-2024:4776"}],"prev":{"headline":"Discourse vulnerable to stored-dom XSS via Facebook Oneboxes","id":"CVE-2024-35234"},"products":["cups"],"published":"2024-06-11","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-21","vendors":["OpenPrinting"]},"summary":"Attackers can exploit a symlink in the Listen configuration to change file permissions, leading to arbitrary code execution and privilege escalation.","url":"https://insights.sbomify.com/CVE-2024-35235/"}