REDHAT-BUG-2553611: Medium severity OpenPrinting CUPS vulnerability
OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. Prior to 2.4.20, copybanner() in scheduler/ipp.c uses the attacker-controlled IPP attributes-natural-language value as a directory component beneath DataDir/banners when processing a job-sheets banner. The job-sheets value must first match a registered banner basename, and the traversed path must contain a matching reachable basename; selecting an arbitrary target as demonstrated additionally requires pre-positioned path state such as a symlink with that basename. Subject to the scheduler's filesystem and sandbox access, path separators in the language value can escape the intended banner directory, make the root scheduler open the reachable file, and copy its bytes into a job-sheet spool object that a configured backend can deliver to an attacker-observable endpoint. This issue is fixed in version 2.4.20.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.4.20
Event History
Frequently Asked Questions
Which deployments are realistically exposed?
Deployments running OpenPrinting CUPS before 2.4.20 may be exposed if they process job-sheets banners and use a configured backend that can deliver the resulting job-sheet spool data to an endpoint observable by an attacker. Exploitation is also constrained by the scheduler's filesystem and sandbox access.
What does an attacker need to exploit this issue?
The attacker needs control of the IPP attributes-natural-language value while a job-sheets banner is processed. The job-sheets value must match a registered banner basename, and the traversed path must contain a reachable file with the same basename; choosing an arbitrary target additionally requires pre-positioned path state, such as a symlink with that basename.
How can I tell whether a system may be affected?
Systems using a version earlier than 2.4.20 are affected by the described behavior. Review whether job-sheets banners are enabled, whether banner paths can be influenced through IPP natural-language attributes, and whether a backend could expose generated job-sheet spool contents to an attacker-observable destination.
What should be done if patching is not immediately possible?
Reduce exposure by preventing untrusted users from submitting IPP jobs that can influence the natural-language attribute, and avoid processing job-sheets banners where possible. Also restrict backend destinations that could reveal job-sheet spool contents and limit accessible filesystem paths through scheduler sandboxing and permissions.