Arbitrary permission changes via unchecked socket binding
Published Jun 11, 2024 · Updated Feb 21, 2025
Improper link handling in OpenPrinting CUPS 2.4.8 and earlier allows local users to make files world writable through cupsd. In httpAddrListen, cupsd ignores failed unlink and bind calls, then applies chmod mode 0140777 to a configured Unix-socket path that can resolve through an attacker-planted symbolic link. Exploitation requires the ability to edit cupsd.conf or win a daemon-startup race; on Ubuntu, writable CUPS configuration can be chained to root command execution.
Summary
What happened
Improper link handling in OpenPrinting CUPS 2.4.8 and earlier allows local users to make files world writable through cupsd. In httpAddrListen, cupsd ignores failed unlink and bind calls, then applies chmod mode 0140777 to a configured Unix-socket path that can resolve through an attacker-planted symbolic link. Exploitation requires the ability to edit cupsd.conf or win a daemon-startup race; on Ubuntu, writable CUPS configuration can be chained to root command execution.
The record
- CVE
- CVE-2024-35235
- Published
- Jun 11, 2024
- Updated
- Feb 21, 2025
- Vendor
- OpenPrinting
- Product
- CUPS
- Classifications
- CWE-59, CWE-252, T1222.002
- Attack vector
- local
- Privileges
- admin
Timeline
How it unfolded
- Jun 11, 2024CVE publishedPublication date reported by the CVE source.
- Feb 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=2.4.8
- Affected versionversion=<= 2.4.8
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA local symbolic-link proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo