Vulnerability · Published Sep 26, 2024 · Assigned by GitHub_M

CVE-2024-47175libppd's ppdCreatePPDFromIPP2 function does not sanitize IPP attributes when creating the PPD buffer

High 8.6

In plain English

A high-severity improper input validation in libppd from OpenPrinting. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 63.6% (higher than 99.2% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.6High
Exploit odds (30 days)63.6%top 0.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling2Metasploit, Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8cups1:2.2.6-62.el8_10ALSA-2025:0083
AlmaLinux:9cups1:2.3.3op2-31.el9_5ALSA-2024:9470
AlmaLinux:8cups-client1:2.2.6-62.el8_10ALSA-2025:0083
AlmaLinux:9cups-client1:2.3.3op2-31.el9_5ALSA-2024:9470
AlmaLinux:8cups-devel1:2.2.6-62.el8_10ALSA-2025:0083
AlmaLinux:9cups-devel1:2.3.3op2-31.el9_5ALSA-2024:9470
AlmaLinux:8cups-filesystem1:2.2.6-62.el8_10ALSA-2025:0083
AlmaLinux:9cups-filesystem1:2.3.3op2-31.el9_5ALSA-2024:9470
AlmaLinux:8cups-filters1.20.0-35.el8_10ALSA-2024:7463
AlmaLinux:9cups-filters1.28.7-17.el9_4ALSA-2024:7346
AlmaLinux:8cups-filters-devel1.20.0-35.el8_10ALSA-2024:7463
AlmaLinux:9cups-filters-devel1.28.7-17.el9_4ALSA-2024:7346
AlmaLinux:8cups-filters-libs1.20.0-35.el8_10ALSA-2024:7463
AlmaLinux:9cups-filters-libs1.28.7-17.el9_4ALSA-2024:7346
AlmaLinux:8cups-ipptool1:2.2.6-62.el8_10ALSA-2025:0083
AlmaLinux:9cups-ipptool1:2.3.3op2-31.el9_5ALSA-2024:9470
AlmaLinux:8cups-libs1:2.2.6-62.el8_10ALSA-2025:0083
AlmaLinux:9cups-libs1:2.3.3op2-31.el9_5ALSA-2024:9470
AlmaLinux:8cups-lpd1:2.2.6-62.el8_10ALSA-2025:0083
AlmaLinux:9cups-lpd1:2.3.3op2-31.el9_5ALSA-2024:9470
AlmaLinux:9cups-printerapp1:2.3.3op2-31.el9_5ALSA-2024:9470
Alpine:v3.20cups2.4.9-r1ALPINE-CVE-2024-47175
Alpine:v3.21cups2.4.10-r1ALPINE-CVE-2024-47175
Alpine:v3.22cups2.4.10-r1ALPINE-CVE-2024-47175
Alpine:v3.23cups2.4.10-r1ALPINE-CVE-2024-47175
Alpine:v3.24cups2.4.10-r1ALPINE-CVE-2024-47175
Debian:12cups2.4.2-3+deb12u8DEBIAN-CVE-2024-47175
Debian:12cups2.4.2-3+deb12u8DSA-5779-1
Debian:13cups2.4.10-2DEBIAN-CVE-2024-47175
Debian:14cups2.4.10-2DEBIAN-CVE-2024-47175
Rocky Linux:8cups1:2.2.6-62.el8_10RLSA-2025:0083
Rocky Linux:9cups1:2.3.3op2-31.el9_5RLSA-2024:9470
Rocky Linux:8cups-filters0:1.20.0-35.el8_10RLSA-2024:7463
Rocky Linux:9cups-filters0:1.28.7-17.el9_4RLSA-2024:7346
Ubuntu:22.04:LTScups2.4.1op1-1ubuntu4.11USN-7041-1
Ubuntu:22.04:LTScups2.4.1op1-1ubuntu4.11UBUNTU-CVE-2024-47175
Ubuntu:24.04:LTScups2.4.7-1.2ubuntu7.3USN-7041-1
Ubuntu:24.04:LTScups2.4.7-1.2ubuntu7.3UBUNTU-CVE-2024-47175
Ubuntu:24.04:LTSlibppd2:2.0.0-0ubuntu4.1UBUNTU-CVE-2024-47175
Ubuntu:24.04:LTSlibppd2:2.0.0-0ubuntu4.1USN-7045-1

Affected products (as reported)

VendorProductVersions
OpenPrinting libppd <= 2.1b1

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

References