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-47076
libcupsfilters's cfGetPrinterAttributes5 does not validate IPP attributes returned from an IPP server
Vulnerability details
- Score
- 8.6
- Severity
- high
CVSS 3.1 · GitHub_M
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:NDescription
CUPS is a standards-based, open-source printing system, and `libcupsfilters` contains the code of the filters of the former `cups-filters` package as library functions to be used for the data format conversion tasks needed in Printer Applications. The `cfGetPrinterAttributes5` function in `libcupsfilters` does not sanitize IPP attributes returned from an IPP server. When these IPP attributes are used, for instance, to generate a PPD file, this can lead to attacker controlled data to be provided to the rest of the CUPS system.
CVE ProgramExploit source choices
5 sourcesA simple scanner for identifying vulnerable cups-browsed instances on your network
Unauthenticated RCE on cups-browsed (exploit and nuclei template)
Ultrafast CUPS-browsed scanner (CVE-2024-47176)
alie-n/cups-vulnerability-exploit source repository