Critical Vulnerability in CUPS Package: Remote Code Execution Risk

cups Updated 02 Oct 2025

Summary

26/09/2024
N/A
Yes i
Unrated
Not published

ALPINE-CVE-2024-47175: CUPS is a standards-based, open-source printing system, and libppd can be used for legacy PPD file support. Affects cups versions < 2.4.9-r1. Fixed in 2.4.9-r1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

CUPS (Common Unix Printing System) is a standards-based, open-source printing system that allows a computer to act as a print server. It provides a variety of features including support for various printer types, a web-based interface for printer management, and the ability to handle print jobs from multiple clients. The package is widely used in Unix-like operating systems, including Alpine Linux. However, it has been found to contain a vulnerability in the libppd library, which can lead to severe security issues.

Vulnerability Detail

The vulnerability arises from the libppd function ppdCreatePPDFromIPP2, which fails to properly sanitize IPP attributes when creating the PPD buffer. This oversight can be exploited when combined with other functions, such as cfGetPrinterAttributes5, allowing user-controlled input to be processed unsafely. The result can lead to remote code execution (RCE) through an exploit chain, as detailed in CVE-2024-47176. This vulnerability poses a significant risk, especially in environments where CUPS is used to manage printers across a network.

How To Fix

Minimum fixed version

2.4.9-r1

This is the first release that contains the fix.

sudo apk add --upgrade cups

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider disabling the use of the affected functions or restricting access to the CUPS service until the package can be updated. Ensure that only trusted users have access to the printing system to mitigate potential exploitation.

Conclusion

The vulnerability in the CUPS package poses a significant risk of remote code execution due to improper input handling. It is crucial for users and administrators to update their systems to the patched versions to safeguard against potential exploits. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for cups →

Share this vulnerability

FAQ

The vulnerability allows for remote code execution due to improper sanitization of user input in the libppd library.

You can check if your application is affected by using the Vulert playground at Vulert Scanner without any signup.

Exploitation of this vulnerability can lead to unauthorized access and control over the affected system, potentially allowing attackers to execute arbitrary code.

Yes, patches are available in the updated versions of the CUPS package. Make sure to update to the specified versions to mitigate the risk.

If immediate updates are not possible, implement access controls and disable the affected functions as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for cups.

How To Fix

Minimum fixed version

2.4.9-r1

This is the first release that contains the fix.

sudo apk add --upgrade cups

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback