CVE-2015-0839
High · 8.1CVSS
8.1
EPSS
6.3%
Published
Aug 2, 2017
CISA due date
—
Cloudanix analysis
Printer software on Linux systems could let attackers secretly replace downloaded components with harmful code that runs on the computer.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- High
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The hp-plugin utility accepts GPG signatures verified only by short key IDs fetched from a keyserver, allowing an attacker controlling the network path to substitute a colliding key and deliver a malicious print plugin that executes with the privileges of the invoking user.
Why it matters to the business
Compromise of Linux workstations or servers that use HPLIP for printing can result in arbitrary code execution, enabling attackers to persist, exfiltrate data, or move laterally without user interaction.
How an attack unfolds
An attacker on the same network or controlling a transit point intercepts the hp-plugin download of a print plugin and its GPG signature, supplies a malicious plugin paired with a short-key-ID collision that verifies successfully, and the utility installs and executes the attacker-controlled code.
How to fix it
Upgrade HPLIP to a version that performs GPG verification using full key fingerprints instead of short key IDs; if an upgrade is unavailable, disable the hp-plugin utility or restrict its use to offline, manually verified plugins.
How to confirm the fix worked
Confirm that hp-plugin source code or configuration now requires full 40-character GPG fingerprints for signature validation and that plugin downloads are performed only over authenticated TLS connections with certificate pinning where possible.
Typical attack path
- Establish man-in-the-middle position on the path between the victim system and the HPLIP keyserver or plugin repository
- Trigger or wait for hp-plugin to request a print plugin download
- Substitute the legitimate plugin and signature with attacker-controlled versions that satisfy the short GPG key ID check
- Allow hp-plugin to complete verification and installation, resulting in execution of the malicious payload
How to detect it
Review system logs for hp-plugin invocations, GPG keyserver queries returning short key IDs, and unexpected files written to HPLIP plugin directories; correlate with network captures showing plugin downloads from unexpected sources.
What your security team should do
- Immediately inventory all systems running HPLIP and prioritize upgrade of the package to the latest maintained release
- Block or monitor outbound connections from hp-plugin to external keyservers until verification logic is confirmed fixed
- Add HPLIP plugin installation events to endpoint monitoring and alert on unexpected binaries or libraries dropped into print-related directories
The record
The hp-plugin utility in HP Linux Imaging and Printing (HPLIP) makes it easier for man-in-the-middle attackers to execute arbitrary code by leveraging use of a short GPG key id from a keyserver to verify print plugin downloads.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | hplip | 0 | 3.15.11+repack0-1 |
| Debian:12 | hplip | 0 | 3.15.11+repack0-1 |
| Debian:13 | hplip | 0 | 3.15.11+repack0-1 |
| Debian:7 | hplip | 0 | 3.12.6-3.1+deb7u2 |
| Mageia:4 | hplip | 0 | 3.13.9-4.1.mga4 |
| Mageia:5 | hplip | 0 | 3.14.6-8.1.mga5 |
| Ubuntu:14.04:LTS | hplip | 0 | 3.14.3-0ubuntu3.4 |
| openSUSE:Tumbleweed | hplip | 0 | 3.16.10-1.1 |
Related vulnerabilities
- CVE-2020-6923 The HP Linux Imaging and Printing (HPLIP) software may potentially be affected by memory… Also affects hplip
- CVE-2011-2697 foomatic-rip-hplip in HP Linux Imaging and Printing (HPLIP) 3.11.5 allows remote… Also affects hplip
- CVE-2010-4267 Stack-based buffer overflow in the hpmud_get_pml function in io/hpmud/pml.c in… Also affects hplip
- CVE-2007-5208 hpssd in Hewlett-Packard Linux Imaging and Printing Project (hplip) 1.x and 2.x before… Also affects hplip
- CVE-2026-8632 A potential security vulnerability has been identified in the HP Linux Imaging and… Also affects hplip
- CVE-2026-8631 A potential security vulnerability has been identified in the HP Linux Imaging and… Also affects hplip
- CVE-2026-11505 A flaw has been found in GL.iNet A1300, AX1800, AXT1800, MT2500, MT3000, MT6000, X3000… CWE-320
- CVE-2026-8739 A vulnerability was detected in Sanluan PublicCMS 5.202506.d. CWE-320