Foomatic command execution

foomatic-command-execution (17388) The risk level is classified as HighHigh Risk

Description:

Foomatic could allow a remote or local attacker using Common Unix Printing System (CUPS) to execute arbitrary commands on the system with privileges of the lp user, caused by improper validation of user-supplied input in command-lines and environment variables in the foomatic-rip print filter.


Consequences:

Gain Access

Remedy:

Upgrade to the latest version of foomatic (3.0.2 or later), available from the LinuxPrinting.org Download Web page. See References.

For Mandrake Linux:
Upgrade to the latest package of printer-drivers, as listed below. Refer to MandrakeSoft Security Advisory MDKSA-2004:094 : printer-drivers for more information. See References.

Mandrake Linux 9.2: 1.0-116.1.92mdk or later
Mandrake Linux 10.0: 1.0-138.2.100mdk or later

For SuSE Linux:
Upgrade to the latest cups package, as listed below. Refer to SuSE Security Announcement SUSE-SA:2004:031 for more information. See References.

x86
SuSE Linux 9.1: 1.1.20-108.8 or later
SuSE Linux 9.0: 1.1.19-93 or later
SuSE Linux 8.2: 1.1.18-96 or later
SuSE Linux 8.1: 1.1.15-170 or later

x86-64
SuSE Linux 9.1: 1.1.20-108.8.x86_64 or later
SuSE Linux 9.0: 1.1.19-93.x86_64 or later

For SUSE Linux:
Refer to SUSE Security Announcement SUSE-SA:2006:026 for patch, upgrade, or suggested workaround information. See References.

For Trustix Secure Linux:
Upgrade to the latest foomatic-filters package, as listed below. Refer to Trustix Secure Linux Security Advisory #2004-0047 for more information. See References.

Trustix Secure Linux 2.0: 3.0.2-0.1tr or later
Trustix Secure Linux 2.1 and Enterprise Server 2: 3.0.2-1tr or later

For Gentoo Linux:
Upgrade to the latest version of foomatic (3.0.2 or later), as listed in GLSA 200409-24. See References.

For Sun JDS:
Apply the appropriate patch for your system, as listed below. Refer to Sun Alert ID: 57646 for more information. See References.

Linux:
Sun JDS 2003 and Release 2: 9321 or later

For Conectiva Linux:
Upgrade to the latest foomatic-filters package, as listed below. Refer to Conectiva Linux Security Announcement CLSA-2004:880 for more information. See References.

Conectiva Linux10.0: 3.0.1-54575U10_1cl or later
Conectiva Linux 9: 3.0-27082U90_1cl or later

For SCO UnixWare 7.1.4:
Upgrade to the appropriate fixed binaries, as listed in SCO Security Advisory SCOSA-2005.12. See References.

For other distributions:
Contact your vendor for upgrade or patch information.

References:

Platforms Affected:

  • Gentoo Linux
  • LinuxPrinting Foomatic prior to 3.0.2
  • MandrakeSoft Mandrake Linux 10.0 AMD64
  • MandrakeSoft Mandrake Linux 10.0
  • MandrakeSoft Mandrake Linux 9.2
  • MandrakeSoft Mandrake Linux 9.2 AMD64
  • SCO SCO UnixWare 7.1.4
  • Sun JDS 2003
  • Sun JDS Release 2
  • SuSE Linux Enterprise Server 8
  • SUSE SuSE Linux 10.0
  • SUSE SuSE Linux 10.1
  • SUSE SuSE Linux 8.1
  • SUSE SuSE Linux 8.2
  • SUSE SuSE Linux 9.0
  • SUSE SuSE Linux 9.1
  • SUSE SuSE Linux 9.3
  • SuSE SuSE Linux Desktop 1.0
  • SuSE SuSE SLES 9
  • Trustix Enterprise Server 2
  • Trustix Secure Linux 2.0
  • Trustix Secure Linux 2.1

Reported:

Sep 15, 2004

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email xforce@iss.net

Return to the main page