CVE-2024-47176: cups-browsed binds to `INADDR_ANY:631`, trusting any packet from any source

Published Sep 23, 2024
·
Updated

CUPS is a standards-based, open-source printing system, and cups-browsed contains network printing functionality including, but not limited to, auto-discovering print services and shared printers. cups-browsed binds to INADDRANY:631, causing it to trust any packet from any source, and can cause the Get-Printer-Attributes IPP request to an attacker controlled URL. When combined with other vulnerabilities, such as CVE-2024-47076, CVE-2024-47175, and CVE-2024-47177, an attacker can execute arbitrary commands remotely on the target machine without authentication when a malicious printer is printed to.

Other sources

CVE-2024-47076CUPS is a standards-based, open-source printing system, and libcupsfilters contains the code of the filters of the former cups-filters package as library functions to be used for the data format conversion tasks needed in Printer Applications. The cfGetPrinterAttributes5 function in libcupsfilters does not sanitize IPP attributes returned from an IPP server. When these IPP attributes are used, for instance, to generate a PPD file, this can lead to attacker controlled data to be provided to the rest of the CUPS system.CVE-2024-47175CUPS 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-2024-47176CUPS is a standards-based, open-source printing system, and cups-browsed contains network printing functionality including, but not limited to, auto-discovering print services and shared printers. cups-browsed binds to INADDRANY:631, causing it to trust any packet from any source, and can cause the Get-Printer-Attributes IPP request to an attacker controlled URL. Due to the service binding to :631 ( INADDRANY ), multiple bugs in cups-browsed can be exploited in sequence to introduce a malicious printer to the system. This chain of exploits ultimately enables an attacker to execute arbitrary commands remotely on the target machine without authentication when a print job is started. This poses a significant security risk over the network. Notably, this vulnerability is particularly concerning as it can be exploited from the public internet, potentially exposing a vast number of systems to remote attacks if their CUPS services are enabled.CVE-2024-47177CUPS is a standards-based, open-source printing system, and cups-filters provides backends, filters, and other software for CUPS 2.x to use on non-Mac OS systems. Any value passed to FoomaticRIPCommandLine via a PPD file will be executed as a user controlled command. When combined with other logic bugs as described in CVE2024-47176, this can lead to remote command execution.

F5

OpenPrinting cups-browsed could allow a remote attacker to obtain sensitive information, caused by the binding on UDP INADDRANY:631 and trusting any packet from any source by the cups-browsed service. By sending a Get-Printer-Attributes IPP request, an attacker could exploit this vulnerability to obtain sensitive information and execute arbitrary code on the system.

IBM

The cups-browsed component is responsible for discovering printers on a network and adding them to the system. In order to do so, the service uses two distinct protocols. For the first one, the service binds on all interfaces on UDP port 631 and accepts a custom packet from any untrusted source. This is exploitable from outside the LAN if the computer is exposed on the public internet. The service also listens for DNS-SD / mDNS advertisements trough AVAHI. n both cases, when a printer is discovered by either the UDP packet or mDNS, its IPP or IPPS url is automatically contacted by cups-browsed and a Get-Printer-Attributes request is sent to it. Among other things, this leaks its kernel version via User-Agent header.

Red Hat

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

3 affected componentsFixes available
debian/cups-filters<=1.28.7-1+deb11u2
1.28.7-1+deb11u31.28.17-3+deb12u11.28.17-6
F5 Traffix SDC
OpenPrinting cups-browsed=2.0.1

Event History

Sep 23, 2024
Data Sourced
via Red Hat·04:43 PM
DescriptionSeverityAffected Software
Sep 26, 2024
CVE Published
via MITRE·09:13 PM
Data Sourced
via MITRE·09:13 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 3, 2024
News Published
via BleepingComputer·10:33 PM
Oct 12, 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-47176?

CVE-2024-47176 is categorized as a critical vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2024-47176?

To mitigate CVE-2024-47176, ensure that you update to the latest versions of the affected packages mentioned in the advisory.

3

What systems are affected by CVE-2024-47176?

CVE-2024-47176 affects the CUPS printing system, specifically versions prior to 1.28.7-1+deb11u3 and F5 Traffix SDC.

4

Can CVE-2024-47176 be exploited remotely?

Yes, CVE-2024-47176 can be exploited remotely, allowing an attacker to execute arbitrary code on the affected system.

5

Is there a workaround for CVE-2024-47176?

As a temporary measure, network restrictions can be implemented to limit access to the vulnerable CUPS service until the system is updated.

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