1.2
CWE
59
Advisory Published
CVE Published
Updated

CVE-2011-2722

First published: Tue 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 &amp; SAVE_PCL_FILE) 425 { 426 fp = fopen ("/tmp/hpcupsfax.out", "w"); 427 system ("chmod 666 /tmp/hpcupsfax.out"); 428 } 429 while ((i = read (fdFax, pTmp, iSize)) &gt; 0) 430 { 431 write (STDOUT_FILENO, pTmp, i); 432 if (iLogLevel &amp; SAVE_PCL_FILE &amp;&amp; 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] <a href="https://bugzilla.novell.com/show_bug.cgi?id=704608">https://bugzilla.novell.com/show_bug.cgi?id=704608</a> 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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
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

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203