CVE-2014-2707
NoneCVSS
—
EPSS
1.2%
Published
Apr 17, 2014
CISA due date
—
Cloudanix analysis
Printing software on some computers can be tricked by a fake printer on the same network into running attacker commands.
- Exploitation
- Adjacent Network
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Library
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Allows remote IPP printers to inject arbitrary shell commands via metacharacters in model or PDL fields that are passed into generated System V interface scripts.
Why it matters to the business
Enables remote code execution on Linux systems exposing printing services, risking full host compromise, data access, or lateral movement; low urgency given age and absence of known exploitation campaigns.
How an attack unfolds
Attacker advertises a malicious IPP printer containing shell metacharacters in model or PDL; cups-browsed processes the advertisement, creates a print queue, and executes the injected commands when generating interface scripts.
How to fix it
Upgrade cups-filters to version 1.0.51 or later; disable cups-browsed if automatic printer discovery is not required.
How to confirm the fix worked
Confirm cups-filters version is 1.0.51 or higher; test by submitting an IPP advertisement with metacharacters in model field and verify no command execution occurs.
Typical attack path
- Broadcast crafted IPP printer advertisement containing shell metacharacters in model or PDL
- cups-browsed discovers printer and auto-configures queue
- Shell metacharacters are embedded into generated System V scripts
- Scripts execute attacker commands during queue setup or printing
How to detect it
Review cups-browsed and CUPS logs for unexpected queue creations or errors during printer discovery; search for unusual processes or commands executed around printer advertisement timestamps.
What your security team should do
- Upgrade cups-filters to 1.0.51 or later on all affected systems
- Disable or restrict cups-browsed service where printer discovery is unnecessary
- Segment networks to limit exposure of IPP ports to untrusted devices
The record
cups-browsed in cups-filters 1.0.41 before 1.0.51 allows remote IPP printers to execute arbitrary commands via shell metacharacters in the (1) model or (2) PDL, related to "System V interface scripts generated for queues."
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | cups-filters | 0 | 1.0.51-1 |
| Debian:12 | cups-filters | 0 | 1.0.51-1 |
| Debian:13 | cups-filters | 0 | 1.0.51-1 |
| Mageia:4 | cups-filters | 0 | 1.0.41-3.4.mga4 |
| Ubuntu:14.04:LTS | cups-filters | 0 | 1.0.52-0ubuntu1.1 |
| 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