This module exploits vulnerabilities in OpenPrinting CUPS, which is running by default on most Linux distributions. The vulnerabilities allow an attacker on the LAN to advertise a malicious printer that triggers remote code execution when a victim sends a print job to the malicious printer. Successful exploitation requires user interaction, but no CUPS services need to be reachable via accessible ports. Code execution occurs in the context of the lp user. Affected versions are cups-browsed <= 2.0.1, libcupsfilters <= 2.1b1, libppd <= 2.1b1, and cups-filters <= 2.0.1.
Vulnerability
CVE-2024-47176
cups-browsed binds to `INADDR_ANY:631`, trusting any packet from any source
Vulnerability details
- Score
- 5.3
- Severity
- medium
CVSS 3.1 · GitHub_M
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NDescription
CUPS is a standards-based, open-source printing system, and `cups-browsed` contains network printing functionality including, but not limited to, auto-discovering print services and shared printers. `cups-browsed` binds to `INADDR_ANY:631`, causing it to trust any packet from any source, and can cause the `Get-Printer-Attributes` IPP request to an attacker controlled URL. When combined with other vulnerabilities, such as CVE-2024-47076, CVE-2024-47175, and CVE-2024-47177, an attacker can execute arbitrary commands remotely on the target machine without authentication when a malicious printer is printed to.
CVE ProgramExploit source choices
12 sourcesA simple scanner for identifying vulnerable cups-browsed instances on your network
crackercat/feed source repository
Unauthenticated RCE on cups-browsed (exploit and nuclei template)
Scanner
PoC honeypot for detecting exploit attempts against CVE-2024-47177
POC scanner for CVE-2024-47176
Ultrafast CUPS-browsed scanner (CVE-2024-47176)
Vulnerability Scanner for CUPS: CVE-2024-47176
A Mass Scanner designed to detect the CVE-2024-47176 vulnerability across systems running the Common Unix Printing System (CUPS).
alie-n/cups-vulnerability-exploit source repository
Automated VirtualBox lab environment to exploit CVE-2024-47176 — an unauthenticated RCE vulnerability in CUPS — using a custom Python exploit and Kali Linux.