Exploit database

Vulnerability

CVE-2024-47175

libppd's ppdCreatePPDFromIPP2 function does not sanitize IPP attributes when creating the PPD buffer

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:N

Description

CUPS is a standards-based, open-source printing system, and `libppd` can be used for legacy PPD file support. The `libppd` function `ppdCreatePPDFromIPP2` does not sanitize IPP attributes when creating the PPD buffer. When used in combination with other functions such as `cfGetPrinterAttributes5`, can result in user controlled input and ultimately code execution via Foomatic. This vulnerability can be part of an exploit chain leading to remote code execution (RCE), as described in CVE-2024-47176.

CVE Program

Exploit source choices

6 sources
CUPS IPP Attributes LAN Remote Code Execution
MSF-multi--misc--cups_ipp_remote_code_executionMetasploitLinux,Unix / remotePreferred

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.

2024-09-26cups_ipp_remote_code_execution.rb
malwaretech/cve-2024-47176-scanner
GH-e016d61853a744f34b89dad791e9caefGitHubUnofficial GitHub source

A simple scanner for identifying vulnerable cups-browsed instances on your network

2024-10-072 files · 67 stars
l0n3m4n/cve-2024-47176
GH-d78f31cc01c34b922c3ec3e85af79307GitHubUnofficial GitHub source

Unauthenticated RCE on cups-browsed (exploit and nuclei template)

2024-10-035 files · 17 stars
lkarlslund/jugular
GH-2878f43b48c6f4cf6ab0bcddc084dc9bGitHubUnofficial GitHub source

Ultrafast CUPS-browsed scanner (CVE-2024-47176)

2024-09-297 files · 7 stars
alie-n/cups-vulnerability-exploit
GH-3e0dba1d29777c986c35ee27ef298870GitHubUnofficial GitHub source

alie-n/cups-vulnerability-exploit source repository

2024-11-0422 files · 0 stars