ID CVE-2011-2964
Summary foomaticrip.c in foomatic-rip in foomatic-filters in Foomatic 4.0.6 allows remote attackers to execute arbitrary code via a crafted *FoomaticRIPCommandLine field in a .ppd file, a different vulnerability than CVE-2011-2697.
References
Vulnerable Configurations
  • cpe:2.3:a:linuxfoundation:foomatic:4.0.6
    cpe:2.3:a:linuxfoundation:foomatic:4.0.6
CVSS
Base: 6.8 (as of 01-08-2011 - 10:44)
Impact:
Exploitability:
CWE CWE-94
CAPEC
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family SuSE Local Security Checks
    NASL id SUSE9_12818.NASL
    description The foomatic print filters of the hplip package contained a remote code execution vulnerability. Remote users, if allowed to access a print server such as CUPS, could execute arbitrary commands as lp system user. - CVSS v2 Base Score: 6.8 (AV:N/AC:M/Au:N/C:P/I:P/A:P): Input Validation (CWE-20). (CVE-2011-2697)
    last seen 2019-02-21
    modified 2016-12-21
    plugin id 55826
    published 2011-08-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=55826
    title SuSE9 Security Update : foomatic-filters (YOU Patch Number 12818)
  • NASL family OracleVM Local Security Checks
    NASL id ORACLEVM_OVMSA-2016-0040.NASL
    description The remote OracleVM system is missing necessary patches to address critical security updates : - Also consider back tick and semicolon as illegal shell escape characters. - CVE-2015-8327, (CVE-2015-8560) - Prevent foomatic-rip overrun (bug #1214534).
    last seen 2019-02-21
    modified 2018-07-24
    plugin id 90139
    published 2016-03-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90139
    title OracleVM 3.3 / 3.4 : foomatic (OVMSA-2016-0040)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2011-1110.NASL
    description From Red Hat Security Advisory 2011:1110 : An updated foomatic package that fixes one security issue is now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Foomatic is a comprehensive, spooler-independent database of printers, printer drivers, and driver descriptions. The package also includes spooler-independent command line interfaces to manipulate queues and to print files and manipulate print jobs. foomatic-rip is a print filter written in C. An input sanitization flaw was found in the foomatic-rip print filter. An attacker could submit a print job with the username, title, or job options set to appear as a command line option that caused the filter to use a specified PostScript printer description (PPD) file, rather than the administrator-set one. This could lead to arbitrary code execution with the privileges of the 'lp' user. (CVE-2011-2964) All foomatic users should upgrade to this updated package, which contains a backported patch to resolve this issue.
    last seen 2019-02-21
    modified 2018-08-13
    plugin id 68320
    published 2013-07-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=68320
    title Oracle Linux 6 : foomatic (ELSA-2011-1110)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20110801_FOOMATIC_ON_SL6_X.NASL
    description Foomatic is a comprehensive, spooler-independent database of printers, printer drivers, and driver descriptions. The package also includes spooler-independent command line interfaces to manipulate queues and to print files and manipulate print jobs. foomatic-rip is a print filter written in C. An input sanitization flaw was found in the foomatic-rip print filter. An attacker could submit a print job with the username, title, or job options set to appear as a command line option that caused the filter to use a specified PostScript printer description (PPD) file, rather than the administrator-set one. This could lead to arbitrary code execution with the privileges of the 'lp' user. (CVE-2011-2964) All foomatic users should upgrade to this updated package, which contains a backported patch to resolve this issue.
    last seen 2019-02-21
    modified 2018-12-31
    plugin id 61104
    published 2012-08-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=61104
    title Scientific Linux Security Update : foomatic on SL6.x i386/x86_64
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2011-9575.NASL
    description This update fixes improper sanitization of command line options. (CVE-2011-2964) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-07-12
    plugin id 55874
    published 2011-08-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=55874
    title Fedora 14 : foomatic-4.0.7-2.fc14 (2011-9575)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2011-9554.NASL
    description This update fixes improper sanitization of command line options. (CVE-2011-2964) Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2015-10-20
    plugin id 55873
    published 2011-08-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=55873
    title Fedora 15 : foomatic-4.0.7-3.fc15 (2011-9554)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_4_FOOMATIC-FILTERS-110811.NASL
    description The foomatic print filters of the hplip package contained a remote code execution vulnerability. Remote users, if allowed to access a print server such as CUPS, could execute arbitrary commands as lp system user. CVE-2011-2964: CVSS v2 Base Score: 6.8 (moderate) (AV:N/AC:M/Au:N/C:P/I:P/A:P): Code Injection (CWE-94)
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 75843
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=75843
    title openSUSE Security Update : foomatic-filters (openSUSE-SU-2011:0892-1)
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-1194-1.NASL
    description It was discovered that the foomatic-rip Foomatic filter incorrectly handled command-line options. An attacker could use this flaw to cause Foomatic to execute arbitrary code as the 'lp' user. In the default installation, attackers would be isolated by the CUPS AppArmor profile. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-12-01
    plugin id 55957
    published 2011-08-23
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=55957
    title Ubuntu 8.04 LTS / 10.04 LTS / 10.10 / 11.04 : foomatic-filters vulnerabilities (USN-1194-1)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201203-07.NASL
    description The remote host is affected by the vulnerability described in GLSA-201203-07 (foomatic-filters: User-assisted execution of arbitrary code) The foomatic-rip filter improperly handles command-line arguments, including those issued by FoomaticRIPCommandLine fields in PPD files. Impact : A remote attacker could entice a user to open a specially crafted PPD file, possibly resulting in execution of arbitrary code with the privileges of the system user 'lp'. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-12-05
    plugin id 58217
    published 2012-03-06
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=58217
    title GLSA-201203-07 : foomatic-filters: User-assisted execution of arbitrary code
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-2380.NASL
    description It was discovered that the foomatic-filters, a support package for setting up printers, allowed authenticated users to submit crafted print jobs which would execute shell commands on the print servers. CVE-2011-2697 was assigned to the vulnerability in the Perl implementation included in lenny, and CVE-2011-2964 to the vulnerability affecting the C reimplementation part of squeeze.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 57520
    published 2012-01-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=57520
    title Debian DSA-2380-1 : foomatic-filters - shell command injection
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_FOOMATIC-FILTERS-110808.NASL
    description The foomatic print filters of the hplip package contained a remote code execution vulnerability. Remote users, if allowed to access a print server such as CUPS, could execute arbitrary commands as lp system user. - CVE-2011-2697: CVSS v2 Base Score: 6.8 (AV:N/AC:M/Au:N/C:P/I:P/A:P) : Input Validation (CWE-20)
    last seen 2019-02-21
    modified 2016-12-21
    plugin id 55829
    published 2011-08-12
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=55829
    title SuSE 11.1 Security Update : foomatic-filters (SAT Patch Number 4966)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_11_3_FOOMATIC-FILTERS-110810.NASL
    description The foomatic print filters of the hplip package contained a remote code execution vulnerability. Remote users, if allowed to access a print server such as CUPS, could execute arbitrary commands as lp system user. CVE-2011-2964: CVSS v2 Base Score: 6.8 (moderate) (AV:N/AC:M/Au:N/C:P/I:P/A:P): Code Injection (CWE-94)
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 75503
    published 2014-06-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=75503
    title openSUSE Security Update : foomatic-filters (openSUSE-SU-2011:0892-1)
  • NASL family Mandriva Local Security Checks
    NASL id MANDRIVA_MDVSA-2011-125.NASL
    description A vulnerability has been discovered and corrected in foomatic-filters : foomatic-rip allows remote attackers to execute arbitrary code via a crafted *FoomaticRIPCommandLine field in a .ppd file (CVE-2011-2697, CVE-2011-2964). Packages for 2009.0 are provided as of the Extended Maintenance Program. Please visit this link to learn more: http://store.mandriva.com/product_info.php?cPath=149 products_id=490 The updated packages have been patched to correct this issue.
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 55849
    published 2011-08-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=55849
    title Mandriva Linux Security Advisory : foomatic-filters (MDVSA-2011:125)
  • NASL family Solaris Local Security Checks
    NASL id SOLARIS11_FOOMATIC_20121120.NASL
    description The remote Solaris system is missing necessary patches to address security updates : - foomatic-rip-hplip in HP Linux Imaging and Printing (HPLIP) 3.11.5 allows remote attackers to execute arbitrary code via a crafted *FoomaticRIPCommandLine field in a .ppd file. (CVE-2011-2697) - foomaticrip.c in foomatic-rip in foomatic-filters in Foomatic 4.0.6 allows remote attackers to execute arbitrary code via a crafted *FoomaticRIPCommandLine field in a .ppd file, a different vulnerability than CVE-2011-2697. (CVE-2011-2964)
    last seen 2019-02-21
    modified 2018-11-15
    plugin id 80613
    published 2015-01-19
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=80613
    title Oracle Solaris Third-Party Patch Update : foomatic (multiple_vulnerabilities_in_foomatic)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2011-1110.NASL
    description An updated foomatic package that fixes one security issue is now available for Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this update as having moderate security impact. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available from the CVE link in the References section. Foomatic is a comprehensive, spooler-independent database of printers, printer drivers, and driver descriptions. The package also includes spooler-independent command line interfaces to manipulate queues and to print files and manipulate print jobs. foomatic-rip is a print filter written in C. An input sanitization flaw was found in the foomatic-rip print filter. An attacker could submit a print job with the username, title, or job options set to appear as a command line option that caused the filter to use a specified PostScript printer description (PPD) file, rather than the administrator-set one. This could lead to arbitrary code execution with the privileges of the 'lp' user. (CVE-2011-2964) All foomatic users should upgrade to this updated package, which contains a backported patch to resolve this issue.
    last seen 2019-02-21
    modified 2018-11-26
    plugin id 55756
    published 2011-08-02
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=55756
    title RHEL 6 : foomatic (RHSA-2011:1110)
redhat via4
advisories
bugzilla
id 727016
title CVE-2011-2964 foomatic: Improper sanitization of command line option in foomatic-rip (foomatic.c)
oval
AND
  • comment foomatic is earlier than 0:4.0.4-1.el6_1.1
    oval oval:com.redhat.rhsa:tst:20111110005
  • comment foomatic is signed with Red Hat redhatrelease2 key
    oval oval:com.redhat.rhsa:tst:20111110006
  • OR
    • comment Red Hat Enterprise Linux 6 Client is installed
      oval oval:com.redhat.rhba:tst:20111656001
    • comment Red Hat Enterprise Linux 6 Server is installed
      oval oval:com.redhat.rhba:tst:20111656002
    • comment Red Hat Enterprise Linux 6 Workstation is installed
      oval oval:com.redhat.rhba:tst:20111656003
    • comment Red Hat Enterprise Linux 6 ComputeNode is installed
      oval oval:com.redhat.rhba:tst:20111656004
rhsa
id RHSA-2011:1110
released 2011-08-01
severity Moderate
title RHSA-2011:1110: foomatic security update (Moderate)
rpms foomatic-0:4.0.4-1.el6_1.1
refmap via4
confirm
gentoo GLSA-201203-07
mandriva MDVSA-2011:125
mlist
  • [oss-security] 20110713 CVE Request: hplip/foomatic-filters
  • [oss-security] 20110718 Re: CVE Request: hplip/foomatic-filters
  • [oss-security] 20110728 Re: CVE Request: hplip/foomatic-filters
secunia 45477
ubuntu USN-1194-1
xf foomatic-foomatic-code-execution(68994)
Last major update 29-05-2013 - 23:08
Published 29-07-2011 - 16:55
Last modified 28-08-2017 - 21:29
Back to Top