Vulnerabilities > CVE-2014-9679 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Apple Cups

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN

Summary

Integer underflow in the cupsRasterReadPixels function in filter/raster.c in CUPS before 2.0.2 allows remote attackers to have unspecified impact via a malformed compressed raster file, which triggers a buffer overflow.

Vulnerable Configurations

Part Description Count
Application
Apple
121
OS
Canonical
4
OS
Fedoraproject
2
OS
Opensuse
2

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Nessus

  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20150617_CUPS_ON_SL6_X.NASL
    descriptionA string reference count bug was found in cupsd, causing premature freeing of string objects. An attacker can submit a malicious print job that exploits this flaw to dismantle ACLs protecting privileged operations, allowing a replacement configuration file to be uploaded which in turn allows the attacker to run arbitrary code in the CUPS server (CVE-2015-1158) A cross-site scripting flaw was found in the cups web templating engine. An attacker could use this flaw to bypass the default configuration settings that bind the CUPS scheduler to the
    last seen2020-03-18
    modified2015-06-18
    plugin id84259
    published2015-06-18
    reporterThis script is Copyright (C) 2015-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/84259
    titleScientific Linux Security Update : cups on SL6.x, SL7.x i386/x86_64 (20150617)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text is (C) Scientific Linux.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(84259);
      script_version("2.5");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/02/25");
    
      script_cve_id("CVE-2014-9679", "CVE-2015-1158", "CVE-2015-1159");
    
      script_name(english:"Scientific Linux Security Update : cups on SL6.x, SL7.x i386/x86_64 (20150617)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Scientific Linux host is missing one or more security
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "A string reference count bug was found in cupsd, causing premature
    freeing of string objects. An attacker can submit a malicious print
    job that exploits this flaw to dismantle ACLs protecting privileged
    operations, allowing a replacement configuration file to be uploaded
    which in turn allows the attacker to run arbitrary code in the CUPS
    server (CVE-2015-1158)
    
    A cross-site scripting flaw was found in the cups web templating
    engine. An attacker could use this flaw to bypass the default
    configuration settings that bind the CUPS scheduler to the 'localhost'
    or loopback interface. (CVE-2015-1159)
    
    An integer overflow leading to a heap-based buffer overflow was found
    in the way cups handled compressed raster image files. An attacker
    could create a specially crafted image file, which when passed via the
    cups Raster filter, could cause the cups filter to crash.
    (CVE-2014-9679)
    
    After installing this update, the cupsd daemon will be restarted
    automatically."
      );
      # https://listserv.fnal.gov/scripts/wa.exe?A2=ind1506&L=scientific-linux-errata&F=&S=&P=11940
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?0667d822"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:cups");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:cups-client");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:cups-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:cups-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:cups-filesystem");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:cups-ipptool");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:cups-libs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:cups-lpd");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:cups-php");
      script_set_attribute(attribute:"cpe", value:"x-cpe:/o:fermilab:scientific_linux");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2015/02/19");
      script_set_attribute(attribute:"patch_publication_date", value:"2015/06/17");
      script_set_attribute(attribute:"plugin_publication_date", value:"2015/06/18");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2015-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Scientific Linux Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Scientific Linux " >!< release) audit(AUDIT_HOST_NOT, "running Scientific Linux");
    os_ver = pregmatch(pattern: "Scientific Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Scientific Linux");
    os_ver = os_ver[1];
    if (! preg(pattern:"^7([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Scientific Linux 7.x", "Scientific Linux " + os_ver);
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu >!< "x86_64" && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Scientific Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"SL6", reference:"cups-1.4.2-67.el6_6.1")) flag++;
    if (rpm_check(release:"SL6", reference:"cups-debuginfo-1.4.2-67.el6_6.1")) flag++;
    if (rpm_check(release:"SL6", reference:"cups-devel-1.4.2-67.el6_6.1")) flag++;
    if (rpm_check(release:"SL6", reference:"cups-libs-1.4.2-67.el6_6.1")) flag++;
    if (rpm_check(release:"SL6", reference:"cups-lpd-1.4.2-67.el6_6.1")) flag++;
    if (rpm_check(release:"SL6", reference:"cups-php-1.4.2-67.el6_6.1")) flag++;
    
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"cups-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"cups-client-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"cups-debuginfo-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"cups-devel-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"SL7", reference:"cups-filesystem-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"cups-ipptool-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"cups-libs-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"cups-lpd-1.6.3-17.el7_1.1")) flag++;
    
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "cups / cups-client / cups-debuginfo / cups-devel / cups-filesystem / etc");
    }
    
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-159.NASL
    descriptionPeter De Wachter discovered that CUPS, the Common UNIX Printing System, did not correctly parse compressed raster files. By submitting a specially crafted raster file, a remote attacker could use this vulnerability to trigger a buffer overflow. For the oldstable distribution (squeeze), this problem has been fixed in version 1.4.4-7+squeeze7. For the stable distribution (wheezy), this problem has been fixed in version 1.5.3-5+deb7u5. We recommend that you upgrade your cups packages. NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-17
    modified2015-03-26
    plugin id82142
    published2015-03-26
    reporterThis script is Copyright (C) 2015-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/82142
    titleDebian DLA-159-1 : cups security update
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Debian Security Advisory DLA-159-1. The text
    # itself is copyright (C) Software in the Public Interest, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(82142);
      script_version("1.6");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12");
    
      script_cve_id("CVE-2014-9679");
      script_bugtraq_id(72594);
    
      script_name(english:"Debian DLA-159-1 : cups security update");
      script_summary(english:"Checks dpkg output for the updated packages.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Debian host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Peter De Wachter discovered that CUPS, the Common UNIX Printing
    System, did not correctly parse compressed raster files. By submitting
    a specially crafted raster file, a remote attacker could use this
    vulnerability to trigger a buffer overflow.
    
    For the oldstable distribution (squeeze), this problem has been fixed
    in version 1.4.4-7+squeeze7.
    
    For the stable distribution (wheezy), this problem has been fixed in
    version 1.5.3-5+deb7u5.
    
    We recommend that you upgrade your cups packages.
    
    NOTE: Tenable Network Security has extracted the preceding description
    block directly from the DLA security advisory. Tenable has attempted
    to automatically clean and format it as much as possible without
    introducing additional issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://lists.debian.org/debian-lts-announce/2015/02/msg00013.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://packages.debian.org/source/squeeze-lts/cups"
      );
      script_set_attribute(attribute:"solution", value:"Upgrade the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:cups");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:cups-bsd");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:cups-client");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:cups-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:cups-dbg");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:cups-ppdc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:cupsddk");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcups2");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcups2-dev");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcupscgi1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcupscgi1-dev");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcupsdriver1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcupsdriver1-dev");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcupsimage2");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcupsimage2-dev");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcupsmime1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcupsmime1-dev");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcupsppdc1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:libcupsppdc1-dev");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:6.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2015/02/27");
      script_set_attribute(attribute:"plugin_publication_date", value:"2015/03/26");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2015-2020 Tenable Network Security, Inc.");
      script_family(english:"Debian Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("debian_package.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
    if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    if (deb_check(release:"6.0", prefix:"cups", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"cups-bsd", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"cups-client", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"cups-common", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"cups-dbg", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"cups-ppdc", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"cupsddk", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcups2", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcups2-dev", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcupscgi1", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcupscgi1-dev", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcupsdriver1", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcupsdriver1-dev", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcupsimage2", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcupsimage2-dev", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcupsmime1", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcupsmime1-dev", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcupsppdc1", reference:"1.4.4-7+squeeze7")) flag++;
    if (deb_check(release:"6.0", prefix:"libcupsppdc1-dev", reference:"1.4.4-7+squeeze7")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:deb_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2015-1123.NASL
    descriptionFrom Red Hat Security Advisory 2015:1123 : Updated cups packages that fix multiple security issues are now available for Red Hat Enterprise Linux 6 and 7. Red Hat Product Security has rated this update as having Important security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. CUPS provides a portable printing layer for Linux, UNIX, and similar operating systems. A string reference count bug was found in cupsd, causing premature freeing of string objects. An attacker can submit a malicious print job that exploits this flaw to dismantle ACLs protecting privileged operations, allowing a replacement configuration file to be uploaded which in turn allows the attacker to run arbitrary code in the CUPS server (CVE-2015-1158) A cross-site scripting flaw was found in the cups web templating engine. An attacker could use this flaw to bypass the default configuration settings that bind the CUPS scheduler to the
    last seen2020-06-01
    modified2020-06-02
    plugin id84256
    published2015-06-18
    reporterThis script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/84256
    titleOracle Linux 6 / 7 : cups (ELSA-2015-1123)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Red Hat Security Advisory RHSA-2015:1123 and 
    # Oracle Linux Security Advisory ELSA-2015-1123 respectively.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(84256);
      script_version("2.8");
      script_cvs_date("Date: 2019/09/27 13:00:36");
    
      script_cve_id("CVE-2014-9679", "CVE-2015-1158", "CVE-2015-1159");
      script_bugtraq_id(72594, 75098, 75106);
      script_xref(name:"RHSA", value:"2015:1123");
    
      script_name(english:"Oracle Linux 6 / 7 : cups (ELSA-2015-1123)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Oracle Linux host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "From Red Hat Security Advisory 2015:1123 :
    
    Updated cups packages that fix multiple security issues are now
    available for Red Hat Enterprise Linux 6 and 7.
    
    Red Hat Product Security has rated this update as having Important
    security impact. Common Vulnerability Scoring System (CVSS) base
    scores, which give detailed severity ratings, are available for each
    vulnerability from the CVE links in the References section.
    
    CUPS provides a portable printing layer for Linux, UNIX, and similar
    operating systems.
    
    A string reference count bug was found in cupsd, causing premature
    freeing of string objects. An attacker can submit a malicious print
    job that exploits this flaw to dismantle ACLs protecting privileged
    operations, allowing a replacement configuration file to be uploaded
    which in turn allows the attacker to run arbitrary code in the CUPS
    server (CVE-2015-1158)
    
    A cross-site scripting flaw was found in the cups web templating
    engine. An attacker could use this flaw to bypass the default
    configuration settings that bind the CUPS scheduler to the 'localhost'
    or loopback interface. (CVE-2015-1159)
    
    An integer overflow leading to a heap-based buffer overflow was found
    in the way cups handled compressed raster image files. An attacker
    could create a specially crafted image file, which when passed via the
    cups Raster filter, could cause the cups filter to crash.
    (CVE-2014-9679)
    
    Red Hat would like to thank the CERT/CC for reporting CVE-2015-1158
    and CVE-2015-1159 issues.
    
    All cups users are advised to upgrade to these updated packages, which
    contain backported patches to correct these issues. After installing
    this update, the cupsd daemon will be restarted automatically."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://oss.oracle.com/pipermail/el-errata/2015-June/005129.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://oss.oracle.com/pipermail/el-errata/2015-June/005130.html"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected cups packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:cups");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:cups-client");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:cups-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:cups-filesystem");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:cups-ipptool");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:cups-libs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:cups-lpd");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:cups-php");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:linux:6");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:linux:7");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2015/02/19");
      script_set_attribute(attribute:"patch_publication_date", value:"2015/06/17");
      script_set_attribute(attribute:"plugin_publication_date", value:"2015/06/18");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Oracle Linux Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/OracleLinux", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/OracleLinux")) audit(AUDIT_OS_NOT, "Oracle Linux");
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || !pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux)", string:release)) audit(AUDIT_OS_NOT, "Oracle Linux");
    os_ver = pregmatch(pattern: "Oracle (?:Linux Server|Enterprise Linux) .*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Oracle Linux");
    os_ver = os_ver[1];
    if (! preg(pattern:"^(6|7)([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Oracle Linux 6 / 7", "Oracle Linux " + os_ver);
    
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Oracle Linux", cpu);
    
    flag = 0;
    if (rpm_check(release:"EL6", reference:"cups-1.4.2-67.el6_6.1")) flag++;
    if (rpm_check(release:"EL6", reference:"cups-devel-1.4.2-67.el6_6.1")) flag++;
    if (rpm_check(release:"EL6", reference:"cups-libs-1.4.2-67.el6_6.1")) flag++;
    if (rpm_check(release:"EL6", reference:"cups-lpd-1.4.2-67.el6_6.1")) flag++;
    if (rpm_check(release:"EL6", reference:"cups-php-1.4.2-67.el6_6.1")) flag++;
    
    if (rpm_check(release:"EL7", cpu:"x86_64", reference:"cups-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"EL7", cpu:"x86_64", reference:"cups-client-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"EL7", cpu:"x86_64", reference:"cups-devel-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"EL7", cpu:"x86_64", reference:"cups-filesystem-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"EL7", cpu:"x86_64", reference:"cups-ipptool-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"EL7", cpu:"x86_64", reference:"cups-libs-1.6.3-17.el7_1.1")) flag++;
    if (rpm_check(release:"EL7", cpu:"x86_64", reference:"cups-lpd-1.6.3-17.el7_1.1")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());
      else security_hole(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "cups / cups-client / cups-devel / cups-filesystem / cups-ipptool / etc");
    }
    
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2015-049.NASL
    descriptionUpdated cups packages fix security vulnerability : A malformed file with an invalid page header and compressed raster data can trigger a buffer overflow in cupsRasterReadPixels (CVE-2014-9679).
    last seen2020-06-01
    modified2020-06-02
    plugin id81932
    published2015-03-19
    reporterThis script is Copyright (C) 2015-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/81932
    titleMandriva Linux Security Advisory : cups (MDVSA-2015:049)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_CUPS-150302.NASL
    descriptioncups has been updated to fix one security issue : - A malformed compressed raster file can trigger a buffer overflow in cupsRasterReadPixels. (bnc#917799). (CVE-2014-9679)
    last seen2020-06-01
    modified2020-06-02
    plugin id82019
    published2015-03-24
    reporterThis script is Copyright (C) 2015 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/82019
    titleSuSE 11.3 Security Update : cups (SAT Patch Number 10394)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2015-1123.NASL
    descriptionUpdated cups packages that fix multiple security issues are now available for Red Hat Enterprise Linux 6 and 7. Red Hat Product Security has rated this update as having Important security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. CUPS provides a portable printing layer for Linux, UNIX, and similar operating systems. A string reference count bug was found in cupsd, causing premature freeing of string objects. An attacker can submit a malicious print job that exploits this flaw to dismantle ACLs protecting privileged operations, allowing a replacement configuration file to be uploaded which in turn allows the attacker to run arbitrary code in the CUPS server (CVE-2015-1158) A cross-site scripting flaw was found in the cups web templating engine. An attacker could use this flaw to bypass the default configuration settings that bind the CUPS scheduler to the
    last seen2020-06-01
    modified2020-06-02
    plugin id84258
    published2015-06-18
    reporterThis script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/84258
    titleRHEL 6 / 7 : cups (RHSA-2015:1123)
  • NASL familyOracleVM Local Security Checks
    NASL idORACLEVM_OVMSA-2015-0071.NASL
    descriptionThe remote OracleVM system is missing necessary patches to address critical security updates : - CVE-2015-1158, CVE-2015-1159, CVE-2014-9679 (bug #1229982).
    last seen2020-06-01
    modified2020-06-02
    plugin id84257
    published2015-06-18
    reporterThis script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/84257
    titleOracleVM 3.3 : cups (OVMSA-2015-0071)
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2015-182.NASL
    descriptioncups was updated to fix one security issue. This security issue was fixed : - CVE-2014-9679: A malformed compressed raster file can trigger a buffer overflow in cupsRasterReadPixels (bnc#917799).
    last seen2020-06-05
    modified2015-02-27
    plugin id81562
    published2015-02-27
    reporterThis script is Copyright (C) 2015-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/81562
    titleopenSUSE Security Update : cups (openSUSE-2015-182)
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-2520-1.NASL
    descriptionPeter De Wachter discovered that CUPS incorrectly handled certain malformed compressed raster files. A remote attacker could use this issue to cause CUPS to crash, resulting in a denial of service, or possibly execute arbitrary code. 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 seen2020-06-01
    modified2020-06-02
    plugin id81573
    published2015-02-27
    reporterUbuntu Security Notice (C) 2015-2019 Canonical, Inc. / NASL script (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/81573
    titleUbuntu 10.04 LTS / 12.04 LTS / 14.04 LTS / 14.10 : cups vulnerability (USN-2520-1)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-3172.NASL
    descriptionPeter De Wachter discovered that CUPS, the Common UNIX Printing System, did not correctly parse compressed raster files. By submitting a specially crafted raster file, a remote attacker could use this vulnerability to trigger a buffer overflow.
    last seen2020-03-17
    modified2015-02-26
    plugin id81526
    published2015-02-26
    reporterThis script is Copyright (C) 2015-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/81526
    titleDebian DSA-3172-1 : cups - security update
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201607-06.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201607-06 (CUPS: Buffer overflow) A vulnerability has been discovered in CUPS concerning the handling of compressed raster files. Impact : A remote attacker could possibly execute arbitrary code with the privileges of the process. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id92350
    published2016-07-18
    reporterThis script is Copyright (C) 2016 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/92350
    titleGLSA-201607-06 : CUPS: Buffer overflow
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2015-108.NASL
    descriptionUpdated cups packages fix security vulnerabilities : Cross-site scripting (XSS) vulnerability in scheduler/client.c in Common Unix Printing System (CUPS) before 1.7.2 allows remote attackers to inject arbitrary web script or HTML via the URL path, related to the is_path_absolute function (CVE-2014-2856). In CUPS before 1.7.4, a local user with privileges of group=lp can write symbolic links in the rss directory and use that to gain
    last seen2020-06-01
    modified2020-06-02
    plugin id82361
    published2015-03-30
    reporterThis script is Copyright (C) 2015-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/82361
    titleMandriva Linux Security Advisory : cups (MDVSA-2015:108)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2015-1123.NASL
    descriptionUpdated cups packages that fix multiple security issues are now available for Red Hat Enterprise Linux 6 and 7. Red Hat Product Security has rated this update as having Important security impact. Common Vulnerability Scoring System (CVSS) base scores, which give detailed severity ratings, are available for each vulnerability from the CVE links in the References section. CUPS provides a portable printing layer for Linux, UNIX, and similar operating systems. A string reference count bug was found in cupsd, causing premature freeing of string objects. An attacker can submit a malicious print job that exploits this flaw to dismantle ACLs protecting privileged operations, allowing a replacement configuration file to be uploaded which in turn allows the attacker to run arbitrary code in the CUPS server (CVE-2015-1158) A cross-site scripting flaw was found in the cups web templating engine. An attacker could use this flaw to bypass the default configuration settings that bind the CUPS scheduler to the
    last seen2020-06-01
    modified2020-06-02
    plugin id84276
    published2015-06-19
    reporterThis script is Copyright (C) 2015-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/84276
    titleCentOS 6 / 7 : cups (CESA-2015:1123)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2015-2152.NASL
    descriptionThis update fixes CVE-2014-9679, a buffer overflow when handling CUPS Raster format. 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 seen2020-06-05
    modified2015-02-23
    plugin id81428
    published2015-02-23
    reporterThis script is Copyright (C) 2015-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/81428
    titleFedora 20 : cups-1.7.5-12.fc20 (2015-2152)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2015-2127.NASL
    descriptionThis update fixes CVE-2014-9679, a buffer overflow when handling CUPS Raster format. 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 seen2020-06-05
    modified2015-02-23
    plugin id81427
    published2015-02-23
    reporterThis script is Copyright (C) 2015-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/81427
    titleFedora 21 : cups-1.7.5-15.fc21 (2015-2127)
  • NASL familyAmazon Linux Local Security Checks
    NASL idALA_ALAS-2015-559.NASL
    descriptionA string reference count bug was found in cupsd, causing premature freeing of string objects. An attacker can submit a malicious print job that exploits this flaw to dismantle ACLs protecting privileged operations, allowing a replacement configuration file to be uploaded which in turn allows the attacker to run arbitrary code in the CUPS server (CVE-2015-1158) A cross-site scripting flaw was found in the cups web templating engine. An attacker could use this flaw to bypass the default configuration settings that bind the CUPS scheduler to the
    last seen2020-06-01
    modified2020-06-02
    plugin id84595
    published2015-07-08
    reporterThis script is Copyright (C) 2015-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/84595
    titleAmazon Linux AMI : cups (ALAS-2015-559)
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2019-1432.NASL
    descriptionAccording to the versions of the cups package installed, the EulerOS Virtualization installation on the remote host is affected by the following vulnerabilities : - A cross-site scripting flaw was found in the cups web templating engine. An attacker could use this flaw to bypass the default configuration settings that bind the CUPS scheduler to the
    last seen2020-06-01
    modified2020-06-02
    plugin id124935
    published2019-05-14
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/124935
    titleEulerOS Virtualization 3.0.1.0 : cups (EulerOS-SA-2019-1432)

Redhat

advisories
rhsa
idRHSA-2015:1123
rpms
  • cups-1:1.4.2-67.el6_6.1
  • cups-1:1.6.3-17.ael7b_1.1
  • cups-1:1.6.3-17.el7_1.1
  • cups-client-1:1.6.3-17.ael7b_1.1
  • cups-client-1:1.6.3-17.el7_1.1
  • cups-debuginfo-1:1.4.2-67.el6_6.1
  • cups-debuginfo-1:1.6.3-17.ael7b_1.1
  • cups-debuginfo-1:1.6.3-17.el7_1.1
  • cups-devel-1:1.4.2-67.el6_6.1
  • cups-devel-1:1.6.3-17.ael7b_1.1
  • cups-devel-1:1.6.3-17.el7_1.1
  • cups-filesystem-1:1.6.3-17.ael7b_1.1
  • cups-filesystem-1:1.6.3-17.el7_1.1
  • cups-ipptool-1:1.6.3-17.ael7b_1.1
  • cups-ipptool-1:1.6.3-17.el7_1.1
  • cups-libs-1:1.4.2-67.el6_6.1
  • cups-libs-1:1.6.3-17.ael7b_1.1
  • cups-libs-1:1.6.3-17.el7_1.1
  • cups-lpd-1:1.4.2-67.el6_6.1
  • cups-lpd-1:1.6.3-17.ael7b_1.1
  • cups-lpd-1:1.6.3-17.el7_1.1
  • cups-php-1:1.4.2-67.el6_6.1

References