{"id":"CVE-2024-47175","published":"2024-09-26T21:18:25Z","modified":"2025-11-03T22:20:02Z","title":"libppd's ppdCreatePPDFromIPP2 function does not sanitize IPP attributes when creating the PPD buffer","vendor":"OpenPrinting","product":"libppd","tier":"core","eol":null,"affectedVersions":[{"vendor":"OpenPrinting","product":"libppd","versions":["<= 2.1b1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-09-27T14:43:04.963185Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The libppd library's ppdCreatePPDFromIPP2 function, used for legacy PPD file support in OpenPrinting's libppd, fails to sanitize IPP attributes when it builds the PPD buffer. An attacker who can supply printer attributes that reach this function over the network, without authentication or user interaction, can achieve code execution through Foomatic when the function is combined with cfGetPrinterAttributes5.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:12:01Z"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.63607,"percentile":0.99234,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":3,"pulses":[{"name":"ACTUALIZACION | Long Term Support (LTS) channel for ChromeOS - Major update from 120 -&gt; 126 Chrome Releases","url":"https://otx.alienvault.com/pulse/67001accebe7ac7738d5053c","created":"2024-10-04"},{"name":"Critical Linux CUPS Printing System Flaws Could Allow Remote Command Execution","url":"https://otx.alienvault.com/pulse/66f79d146f77699c76532842","created":"2024-09-28"},{"name":"Critical Flaws in UNIX/Linux Printing System Enable Remote Code Execution","url":"https://otx.alienvault.com/pulse/66f704e78d659ab692fbb616","created":"2024-09-27"}],"provenance":"machine"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/OpenPrinting/libppd/security/advisories/GHSA-7xfx-47qg-grp6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/OpenPrinting/cups-browsed/security/advisories/GHSA-rj88-6mr5-rcw8","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-p9rh-jxmq-gq47","tags":["x_refsource_MISC"]},{"url":"https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-w63j-6g73-wmg5","tags":["x_refsource_MISC"]},{"url":"https://www.cups.org","tags":["x_refsource_MISC"]},{"url":"https://www.evilsocket.net/2024/09/26/Attacking-UNIX-systems-via-CUPS-Part-I","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2024/09/27/3","tags":[]},{"url":"https://github.com/OpenPrinting/libppd/commit/d681747ebf12602cb426725eb8ce2753211e2477","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00047.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241011-0001/","tags":[]},{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0016","tags":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2024-42297","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-42297","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"metasploit":[{"name":"CUPS IPP Attributes LAN Remote Code Execution","module":"exploit/multi/misc/cups_ipp_remote_code_execution","type":"exploit","disclosureDate":"2024-09-26","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/misc/cups_ipp_remote_code_execution.rb"}],"first":{"date":"2024-09-26","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/misc/cups_ipp_remote_code_execution.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-09-26","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-47175","provenance":"source"},{"date":"2024-09-26","kind":"exploit-public","label":"First public exploit: Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/misc/cups_ipp_remote_code_execution.rb","provenance":"source"}],"speed":{"daysToPublicExploit":0,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":32.2,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.85,"detail":"percentile 0.9923"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":1.37,"detail":"3 pulses"},{"name":"CVSS severity","points":6.02,"detail":"base score 8.6"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}