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

Published Sep 23, 2024
·
Updated

A remote attacker who has successfully installed or hijacked an exposed printer (via UPD or mDNS) and was able to return a malicious IPP attribute, the attacker may be able to exploit FoomaticRIPCommandLine to execute arbitrary commands. Due to a lack of sanitization in cfGetPrinterAttributes API and ppdCreatePPDFromIPP2, a vulnerable CUPS system will execute the foomatic-rip filter binary when a print job is sent to the printer.

Other sources

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.

NVD

OpenPrinting libppd could allow a remote attacker to execute arbitrary command on the system, caused by the failure to validate or sanitize the IPP attributes when writing them to a temporary PPD file by the ppdCreatePPDFromIPP2 function in libppd. By sending a specially crafted request using IPP attribute, an attacker could exploit this vulnerability to execute arbitrary commands on the system.

IBM

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

6 affected componentsFixes available
debian/cups<=2.3.3op2-3+deb11u8
2.3.3op2-3+deb11u92.4.2-3+deb12u82.4.10-2
debian/libppd
2:0.10-7.32:0.10-9
F5 Traffix SDC
OpenPrinting libppd<=2.0.0
OpenPrinting libppd=2.1-beta1*
Debian Debian Linux=11.0

Event History

Sep 23, 2024
Data Sourced
via Red Hat·05:10 PM
DescriptionSeverityAffected Software
Sep 26, 2024
CVE Published
via MITRE·09:18 PM
Data Sourced
via MITRE·09:18 PM
DescriptionSeverityWeakness
News Published
via BleepingComputer·10:03 PM
News Published
via BleepingComputer·10:04 PM
Data Sourced
via NVD·10:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyAffected Software
Sep 27, 2024
Advisory Published
via F5·04:25 PM
Sep 30, 2024
Data Sourced
via Launchpad·10:15 PM
Description
Oct 8, 2024
Data Sourced
via Ubuntu·10:15 PM
RemedyDescriptionSeverityAffected Software
Dec 26, 2024
News Published
via Dark Reading·02:00 PM
News Published
via Dark Reading·02:01 PM
Feb 4, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-47175?

CVE-2024-47175 has a high severity rating due to its potential for remote code execution by an attacker.

2

How do I fix CVE-2024-47175?

To fix CVE-2024-47175, upgrade to the patched versions of CUPS and libppd as specified in the advisory.

3

What systems are affected by CVE-2024-47175?

CVE-2024-47175 affects Debian packages of CUPS versions up to 2.3.3op2-3+deb11u8 and specific versions of libppd.

4

Can a remote attacker exploit CVE-2024-47175 without access to the network?

Yes, a remote attacker can exploit CVE-2024-47175 through exposed network interfaces like UPD or mDNS.

5

What types of commands can be executed due to CVE-2024-47175?

CVE-2024-47175 allows attackers to execute arbitrary commands through FoomaticRIPCommandLine.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203