CVE-2011-2722: Low severity hp linux imaging and printing vulnerability

Published Jul 26, 2011
·
Updated

A temporary file handling flaw was reported [1] in prnt/hpijs/hpcupsfax.cpp, the hplip HP CUPS filter. Because a predicatable temporary filename is used (/tmp/hpcupsfax.out), an attacker could use a symlink attack to overwrite an arbitrary file with the privileges of the process running the HP CUPS fax filter.

422 FILE fp; 423 fp = NULL; 424 if (iLogLevel & SAVEPCLFILE) 425 { 426 fp = fopen ("/tmp/hpcupsfax.out", "w"); 427 system ("chmod 666 /tmp/hpcupsfax.out"); 428 } 429 while ((i = read (fdFax, pTmp, iSize)) > 0) 430 { 431 write (STDOUTFILENO, pTmp, i); 432 if (iLogLevel & SAVEPCLFILE && fp) 433 { 434 fwrite (pTmp, 1, i, fp); 435 } 436 } 437 free (pTmp);

This flaw only exists in hplip 3.x and is not present in earlier versions of hplip.

[1] https://bugzilla.novell.com/showbug.cgi?id=704608

Statement:

This issue did not affect the versions of hplip as shipped with Red Hat Enterprise Linux 5. A future update in Red Hat Enterprise Linux 5 (for hplip3) and 6 may address this flaw.

Other sources

The senddatatostdout function in prnt/hpijs/hpcupsfax.cpp in HP Linux Imaging and Printing (HPLIP) 3.x before 3.11.10 allows local users to overwrite arbitrary files via a symlink attack on the /tmp/hpcupsfax.out temporary file.

MITRE

Affected Software

16 affected components
HP Linux Imaging and Printing Project=3.9.6
HP Linux Imaging and Printing Project=3.10.6
HP Linux Imaging and Printing Project=3.11.1
HP Linux Imaging and Printing Project=3.11.3a
HP Linux Imaging and Printing Project=3.9.4b
HP Linux Imaging and Printing Project=3.9.12
HP Linux Imaging and Printing Project=3.9.4
HP Linux Imaging and Printing Project=3.9.10
HP Linux Imaging and Printing Project=3.10.9
HP Linux Imaging and Printing Project=3.9.8
HP Linux Imaging and Printing Project=3.10.5
HP Linux Imaging and Printing Project=3.11.3
HP Linux Imaging and Printing Project=3.9.2
HP Linux Imaging and Printing Project=3.10.2
HP Linux Imaging and Printing Project<=3.11.5
HP Linux Imaging and Printing Project=3.11.7

Event History

Jul 26, 2011
Data Sourced
via Red Hat·05:27 PM
DescriptionSeverityAffected Software
May 25, 2012
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2011-2722?

CVE-2011-2722 has a medium severity due to potential exploitation through a symlink attack.

2

How do I fix CVE-2011-2722?

To fix CVE-2011-2722, update to a patched version of the HP Linux Imaging and Printing Project that addresses the temporary file handling flaw.

3

What are the affected versions for CVE-2011-2722?

Affected versions of the HP Linux Imaging and Printing Project for CVE-2011-2722 include versions up to 3.11.5 and specific versions like 3.9.2, 3.9.4, and others.

4

What type of vulnerability is CVE-2011-2722?

CVE-2011-2722 is a temporary file handling vulnerability that can lead to file overwriting.

5

Who is impacted by CVE-2011-2722?

Users running vulnerable versions of the HP Linux Imaging and Printing Project are impacted by CVE-2011-2722.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203