Skip to content

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

CriticalCVSS 9.8 EPSS 63.6% Framework module
Published
Updated
Exploit status
Public exploit available
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

14 packages: 13 fixed.

PackageAffectedFixed inStatus
alpine/cups(Alpine v3.19) < 2.4.9-r1 2.4.9-r1 Fixed
alpine/cups(Alpine v3.20) < 2.4.9-r1 2.4.9-r1 Fixed
alpine/cups(Alpine v3.21) < 2.4.10-r1 2.4.10-r1 Fixed
alpine/cups(Alpine v3.22) < 2.4.10-r1 2.4.10-r1 Fixed
alpine/cups(Alpine v3.23) < 2.4.10-r1 2.4.10-r1 Fixed
alpine/cups(Alpine v3.24) < 2.4.10-r1 2.4.10-r1 Fixed
debian/cups(Debian 12) < 2.4.2-3+deb12u8; = 2.4.2-3; = 2.4.2-3+deb12u1; = 2.4.2-3+deb12u2 +5 more 2.4.2-3+deb12u8 Fixed
debian/cups(Debian 13) < 2.4.10-2 2.4.10-2 Fixed
debian/cups(Debian 14) < 2.4.10-2 2.4.10-2 Fixed
OpenPrinting libppd <= 2.0.0; <= 2.1b1; = 2.1-beta1*; = <= 2.1b1 after 2.0.0, 2.1b1 Fixed
ubuntu/cups(Ubuntu 22.04) < 2.4.1op1-1ubuntu4.11 2.4.1op1-1ubuntu4.11 Fixed
ubuntu/cups(Ubuntu 24.04) < 2.4.7-1.2ubuntu7.3 2.4.7-1.2ubuntu7.3 Fixed
ubuntu/libppd(Ubuntu 24.04) < 2:2.0.0-0ubuntu4.1 2:2.0.0-0ubuntu4.1 Fixed
debian linux = 11.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/cups(Debian:12) < 2.4.2-3+deb12u8 2.4.2-3+deb12u8
debian/cups(Debian:12) = 2.4.2-3 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u1 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u2 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u3 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u4 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u5 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u6 No fix listed
debian/cups(Debian:12) = 2.4.2-3+deb12u7 No fix listed
debian/cups(Debian:13) < 2.4.10-2 2.4.10-2
debian/cups(Debian:14) < 2.4.10-2 2.4.10-2
ubuntu/cups(Ubuntu:22.04) < 2.4.1op1-1ubuntu4.11 2.4.1op1-1ubuntu4.11
OpenPrinting libppd = <= 2.1b1 No fix listed
OpenPrinting libppd <= 2.1b1 No fix listed
alpine/cups(Alpine:v3.19) < 2.4.9-r1 2.4.9-r1
alpine/cups(Alpine:v3.20) < 2.4.9-r1 2.4.9-r1
alpine/cups(Alpine:v3.21) < 2.4.10-r1 2.4.10-r1
alpine/cups(Alpine:v3.22) < 2.4.10-r1 2.4.10-r1
alpine/cups(Alpine:v3.23) < 2.4.10-r1 2.4.10-r1
alpine/cups(Alpine:v3.24) < 2.4.10-r1 2.4.10-r1
ubuntu/cups(Ubuntu:24.04) < 2.4.7-1.2ubuntu7.3 2.4.7-1.2ubuntu7.3
ubuntu/libppd(Ubuntu:24.04) < 2:2.0.0-0ubuntu4.1 2:2.0.0-0ubuntu4.1
OpenPrinting libppd <= 2.0.0 No fix listed
OpenPrinting libppd = 2.1-beta1* No fix listed
debian linux = 11.0 No fix listed

References