CVE-2007-5208

HP Linux Imaging and Printing Project < 2.7.10 - OS Command Injection via Sendmail From Address

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2007-5208. PoCs published by Metasploit, jduck, including Metasploit module exploits/linux/misc/hplip_hpssd_exec.

AI-analyzed exploit summary This Metasploit module exploits a command injection vulnerability in the hpssd.py daemon of HP Linux Imaging and Printing (hplip) versions before 2.7.10. It leverages the 'email-from-address' field in the 'setalerts' request to execute arbitrary commands via shell metacharacters.

Description

hpssd in Hewlett-Packard Linux Imaging and Printing Project (hplip) 1.x and 2.x before 2.7.10 allows context-dependent attackers to execute arbitrary commands via shell metacharacters in a from address, which is not properly handled when invoking sendmail.

Exploits (2)

exploitdb WORKING POC VERIFIED
by Metasploit · rubyremotelinux
https://www.exploit-db.com/exploits/16837

This Metasploit module exploits a command injection vulnerability in the hpssd.py daemon of HP Linux Imaging and Printing (hplip) versions before 2.7.10. It leverages the 'email-from-address' field in the 'setalerts' request to execute arbitrary commands via shell metacharacters.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: HP Linux Imaging and Printing (hplip) versions 1.x and 2.x before 2.7.10
No auth needed
Prerequisites: Target system must have 'sendmail' installed · hpssd.py daemon must be running and accessible
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by jduck · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/misc/hplip_hpssd_exec.rb

This Metasploit module exploits a command injection vulnerability in HPLIP's hpssd.py daemon (CVE-2007-5208) by injecting arbitrary commands into the 'email-from-address' field, which are executed when the daemon sends a test email. The exploit requires the 'sendmail' command to be present on the target system.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: HPLIP (Hewlett-Packard Linux Imaging and Printing) versions 1.x and 2.x before 2.7.10
No auth needed
Prerequisites: Target system must have 'sendmail' installed · hpssd.py daemon must be running and accessible
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (24)

Core 24
Core References
Various Sources x_refsource_misc
https://launchpad.net/bugs/149121
Vendor Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/530-1/
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/en/security/advisories?name=MDKSA-2007:201
Issue Tracking x_refsource_confirm
https://bugzilla.redhat.com/show_bug.cgi?id=319921
Patch, Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2007-0960.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/37183
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2007/3479
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27271
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27202
Issue Tracking x_refsource_confirm
http://bugs.gentoo.org/show_bug.cgi?id=195565
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27224
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27221
Third Party Advisory vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-200710-26.xml
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2008/dsa-1462
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28453
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27397
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id?1018806
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/26054
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27332
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27232
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10692
Various Sources x_refsource_confirm
http://qa.mandriva.com/show_bug.cgi?id=30719

Scores

EPSS 0.6726
EPSS Percentile 99.2%

Details

CWE
CWE-20
Status published
Products (2)
hp/linux_imaging_and_printing_project 1.0
hp/linux_imaging_and_printing_project < 2.7.10
Published Oct 13, 2007
Tracked Since Feb 18, 2026