CVE-2015-2265
NoneCVSS
—
EPSS
3.0%
Published
Mar 24, 2015
CISA due date
—
Cloudanix analysis
A printing software component does not safely handle information sent by network printers, allowing attackers to run their own commands on the computer handling print jobs.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The remove_bad_chars function fails to sanitize consecutive shell metacharacters in model or PDL fields returned by remote IPP printers, enabling arbitrary command injection into the cups-browsed process.
Why it matters to the business
Systems running affected print-filter software can be compromised remotely without authentication, resulting in potential loss of control over print servers, data exposure, or disruption of printing services across the organization.
How an attack unfolds
An attacker deploys or compromises an IPP printer on the network; when cups-browsed queries it during discovery, the printer returns model or PDL values containing shell metacharacters that bypass the incomplete sanitization and execute attacker-chosen commands on the host.
How to fix it
Upgrade cups-filters to version 1.0.66 or later on all affected systems; disable the cups-browsed service if network printer discovery is not required.
How to confirm the fix worked
Verify installed cups-filters package version is 1.0.66 or newer; inspect source or binary for the updated remove_bad_chars implementation and test that metacharacter sequences no longer execute commands.
Typical attack path
- Attacker places a malicious or compromised IPP printer on a reachable network segment
- cups-browsed periodically queries available printers via IPP
- Printer responds with crafted model or PDL fields containing shell metacharacters
- remove_bad_chars fails to neutralize the input, resulting in command execution
How to detect it
Review cups-browsed logs for printer announcements containing unusual characters in model or PDL fields; inspect process creation events and command lines spawned by the cups-browsed process for suspicious activity.
- cups-browsed
- remove_bad_chars
- model=
- PDL=
What your security team should do
- Apply the 1.0.66 update or newer immediately on all hosts running cups-filters
- Disable cups-browsed where printer auto-discovery is unnecessary
- Restrict network exposure of print services to trusted segments only
- Add monitoring for unexpected process spawns originating from cups-browsed
The record
The remove_bad_chars function in utils/cups-browsed.c in cups-filters before 1.0.66 allows remote IPP printers to execute arbitrary commands via consecutive shell metacharacters in the (1) model or (2) PDL. NOTE: this vulnerability exists because of an incomplete fix for CVE-2014-2707.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | cups-filters | 0 | 1.0.61-5 |
| Debian:12 | cups-filters | 0 | 1.0.61-5 |
| Debian:13 | cups-filters | 0 | 1.0.61-5 |
| Mageia:4 | cups-filters | 0 | 1.0.53-1.1.mga4 |
| SUSE:Linux Enterprise Desktop 12 | cups-filters | 0 | 1.0.58-5.1 |
| SUSE:Linux Enterprise Server 12 | cups-filters | 0 | 1.0.58-5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | cups-filters | 0 | 1.0.58-5.1 |
| Ubuntu:14.04:LTS | cups-filters | 0 | 1.0.52-0ubuntu1.4 |
| openSUSE:Tumbleweed | cups-filters | 0 | 1.8.2-1.11 |
Related vulnerabilities
- CVE-2024-47850 CUPS cups-browsed before 2.5b1 will send an HTTP POST request to an arbitrary destination… Also affects cups-filters
- CVE-2024-47176 CUPS is a standards-based, open-source printing system, and `cups-browsed` contains… Also affects cups-filters
- CVE-2024-47076 CUPS is a standards-based, open-source printing system, and `libcupsfilters` contains the… Also affects cups-filters
- CVE-2024-47175 CUPS is a standards-based, open-source printing system, and `libppd` can be used for… Also affects cups-filters
- CVE-2024-47177 CUPS is a standards-based, open-source printing system, and cups-filters provides… Also affects cups-filters
- CVE-2015-8560 Incomplete blacklist vulnerability in util.c in foomatic-rip in cups-filters 1.0.42… Also affects cups-filters
- CVE-2015-8327 Incomplete blacklist vulnerability in util.c in foomatic-rip in cups-filters 1.0.42… Also affects cups-filters
- CVE-2015-3258 Heap-based buffer overflow in the WriteProlog function in filter/texttopdf.c in texttopdf… Also affects cups-filters