Vulnerabilities > CVE-2008-0411 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Ghostscript 0/8.0.1/8.15

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
ghostscript
CWE-119
nessus
exploit available

Summary

Stack-based buffer overflow in the zseticcspace function in zicc.c in Ghostscript 8.61 and earlier allows remote attackers to execute arbitrary code via a postscript (.ps) file containing a long Range array in a .seticcspace operator.

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.

Exploit-Db

descriptionGhostscript 8.0.1/8.15 zseticcspace() Function Buffer Overflow Vulnerability. CVE-2008-0411. Remote exploit for linux platform
idEDB-ID:31309
last seen2016-02-03
modified2008-02-27
published2008-02-27
reporterWill Drewry
sourcehttps://www.exploit-db.com/download/31309/
titleGhostscript 8.0.1/8.15 - zseticcspace Function Buffer Overflow Vulnerability

Nessus

  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2008-2084.NASL
    descriptionThis update contains a back-ported fix for a security issue that allows malicious PostScript input files to cause a stack-based buffer overflow (CVE-2008-0411). 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-01
    modified2020-06-02
    plugin id31365
    published2008-03-07
    reporterThis script is Copyright (C) 2008-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/31365
    titleFedora 7 : ghostscript-8.15.4-4.fc7 (2008-2084)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2008-2084.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(31365);
      script_version ("1.14");
      script_cvs_date("Date: 2019/08/02 13:32:27");
    
      script_cve_id("CVE-2008-0411");
      script_xref(name:"FEDORA", value:"2008-2084");
    
      script_name(english:"Fedora 7 : ghostscript-8.15.4-4.fc7 (2008-2084)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "This update contains a back-ported fix for a security issue that
    allows malicious PostScript input files to cause a stack-based buffer
    overflow (CVE-2008-0411).
    
    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."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=431536"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2008-March/008546.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?a98967d1"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected ghostscript package."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:ghostscript");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:7");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/03/06");
      script_set_attribute(attribute:"plugin_publication_date", value:"2008/03/07");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2008-2019 Tenable Network Security, Inc.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "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);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^7([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 7.x", "Fedora " + 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, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC7", reference:"ghostscript-8.15.4-4.fc7")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "ghostscript");
    }
    
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200803-14.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-200803-14 (Ghostscript: Buffer overflow) Chris Evans (Google Security) discovered a stack-based buffer overflow within the zseticcspace() function in the file zicc.c when processing a PostScript file containing a long
    last seen2020-06-01
    modified2020-06-02
    plugin id31440
    published2008-03-13
    reporterThis script is Copyright (C) 2008-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/31440
    titleGLSA-200803-14 : Ghostscript: Buffer overflow
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Gentoo Linux Security Advisory GLSA 200803-14.
    #
    # The advisory text is Copyright (C) 2001-2015 Gentoo Foundation, Inc.
    # and licensed under the Creative Commons - Attribution / Share Alike 
    # license. See http://creativecommons.org/licenses/by-sa/3.0/
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(31440);
      script_version("1.15");
      script_cvs_date("Date: 2019/08/02 13:32:44");
    
      script_cve_id("CVE-2008-0411");
      script_bugtraq_id(28017);
      script_xref(name:"GLSA", value:"200803-14");
    
      script_name(english:"GLSA-200803-14 : Ghostscript: Buffer overflow");
      script_summary(english:"Checks for updated package(s) in /var/db/pkg");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Gentoo host is missing one or more security-related
    patches."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "The remote host is affected by the vulnerability described in GLSA-200803-14
    (Ghostscript: Buffer overflow)
    
        Chris Evans (Google Security) discovered a stack-based buffer overflow
        within the zseticcspace() function in the file zicc.c when processing a
        PostScript file containing a long 'Range' array in a .seticcscpate
        operator.
      
    Impact :
    
        A remote attacker could exploit this vulnerability by enticing a user
        to open a specially crafted PostScript file, which could possibly lead
        to the execution of arbitrary code or a Denial of Service.
      
    Workaround :
    
        There is no known workaround at this time."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://security.gentoo.org/glsa/200803-14"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "All Ghostscript ESP users should upgrade to the latest version:
        # emerge --sync
        # emerge --ask --oneshot --verbose '>=app-text/ghostscript-esp-8.15.4-r1'
        All Ghostscript GPL users should upgrade to the latest version:
        # emerge --sync
        # emerge --ask --oneshot --verbose '>=app-text/ghostscript-gpl-8.61-r3'
        All Ghostscript GNU users should upgrade to the latest version:
        # emerge --sync
        # emerge --ask --oneshot --verbose '>=app-text/ghostscript-gnu-8.60.0-r2'"
      );
      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:F/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:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:ghostscript-esp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:ghostscript-gnu");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:gentoo:linux:ghostscript-gpl");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:gentoo:linux");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/03/08");
      script_set_attribute(attribute:"plugin_publication_date", value:"2008/03/13");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2008-2019 Tenable Network Security, Inc.");
      script_family(english:"Gentoo Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Gentoo/release", "Host/Gentoo/qpkg-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("qpkg.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Gentoo/release")) audit(AUDIT_OS_NOT, "Gentoo");
    if (!get_kb_item("Host/Gentoo/qpkg-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    
    if (qpkg_check(package:"app-text/ghostscript-esp", unaffected:make_list("ge 8.15.4-r1"), vulnerable:make_list("lt 8.15.4-r1"))) flag++;
    if (qpkg_check(package:"app-text/ghostscript-gpl", unaffected:make_list("ge 8.61-r3"), vulnerable:make_list("lt 8.61-r3"))) flag++;
    if (qpkg_check(package:"app-text/ghostscript-gnu", unaffected:make_list("ge 8.60.0-r2"), vulnerable:make_list("lt 8.60.0-r2"))) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:qpkg_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = qpkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "Ghostscript");
    }
    
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2008-0155.NASL
    descriptionFrom Red Hat Security Advisory 2008:0155 : Updated ghostscript packages that fix a security issue are now available for Red Hat Enterprise Linux 3, 4, and 5. This update has been rated as having important security impact by the Red Hat Security Response Team. Ghostscript is a program for displaying PostScript files, or printing them to non-PostScript printers. Chris Evans from the Google Security Team reported a stack-based buffer overflow flaw in Ghostscript
    last seen2020-06-01
    modified2020-06-02
    plugin id67660
    published2013-07-12
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/67660
    titleOracle Linux 3 / 4 / 5 : ghostscript (ELSA-2008-0155)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Red Hat Security Advisory RHSA-2008:0155 and 
    # Oracle Linux Security Advisory ELSA-2008-0155 respectively.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(67660);
      script_version("1.9");
      script_cvs_date("Date: 2019/10/25 13:36:07");
    
      script_cve_id("CVE-2008-0411");
      script_bugtraq_id(28017);
      script_xref(name:"RHSA", value:"2008:0155");
    
      script_name(english:"Oracle Linux 3 / 4 / 5 : ghostscript (ELSA-2008-0155)");
      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 2008:0155 :
    
    Updated ghostscript packages that fix a security issue are now
    available for Red Hat Enterprise Linux 3, 4, and 5.
    
    This update has been rated as having important security impact by the
    Red Hat Security Response Team.
    
    Ghostscript is a program for displaying PostScript files, or printing
    them to non-PostScript printers.
    
    Chris Evans from the Google Security Team reported a stack-based
    buffer overflow flaw in Ghostscript's zseticcspace() function. An
    attacker could create a malicious PostScript file that would cause
    Ghostscript to execute arbitrary code when opened. (CVE-2008-0411)
    
    These updated packages also fix a bug, which prevented the pxlmono
    printer driver from producing valid output on Red Hat Enterprise Linux
    4.
    
    All users of ghostscript are advised to upgrade to these updated
    packages, which contain a backported patch to resolve these issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://oss.oracle.com/pipermail/el-errata/2008-February/000525.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://oss.oracle.com/pipermail/el-errata/2008-February/000526.html"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://oss.oracle.com/pipermail/el-errata/2008-February/000528.html"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected ghostscript 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:F/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:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:ghostscript");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:ghostscript-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:ghostscript-gtk");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:oracle:linux:hpijs");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:linux:3");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:linux:4");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:oracle:linux:5");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2008/02/28");
      script_set_attribute(attribute:"patch_publication_date", value:"2008/02/28");
      script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/12");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2013-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:"^(3|4|5)([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Oracle Linux 3 / 4 / 5", "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 && "ia64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Oracle Linux", cpu);
    
    flag = 0;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"ghostscript-7.05-32.1.13")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"ghostscript-7.05-32.1.13")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"ghostscript-devel-7.05-32.1.13")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"ghostscript-devel-7.05-32.1.13")) flag++;
    if (rpm_check(release:"EL3", cpu:"i386", reference:"hpijs-1.3-32.1.13")) flag++;
    if (rpm_check(release:"EL3", cpu:"x86_64", reference:"hpijs-1.3-32.1.13")) flag++;
    
    if (rpm_check(release:"EL4", cpu:"i386", reference:"ghostscript-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"ghostscript-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"ghostscript-devel-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"ghostscript-devel-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"i386", reference:"ghostscript-gtk-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"EL4", cpu:"x86_64", reference:"ghostscript-gtk-7.07-33.2.el4_6.1")) flag++;
    
    if (rpm_check(release:"EL5", reference:"ghostscript-8.15.2-9.1.el5_1.1")) flag++;
    if (rpm_check(release:"EL5", reference:"ghostscript-devel-8.15.2-9.1.el5_1.1")) flag++;
    if (rpm_check(release:"EL5", reference:"ghostscript-gtk-8.15.2-9.1.el5_1.1")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "ghostscript / ghostscript-devel / ghostscript-gtk / hpijs");
    }
    
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-599-1.NASL
    descriptionChris Evans discovered that Ghostscript contained a buffer overflow in its color space handling code. If a user or automated system were tricked into opening a crafted Postscript file, an attacker could cause a denial of service or execute arbitrary code with privileges of the user invoking the program. (CVE-2008-0411). 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 id31848
    published2008-04-11
    reporterUbuntu Security Notice (C) 2008-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/31848
    titleUbuntu 6.06 LTS / 6.10 / 7.04 / 7.10 : ghostscript, gs-esp, gs-gpl vulnerability (USN-599-1)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Ubuntu Security Notice USN-599-1. The text 
    # itself is copyright (C) Canonical, Inc. See 
    # <http://www.ubuntu.com/usn/>. Ubuntu(R) is a registered 
    # trademark of Canonical, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(31848);
      script_version("1.16");
      script_cvs_date("Date: 2019/08/02 13:33:02");
    
      script_cve_id("CVE-2008-0411");
      script_bugtraq_id(28017);
      script_xref(name:"USN", value:"599-1");
    
      script_name(english:"Ubuntu 6.06 LTS / 6.10 / 7.04 / 7.10 : ghostscript, gs-esp, gs-gpl vulnerability (USN-599-1)");
      script_summary(english:"Checks dpkg output for updated packages.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Ubuntu host is missing one or more security-related
    patches."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Chris Evans discovered that Ghostscript contained a buffer overflow in
    its color space handling code. If a user or automated system were
    tricked into opening a crafted Postscript file, an attacker could
    cause a denial of service or execute arbitrary code with privileges of
    the user invoking the program. (CVE-2008-0411).
    
    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."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://usn.ubuntu.com/599-1/"
      );
      script_set_attribute(attribute:"solution", value:"Update 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:F/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:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:ghostscript");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:ghostscript-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:ghostscript-x");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:gs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:gs-aladdin");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:gs-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:gs-esp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:gs-esp-x");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:gs-gpl");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libgs-dev");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libgs-esp-dev");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libgs-esp8");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:canonical:ubuntu_linux:libgs8");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:6.06:-:lts");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:6.10");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:7.04");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:canonical:ubuntu_linux:7.10");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/04/09");
      script_set_attribute(attribute:"plugin_publication_date", value:"2008/04/11");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"Ubuntu Security Notice (C) 2008-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Ubuntu Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/cpu", "Host/Ubuntu", "Host/Ubuntu/release", "Host/Debian/dpkg-l");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("ubuntu.inc");
    include("misc_func.inc");
    
    if ( ! get_kb_item("Host/local_checks_enabled") ) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/Ubuntu/release");
    if ( isnull(release) ) audit(AUDIT_OS_NOT, "Ubuntu");
    release = chomp(release);
    if (! ereg(pattern:"^(6\.06|6\.10|7\.04|7\.10)$", string:release)) audit(AUDIT_OS_NOT, "Ubuntu 6.06 / 6.10 / 7.04 / 7.10", "Ubuntu " + release);
    if ( ! get_kb_item("Host/Debian/dpkg-l") ) 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, "Ubuntu", cpu);
    
    flag = 0;
    
    if (ubuntu_check(osver:"6.06", pkgname:"gs", pkgver:"8.15-4ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"6.06", pkgname:"gs-esp", pkgver:"8.15.2.dfsg.0ubuntu1-0ubuntu1.1")) flag++;
    if (ubuntu_check(osver:"6.06", pkgname:"gs-gpl", pkgver:"8.15-4ubuntu3.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"gs", pkgver:"8.50-1.1ubuntu1.2")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"gs-esp", pkgver:"8.15.2.dfsg.0ubuntu1-0ubuntu4.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"gs-gpl", pkgver:"8.50-1.1ubuntu1.2")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"libgs-esp-dev", pkgver:"8.15.2.dfsg.0ubuntu1-0ubuntu4.1")) flag++;
    if (ubuntu_check(osver:"6.10", pkgname:"libgs-esp8", pkgver:"8.15.2.dfsg.0ubuntu1-0ubuntu4.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"gs", pkgver:"8.54.dfsg.1-5ubuntu0.2")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"gs-esp", pkgver:"8.15.4.dfsg.1-0ubuntu1.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"gs-esp-x", pkgver:"8.15.4.dfsg.1-0ubuntu1.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"gs-gpl", pkgver:"8.54.dfsg.1-5ubuntu0.2")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"libgs-esp-dev", pkgver:"8.15.4.dfsg.1-0ubuntu1.1")) flag++;
    if (ubuntu_check(osver:"7.04", pkgname:"libgs-esp8", pkgver:"8.15.4.dfsg.1-0ubuntu1.1")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"ghostscript", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"ghostscript-doc", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"ghostscript-x", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"gs", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"gs-aladdin", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"gs-common", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"gs-esp", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"gs-esp-x", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"gs-gpl", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"libgs-dev", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"libgs-esp-dev", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    if (ubuntu_check(osver:"7.10", pkgname:"libgs8", pkgver:"8.61.dfsg.1~svn8187-0ubuntu3.4")) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        extra      : ubuntu_report_get()
      );
      exit(0);
    }
    else
    {
      tested = ubuntu_pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "ghostscript / ghostscript-doc / ghostscript-x / gs / gs-aladdin / etc");
    }
    
  • NASL familySuSE Local Security Checks
    NASL idSUSE9_12074.NASL
    descriptionA stack-based buffer overflow was fixed in the ghostscript interpreter, which potentially could be used to execute code or at least crash ghostscript. (CVE-2008-0411)
    last seen2020-06-01
    modified2020-06-02
    plugin id41196
    published2009-09-24
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/41196
    titleSuSE9 Security Update : Ghostscript (YOU Patch Number 12074)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The text description of this plugin is (C) Novell, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(41196);
      script_version("1.8");
      script_cvs_date("Date: 2019/10/25 13:36:31");
    
      script_cve_id("CVE-2008-0411");
    
      script_name(english:"SuSE9 Security Update : Ghostscript (YOU Patch Number 12074)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote SuSE 9 host is missing a security-related patch."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "A stack-based buffer overflow was fixed in the ghostscript
    interpreter, which potentially could be used to execute code or at
    least crash ghostscript. (CVE-2008-0411)"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2008-0411.html"
      );
      script_set_attribute(attribute:"solution", value:"Apply YOU patch number 12074.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:suse:suse_linux");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/02/11");
      script_set_attribute(attribute:"plugin_publication_date", value:"2009/09/24");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2009-2019 Tenable Network Security, Inc.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/SuSE/release", "Host/SuSE/rpm-list");
    
      exit(0);
    }
    
    
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) exit(0, "Local checks are not enabled.");
    if (!get_kb_item("Host/SuSE/release")) exit(0, "The host is not running SuSE.");
    if (!get_kb_item("Host/SuSE/rpm-list")) exit(1, "Could not obtain the list of installed packages.");
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) exit(1, "Failed to determine the architecture type.");
    if (cpu >!< "x86_64" && cpu !~ "^i[3-6]86$") exit(1, "Local checks for SuSE 9 on the '"+cpu+"' architecture have not been implemented.");
    
    
    flag = 0;
    if (rpm_check(release:"SUSE9", reference:"ghostscript-fonts-other-7.07.1rc1-195.11")) flag++;
    if (rpm_check(release:"SUSE9", reference:"ghostscript-fonts-rus-7.07.1rc1-195.11")) flag++;
    if (rpm_check(release:"SUSE9", reference:"ghostscript-fonts-std-7.07.1rc1-195.11")) flag++;
    if (rpm_check(release:"SUSE9", reference:"ghostscript-library-7.07.1rc1-195.11")) flag++;
    if (rpm_check(release:"SUSE9", reference:"ghostscript-serv-7.07.1rc1-195.11")) flag++;
    if (rpm_check(release:"SUSE9", reference:"ghostscript-x11-7.07.1rc1-195.11")) flag++;
    if (rpm_check(release:"SUSE9", reference:"libgimpprint-4.2.6-46.10")) flag++;
    if (rpm_check(release:"SUSE9", reference:"libgimpprint-devel-4.2.6-46.10")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else exit(0, "The host is not affected.");
    
  • NASL familySuSE Local Security Checks
    NASL idSUSE_GHOSTSCRIPT-FONTS-OTHER-4984.NASL
    descriptionA stack-based buffer overflow was fixed in the ghostscript interpreter, which potentially could be used to execute code or at least crash ghostscript. (CVE-2008-0411)
    last seen2020-06-01
    modified2020-06-02
    plugin id31321
    published2008-02-29
    reporterThis script is Copyright (C) 2008-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/31321
    titleSuSE 10 Security Update : Ghostscript (ZYPP Patch Number 4984)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The text description of this plugin is (C) Novell, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(31321);
      script_version ("1.17");
      script_cvs_date("Date: 2019/10/25 13:36:32");
    
      script_cve_id("CVE-2008-0411");
    
      script_name(english:"SuSE 10 Security Update : Ghostscript (ZYPP Patch Number 4984)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote SuSE 10 host is missing a security-related patch."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "A stack-based buffer overflow was fixed in the ghostscript
    interpreter, which potentially could be used to execute code or at
    least crash ghostscript. (CVE-2008-0411)"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://support.novell.com/security/cve/CVE-2008-0411.html"
      );
      script_set_attribute(attribute:"solution", value:"Apply ZYPP patch number 4984.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:suse:suse_linux");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/02/07");
      script_set_attribute(attribute:"plugin_publication_date", value:"2008/02/29");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2008-2019 Tenable Network Security, Inc.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/SuSE/release", "Host/SuSE/rpm-list");
    
      exit(0);
    }
    
    
    include("global_settings.inc");
    include("rpm.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) exit(0, "Local checks are not enabled.");
    if (!get_kb_item("Host/SuSE/release")) exit(0, "The host is not running SuSE.");
    if (!get_kb_item("Host/SuSE/rpm-list")) exit(1, "Could not obtain the list of installed packages.");
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) exit(1, "Failed to determine the architecture type.");
    if (cpu >!< "x86_64" && cpu !~ "^i[3-6]86$") exit(1, "Local checks for SuSE 10 on the '"+cpu+"' architecture have not been implemented.");
    
    
    flag = 0;
    if (rpm_check(release:"SLED10", sp:1, reference:"ghostscript-fonts-other-8.15.3-18.13")) flag++;
    if (rpm_check(release:"SLED10", sp:1, reference:"ghostscript-fonts-std-8.15.3-18.13")) flag++;
    if (rpm_check(release:"SLED10", sp:1, reference:"ghostscript-library-8.15.3-18.13")) flag++;
    if (rpm_check(release:"SLED10", sp:1, reference:"ghostscript-x11-8.15.3-18.13")) flag++;
    if (rpm_check(release:"SLED10", sp:1, reference:"libgimpprint-4.2.7-62.13.6")) flag++;
    if (rpm_check(release:"SLES10", sp:1, reference:"ghostscript-fonts-other-8.15.3-18.13")) flag++;
    if (rpm_check(release:"SLES10", sp:1, reference:"ghostscript-fonts-rus-8.15.3-18.13")) flag++;
    if (rpm_check(release:"SLES10", sp:1, reference:"ghostscript-fonts-std-8.15.3-18.13")) flag++;
    if (rpm_check(release:"SLES10", sp:1, reference:"ghostscript-library-8.15.3-18.13")) flag++;
    if (rpm_check(release:"SLES10", sp:1, reference:"ghostscript-omni-8.15.3-18.13")) flag++;
    if (rpm_check(release:"SLES10", sp:1, reference:"ghostscript-x11-8.15.3-18.13")) flag++;
    if (rpm_check(release:"SLES10", sp:1, reference:"libgimpprint-4.2.7-62.13.6")) flag++;
    if (rpm_check(release:"SLES10", sp:1, reference:"libgimpprint-devel-4.2.7-62.14.6")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else exit(0, "The host is not affected.");
    
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-1510.NASL
    descriptionChris Evans discovered a buffer overflow in the color space handling code of the Ghostscript PostScript/PDF interpreter, which might result in the execution of arbitrary code if a user is tricked into processing a malformed file.
    last seen2020-06-01
    modified2020-06-02
    plugin id31303
    published2008-02-28
    reporterThis script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/31303
    titleDebian DSA-1510-1 : ghostscript - buffer overflow
    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 DSA-1510. The text 
    # itself is copyright (C) Software in the Public Interest, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(31303);
      script_version("1.21");
      script_cvs_date("Date: 2019/08/02 13:32:21");
    
      script_cve_id("CVE-2008-0411");
      script_xref(name:"DSA", value:"1510");
    
      script_name(english:"Debian DSA-1510-1 : ghostscript - buffer overflow");
      script_summary(english:"Checks dpkg output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Debian host is missing a security-related update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Chris Evans discovered a buffer overflow in the color space handling
    code of the Ghostscript PostScript/PDF interpreter, which might result
    in the execution of arbitrary code if a user is tricked into
    processing a malformed file."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://www.debian.org/security/2008/dsa-1510"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "Upgrade the gs-esp and gs-gpl packages.
    
    For the stable distribution (etch), this problem has been fixed in
    version 8.54.dfsg.1-5etch1 of gs-gpl and 8.15.3.dfsg.1-1etch1 of
    gs-esp.
    
    For the old stable distribution (sarge), this problem has been fixed
    in version 8.01-6 of gs-gpl and 7.07.1-9sarge1 of gs-esp."
      );
      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:F/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:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:gs-esp");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:gs-gpl");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:3.1");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:4.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/02/27");
      script_set_attribute(attribute:"plugin_publication_date", value:"2008/02/28");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      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:"3.1", prefix:"gs", reference:"8.01-6")) flag++;
    if (deb_check(release:"3.1", prefix:"gs-esp", reference:"7.07.1-9sarge1")) flag++;
    if (deb_check(release:"3.1", prefix:"gs-gpl", reference:"8.01-6")) flag++;
    if (deb_check(release:"4.0", prefix:"gs", reference:"8.54.dfsg.1-5etch1")) flag++;
    if (deb_check(release:"4.0", prefix:"gs-esp", reference:"8.15.3.dfsg.1-1etch1")) flag++;
    if (deb_check(release:"4.0", prefix:"gs-gpl", reference:"8.54.dfsg.1-5etch1")) 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 familyFedora Local Security Checks
    NASL idFEDORA_2008-1998.NASL
    descriptionThis update contains a back-ported fix for a security issue that allows malicious PostScript input files to cause a stack-based buffer overflow (CVE-2008-0411). This update also restores JPEG2000 support. 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-01
    modified2020-06-02
    plugin id31364
    published2008-03-07
    reporterThis script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/31364
    titleFedora 8 : ghostscript-8.61-8.fc8 (2008-1998)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Fedora Security Advisory 2008-1998.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(31364);
      script_version ("1.16");
      script_cvs_date("Date: 2019/08/02 13:32:27");
    
      script_cve_id("CVE-2008-0411");
      script_bugtraq_id(28017);
      script_xref(name:"FEDORA", value:"2008-1998");
    
      script_name(english:"Fedora 8 : ghostscript-8.61-8.fc8 (2008-1998)");
      script_summary(english:"Checks rpm output for the updated package.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Fedora host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "This update contains a back-ported fix for a security issue that
    allows malicious PostScript input files to cause a stack-based buffer
    overflow (CVE-2008-0411). This update also restores JPEG2000 support.
    
    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."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://bugzilla.redhat.com/show_bug.cgi?id=431536"
      );
      # https://lists.fedoraproject.org/pipermail/package-announce/2008-March/008424.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?6e9de29f"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected ghostscript package."
      );
      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:F/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:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:ghostscript");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:8");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/03/03");
      script_set_attribute(attribute:"plugin_publication_date", value:"2008/03/07");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Fedora Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "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);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora");
    os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! ereg(pattern:"^8([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 8.x", "Fedora " + 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, "Fedora", cpu);
    
    flag = 0;
    if (rpm_check(release:"FC8", reference:"ghostscript-8.61-8.fc8")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "ghostscript");
    }
    
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2008-0155.NASL
    descriptionUpdated ghostscript packages that fix a security issue are now available for Red Hat Enterprise Linux 3, 4, and 5. This update has been rated as having important security impact by the Red Hat Security Response Team. Ghostscript is a program for displaying PostScript files, or printing them to non-PostScript printers. Chris Evans from the Google Security Team reported a stack-based buffer overflow flaw in Ghostscript
    last seen2020-06-01
    modified2020-06-02
    plugin id31302
    published2008-02-28
    reporterThis script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/31302
    titleCentOS 3 / 4 / 5 : ghostscript (CESA-2008:0155)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2008:0155 and 
    # CentOS Errata and Security Advisory 2008:0155 respectively.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(31302);
      script_version("1.17");
      script_cvs_date("Date: 2019/10/25 13:36:04");
    
      script_cve_id("CVE-2008-0411");
      script_bugtraq_id(28017);
      script_xref(name:"RHSA", value:"2008:0155");
    
      script_name(english:"CentOS 3 / 4 / 5 : ghostscript (CESA-2008:0155)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote CentOS host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Updated ghostscript packages that fix a security issue are now
    available for Red Hat Enterprise Linux 3, 4, and 5.
    
    This update has been rated as having important security impact by the
    Red Hat Security Response Team.
    
    Ghostscript is a program for displaying PostScript files, or printing
    them to non-PostScript printers.
    
    Chris Evans from the Google Security Team reported a stack-based
    buffer overflow flaw in Ghostscript's zseticcspace() function. An
    attacker could create a malicious PostScript file that would cause
    Ghostscript to execute arbitrary code when opened. (CVE-2008-0411)
    
    These updated packages also fix a bug, which prevented the pxlmono
    printer driver from producing valid output on Red Hat Enterprise Linux
    4.
    
    All users of ghostscript are advised to upgrade to these updated
    packages, which contain a backported patch to resolve these issues."
      );
      # https://lists.centos.org/pipermail/centos-announce/2008-February/014716.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?76de8ee6"
      );
      # https://lists.centos.org/pipermail/centos-announce/2008-February/014717.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?298a9a51"
      );
      # https://lists.centos.org/pipermail/centos-announce/2008-February/014720.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?f80a7157"
      );
      # https://lists.centos.org/pipermail/centos-announce/2008-February/014721.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?a0fc12bd"
      );
      # https://lists.centos.org/pipermail/centos-announce/2008-February/014730.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?4e8f440a"
      );
      # https://lists.centos.org/pipermail/centos-announce/2008-February/014731.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?be2f0ec4"
      );
      # https://lists.centos.org/pipermail/centos-announce/2008-March/014740.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?c8cedd03"
      );
      # https://lists.centos.org/pipermail/centos-announce/2008-March/014741.html
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?09b46b86"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected ghostscript 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:F/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:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:ghostscript");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:ghostscript-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:ghostscript-gtk");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:centos:centos:hpijs");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:centos:centos:3");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:centos:centos:4");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:centos:centos:5");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2008/02/28");
      script_set_attribute(attribute:"patch_publication_date", value:"2008/02/28");
      script_set_attribute(attribute:"plugin_publication_date", value:"2008/02/28");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"CentOS Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/CentOS/release", "Host/CentOS/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);
    release = get_kb_item("Host/CentOS/release");
    if (isnull(release) || "CentOS" >!< release) audit(AUDIT_OS_NOT, "CentOS");
    os_ver = pregmatch(pattern: "CentOS(?: Linux)? release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "CentOS");
    os_ver = os_ver[1];
    if (! preg(pattern:"^(3|4|5)([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "CentOS 3.x / 4.x / 5.x", "CentOS " + os_ver);
    
    if (!get_kb_item("Host/CentOS/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if ("x86_64" >!< cpu && "ia64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "CentOS", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"CentOS-3", reference:"ghostscript-7.05-32.1.13")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"ghostscript-devel-7.05-32.1.13")) flag++;
    if (rpm_check(release:"CentOS-3", reference:"hpijs-1.3-32.1.13")) flag++;
    
    if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"ghostscript-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"ghostscript-7.07-33.2.c4.1")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"ghostscript-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"ghostscript-devel-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"ghostscript-devel-7.07-33.2.c4.1")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"ghostscript-devel-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"i386", reference:"ghostscript-gtk-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"ia64", reference:"ghostscript-gtk-7.07-33.2.c4.1")) flag++;
    if (rpm_check(release:"CentOS-4", cpu:"x86_64", reference:"ghostscript-gtk-7.07-33.2.el4_6.1")) flag++;
    
    if (rpm_check(release:"CentOS-5", reference:"ghostscript-8.15.2-9.1.el5_1.1")) flag++;
    if (rpm_check(release:"CentOS-5", reference:"ghostscript-devel-8.15.2-9.1.el5_1.1")) flag++;
    if (rpm_check(release:"CentOS-5", reference:"ghostscript-gtk-8.15.2-9.1.el5_1.1")) flag++;
    
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_WARNING,
        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, "ghostscript / ghostscript-devel / ghostscript-gtk / hpijs");
    }
    
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20080227_GHOSTSCRIPT_ON_SL3_X.NASL
    descriptionChris Evans from the Google Security Team reported a stack-based buffer overflow flaw in Ghostscript
    last seen2020-06-01
    modified2020-06-02
    plugin id60366
    published2012-08-01
    reporterThis script is Copyright (C) 2012-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/60366
    titleScientific Linux Security Update : ghostscript on SL3.x, SL4.x, SL5.x i386/x86_64
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text is (C) Scientific Linux.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(60366);
      script_version("1.4");
      script_cvs_date("Date: 2019/10/25 13:36:17");
    
      script_cve_id("CVE-2008-0411");
    
      script_name(english:"Scientific Linux Security Update : ghostscript on SL3.x, SL4.x, SL5.x i386/x86_64");
      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:
    "Chris Evans from the Google Security Team reported a stack-based
    buffer overflow flaw in Ghostscript's zseticcspace() function. An
    attacker could create a malicious PostScript file that would cause
    Ghostscript to execute arbitrary code when opened. (CVE-2008-0411)
    
    These updated packages also fix a bug, which prevented the pxlmono
    printer driver from producing valid output on Scientific Linux 4."
      );
      # https://listserv.fnal.gov/scripts/wa.exe?A2=ind0802&L=scientific-linux-errata&T=0&P=1530
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?5993ceef"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"x-cpe:/o:fermilab:scientific_linux");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/02/27");
      script_set_attribute(attribute:"plugin_publication_date", value:"2012/08/01");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2012-2019 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("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");
    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:"SL3", reference:"ghostscript-7.05-32.1.13")) flag++;
    if (rpm_check(release:"SL3", reference:"ghostscript-devel-7.05-32.1.13")) flag++;
    if (rpm_check(release:"SL3", reference:"hpijs-1.3-32.1.13")) flag++;
    
    if (rpm_check(release:"SL4", reference:"ghostscript-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"SL4", reference:"ghostscript-devel-7.07-33.2.el4_6.1")) flag++;
    if (rpm_check(release:"SL4", reference:"ghostscript-gtk-7.07-33.2.el4_6.1")) flag++;
    
    if (rpm_check(release:"SL5", reference:"ghostscript-8.15.2-9.1.el5_1.1")) flag++;
    if (rpm_check(release:"SL5", reference:"ghostscript-devel-8.15.2-9.1.el5_1.1")) flag++;
    if (rpm_check(release:"SL5", reference:"ghostscript-gtk-8.15.2-9.1.el5_1.1")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2008-055.NASL
    descriptionChris Evans found a buffer overflow condition in Ghostscript, which can lead to arbitrary code execution as the user running any application using it to process a maliciously crafted Postscript file. The updated packages have been patched to prevent this issue.
    last seen2020-06-01
    modified2020-06-02
    plugin id37312
    published2009-04-23
    reporterThis script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/37312
    titleMandriva Linux Security Advisory : ghostscript (MDVSA-2008:055)
    code
    #%NASL_MIN_LEVEL 80502
    
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Mandriva Linux Security Advisory MDVSA-2008:055. 
    # The text itself is copyright (C) Mandriva S.A.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(37312);
      script_version ("1.16");
      script_cvs_date("Date: 2019/08/02 13:32:50");
    
      script_cve_id("CVE-2008-0411");
      script_bugtraq_id(28017);
      script_xref(name:"MDVSA", value:"2008:055");
    
      script_name(english:"Mandriva Linux Security Advisory : ghostscript (MDVSA-2008:055)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:
    "The remote Mandriva Linux host is missing one or more security
    updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Chris Evans found a buffer overflow condition in Ghostscript, which
    can lead to arbitrary code execution as the user running any
    application using it to process a maliciously crafted Postscript file.
    
    The updated packages have been patched to prevent this issue."
      );
      script_set_attribute(attribute:"solution", value:"Update 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:F/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:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:ghostscript");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:ghostscript-X");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:ghostscript-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:ghostscript-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:ghostscript-dvipdf");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:ghostscript-module-X");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64gs8");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64gs8-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64ijs1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:lib64ijs1-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libgs8");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libgs8-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libijs1");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:mandriva:linux:libijs1-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2007");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2007.1");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:mandriva:linux:2008.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/02/29");
      script_set_attribute(attribute:"plugin_publication_date", value:"2009/04/23");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Mandriva Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/Mandrake/release", "Host/Mandrake/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/Mandrake/release")) audit(AUDIT_OS_NOT, "Mandriva / Mandake Linux");
    if (!get_kb_item("Host/Mandrake/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu !~ "^(amd64|i[3-6]86|x86_64)$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Mandriva / Mandrake Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"MDK2007.0", reference:"ghostscript-8.15-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"ghostscript-X-8.15-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"ghostscript-common-8.15-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"ghostscript-dvipdf-8.15-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", reference:"ghostscript-module-X-8.15-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"x86_64", reference:"lib64gs8-8.15-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"x86_64", reference:"lib64gs8-devel-8.15-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"x86_64", reference:"lib64ijs1-0.35-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"x86_64", reference:"lib64ijs1-devel-0.35-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"i386", reference:"libgs8-8.15-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"i386", reference:"libgs8-devel-8.15-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"i386", reference:"libijs1-0.35-47.1mdv2007.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.0", cpu:"i386", reference:"libijs1-devel-0.35-47.1mdv2007.0", yank:"mdv")) flag++;
    
    if (rpm_check(release:"MDK2007.1", reference:"ghostscript-8.15-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", reference:"ghostscript-X-8.15-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", reference:"ghostscript-common-8.15-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", reference:"ghostscript-doc-8.15-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", reference:"ghostscript-dvipdf-8.15-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", reference:"ghostscript-module-X-8.15-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", cpu:"x86_64", reference:"lib64gs8-8.15-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", cpu:"x86_64", reference:"lib64gs8-devel-8.15-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", cpu:"x86_64", reference:"lib64ijs1-0.35-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", cpu:"x86_64", reference:"lib64ijs1-devel-0.35-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", cpu:"i386", reference:"libgs8-8.15-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", cpu:"i386", reference:"libgs8-devel-8.15-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", cpu:"i386", reference:"libijs1-0.35-48.1mdv2007.1", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2007.1", cpu:"i386", reference:"libijs1-devel-0.35-48.1mdv2007.1", yank:"mdv")) flag++;
    
    if (rpm_check(release:"MDK2008.0", reference:"ghostscript-8.60-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"ghostscript-X-8.60-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"ghostscript-common-8.60-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"ghostscript-doc-8.60-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"ghostscript-dvipdf-8.60-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", reference:"ghostscript-module-X-8.60-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"x86_64", reference:"lib64gs8-8.60-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"x86_64", reference:"lib64gs8-devel-8.60-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"x86_64", reference:"lib64ijs1-0.35-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"x86_64", reference:"lib64ijs1-devel-0.35-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"i386", reference:"libgs8-8.60-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"i386", reference:"libgs8-devel-8.60-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"i386", reference:"libijs1-0.35-55.2mdv2008.0", yank:"mdv")) flag++;
    if (rpm_check(release:"MDK2008.0", cpu:"i386", reference:"libijs1-devel-0.35-55.2mdv2008.0", yank:"mdv")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familySuSE Local Security Checks
    NASL idSUSE_GHOSTSCRIPT-FONTS-OTHER-4985.NASL
    descriptionA stackbased buffer overflow was fixed in the ghostscript interpreter, which potentially could be used to execute code or at least crash ghostscript. (CVE-2008-0411)
    last seen2020-06-01
    modified2020-06-02
    plugin id31322
    published2008-02-29
    reporterThis script is Copyright (C) 2008-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/31322
    titleopenSUSE 10 Security Update : ghostscript-fonts-other (ghostscript-fonts-other-4985)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from openSUSE Security Update ghostscript-fonts-other-4985.
    #
    # The text description of this plugin is (C) SUSE LLC.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(31322);
      script_version ("1.9");
      script_cvs_date("Date: 2019/10/25 13:36:32");
    
      script_cve_id("CVE-2008-0411");
    
      script_name(english:"openSUSE 10 Security Update : ghostscript-fonts-other (ghostscript-fonts-other-4985)");
      script_summary(english:"Check for the ghostscript-fonts-other-4985 patch");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote openSUSE host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "A stackbased buffer overflow was fixed in the ghostscript interpreter,
    which potentially could be used to execute code or at least crash
    ghostscript. (CVE-2008-0411)"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected ghostscript-fonts-other packages."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:ghostscript-fonts-other");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:ghostscript-fonts-rus");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:ghostscript-fonts-std");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:ghostscript-ijs-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:ghostscript-library");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:ghostscript-omni");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:ghostscript-x11");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libgimpprint");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:novell:opensuse:libgimpprint-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:10.1");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:10.2");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:novell:opensuse:10.3");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/02/11");
      script_set_attribute(attribute:"plugin_publication_date", value:"2008/02/29");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2008-2019 Tenable Network Security, Inc.");
      script_family(english:"SuSE Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/SuSE/release", "Host/SuSE/rpm-list", "Host/cpu");
    
      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);
    release = get_kb_item("Host/SuSE/release");
    if (isnull(release) || release =~ "^(SLED|SLES)") audit(AUDIT_OS_NOT, "openSUSE");
    if (release !~ "^(SUSE10\.1|SUSE10\.2|SUSE10\.3)$") audit(AUDIT_OS_RELEASE_NOT, "openSUSE", "10.1 / 10.2 / 10.3", release);
    if (!get_kb_item("Host/SuSE/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    ourarch = get_kb_item("Host/cpu");
    if (!ourarch) audit(AUDIT_UNKNOWN_ARCH);
    if (ourarch !~ "^(i586|i686|x86_64)$") audit(AUDIT_ARCH_NOT, "i586 / i686 / x86_64", ourarch);
    
    flag = 0;
    
    if ( rpm_check(release:"SUSE10.1", reference:"ghostscript-fonts-other-8.15.3-18.13") ) flag++;
    if ( rpm_check(release:"SUSE10.1", reference:"ghostscript-fonts-rus-8.15.3-18.13") ) flag++;
    if ( rpm_check(release:"SUSE10.1", reference:"ghostscript-fonts-std-8.15.3-18.13") ) flag++;
    if ( rpm_check(release:"SUSE10.1", reference:"ghostscript-library-8.15.3-18.13") ) flag++;
    if ( rpm_check(release:"SUSE10.1", reference:"ghostscript-omni-8.15.3-18.13") ) flag++;
    if ( rpm_check(release:"SUSE10.1", reference:"ghostscript-x11-8.15.3-18.13") ) flag++;
    if ( rpm_check(release:"SUSE10.1", reference:"libgimpprint-4.2.7-62.13.6") ) flag++;
    if ( rpm_check(release:"SUSE10.1", reference:"libgimpprint-devel-4.2.7-62.14.6") ) flag++;
    if ( rpm_check(release:"SUSE10.2", reference:"ghostscript-fonts-other-8.15.3-26") ) flag++;
    if ( rpm_check(release:"SUSE10.2", reference:"ghostscript-fonts-rus-8.15.3-26") ) flag++;
    if ( rpm_check(release:"SUSE10.2", reference:"ghostscript-fonts-std-8.15.3-26") ) flag++;
    if ( rpm_check(release:"SUSE10.2", reference:"ghostscript-library-8.15.3-26") ) flag++;
    if ( rpm_check(release:"SUSE10.2", reference:"ghostscript-omni-8.15.3-26") ) flag++;
    if ( rpm_check(release:"SUSE10.2", reference:"ghostscript-x11-8.15.3-26") ) flag++;
    if ( rpm_check(release:"SUSE10.2", reference:"libgimpprint-4.2.7-103") ) flag++;
    if ( rpm_check(release:"SUSE10.2", reference:"libgimpprint-devel-4.2.7-103") ) flag++;
    if ( rpm_check(release:"SUSE10.3", reference:"ghostscript-fonts-other-8.15.4-3.2") ) flag++;
    if ( rpm_check(release:"SUSE10.3", reference:"ghostscript-fonts-rus-8.15.4-3.2") ) flag++;
    if ( rpm_check(release:"SUSE10.3", reference:"ghostscript-fonts-std-8.15.4-3.2") ) flag++;
    if ( rpm_check(release:"SUSE10.3", reference:"ghostscript-ijs-devel-8.15.4-3.2") ) flag++;
    if ( rpm_check(release:"SUSE10.3", reference:"ghostscript-library-8.15.4-3.2") ) flag++;
    if ( rpm_check(release:"SUSE10.3", reference:"ghostscript-omni-8.15.4-3.2") ) flag++;
    if ( rpm_check(release:"SUSE10.3", reference:"ghostscript-x11-8.15.4-3.2") ) flag++;
    if ( rpm_check(release:"SUSE10.3", reference:"libgimpprint-4.2.7-178.2") ) flag++;
    if ( rpm_check(release:"SUSE10.3", reference:"libgimpprint-devel-4.2.7-178.2") ) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "ghostscript-library");
    }
    
  • NASL familySlackware Local Security Checks
    NASL idSLACKWARE_SSA_2008-062-01.NASL
    descriptionNew espgs or ghostscript packages are available for 11.0, 12.0, and -current to fix a buffer overflow.
    last seen2020-06-01
    modified2020-06-02
    plugin id31324
    published2008-03-04
    reporterThis script is Copyright (C) 2008-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/31324
    titleSlackware 11.0 / 12.0 / current : espgs/ghostscript (SSA:2008-062-01)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Slackware Security Advisory 2008-062-01. The text 
    # itself is copyright (C) Slackware Linux, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(31324);
      script_version("1.16");
      script_cvs_date("Date: 2019/10/25 13:36:21");
    
      script_cve_id("CVE-2008-0411");
      script_bugtraq_id(28017);
      script_xref(name:"SSA", value:"2008-062-01");
    
      script_name(english:"Slackware 11.0 / 12.0 / current : espgs/ghostscript (SSA:2008-062-01)");
      script_summary(english:"Checks for updated packages in /var/log/packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Slackware host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "New espgs or ghostscript packages are available for 11.0, 12.0, and
    -current to fix a buffer overflow."
      );
      # http://www.slackware.com/security/viewer.php?l=slackware-security&y=2008&m=slackware-security.370633
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?65264f3c"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Update the affected espgs and / or ghostscript 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:F/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:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:slackware:slackware_linux:espgs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:slackware:slackware_linux:ghostscript");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:slackware:slackware_linux");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:slackware:slackware_linux:11.0");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:slackware:slackware_linux:12.0");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2008/03/02");
      script_set_attribute(attribute:"plugin_publication_date", value:"2008/03/04");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2008-2019 Tenable Network Security, Inc.");
      script_family(english:"Slackware Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Slackware/release", "Host/Slackware/packages");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("slackware.inc");
    
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    if (!get_kb_item("Host/Slackware/release")) audit(AUDIT_OS_NOT, "Slackware");
    if (!get_kb_item("Host/Slackware/packages")) 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, "Slackware", cpu);
    
    
    flag = 0;
    if (slackware_check(osver:"11.0", pkgname:"espgs", pkgver:"8.15.3svn185", pkgarch:"i486", pkgnum:"3_slack11.0")) flag++;
    
    if (slackware_check(osver:"12.0", pkgname:"espgs", pkgver:"8.15.4", pkgarch:"i486", pkgnum:"3_slack12.0")) flag++;
    
    if (slackware_check(osver:"current", pkgname:"ghostscript", pkgver:"8.62", pkgarch:"i486", pkgnum:"1")) flag++;
    
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:slackware_report_get());
      else security_warning(0);
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2008-0155.NASL
    descriptionUpdated ghostscript packages that fix a security issue are now available for Red Hat Enterprise Linux 3, 4, and 5. This update has been rated as having important security impact by the Red Hat Security Response Team. Ghostscript is a program for displaying PostScript files, or printing them to non-PostScript printers. Chris Evans from the Google Security Team reported a stack-based buffer overflow flaw in Ghostscript
    last seen2020-06-01
    modified2020-06-02
    plugin id31307
    published2008-02-28
    reporterThis script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/31307
    titleRHEL 3 / 4 / 5 : ghostscript (RHSA-2008:0155)
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2008:0155. The text 
    # itself is copyright (C) Red Hat, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(31307);
      script_version ("1.25");
      script_cvs_date("Date: 2019/10/25 13:36:13");
    
      script_cve_id("CVE-2008-0411");
      script_bugtraq_id(28017);
      script_xref(name:"RHSA", value:"2008:0155");
    
      script_name(english:"RHEL 3 / 4 / 5 : ghostscript (RHSA-2008:0155)");
      script_summary(english:"Checks the rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Red Hat host is missing one or more security updates."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Updated ghostscript packages that fix a security issue are now
    available for Red Hat Enterprise Linux 3, 4, and 5.
    
    This update has been rated as having important security impact by the
    Red Hat Security Response Team.
    
    Ghostscript is a program for displaying PostScript files, or printing
    them to non-PostScript printers.
    
    Chris Evans from the Google Security Team reported a stack-based
    buffer overflow flaw in Ghostscript's zseticcspace() function. An
    attacker could create a malicious PostScript file that would cause
    Ghostscript to execute arbitrary code when opened. (CVE-2008-0411)
    
    These updated packages also fix a bug, which prevented the pxlmono
    printer driver from producing valid output on Red Hat Enterprise Linux
    4.
    
    All users of ghostscript are advised to upgrade to these updated
    packages, which contain a backported patch to resolve these issues."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2008-0411"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/errata/RHSA-2008:0155"
      );
      script_set_attribute(attribute:"solution", value:"Update 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:F/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:"exploit_framework_core", value:"true");
      script_cwe_id(119);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:ghostscript");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:ghostscript-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:ghostscript-gtk");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:hpijs");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:3");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:4");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:4.6");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:5");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:5.1");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2008/02/28");
      script_set_attribute(attribute:"patch_publication_date", value:"2008/02/27");
      script_set_attribute(attribute:"plugin_publication_date", value:"2008/02/28");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Red Hat Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list", "Host/cpu");
    
      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) || "Red Hat" >!< release) audit(AUDIT_OS_NOT, "Red Hat");
    os_ver = pregmatch(pattern: "Red Hat Enterprise Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Red Hat");
    os_ver = os_ver[1];
    if (! preg(pattern:"^(3|4|5)([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Red Hat 3.x / 4.x / 5.x", "Red Hat " + 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$" && "s390" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Red Hat", cpu);
    
    yum_updateinfo = get_kb_item("Host/RedHat/yum-updateinfo");
    if (!empty_or_null(yum_updateinfo)) 
    {
      rhsa = "RHSA-2008:0155";
      yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa);
      if (!empty_or_null(yum_report))
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_WARNING,
          extra      : yum_report 
        );
        exit(0);
      }
      else
      {
        audit_message = "affected by Red Hat security advisory " + rhsa;
        audit(AUDIT_OS_NOT, audit_message);
      }
    }
    else
    {
      flag = 0;
      if (rpm_check(release:"RHEL3", reference:"ghostscript-7.05-32.1.13")) flag++;
    
      if (rpm_check(release:"RHEL3", reference:"ghostscript-devel-7.05-32.1.13")) flag++;
    
      if (rpm_check(release:"RHEL3", reference:"hpijs-1.3-32.1.13")) flag++;
    
    
      if (rpm_check(release:"RHEL4", reference:"ghostscript-7.07-33.2.el4_6.1")) flag++;
    
      if (rpm_check(release:"RHEL4", reference:"ghostscript-devel-7.07-33.2.el4_6.1")) flag++;
    
      if (rpm_check(release:"RHEL4", reference:"ghostscript-gtk-7.07-33.2.el4_6.1")) flag++;
    
    
      if (rpm_check(release:"RHEL5", reference:"ghostscript-8.15.2-9.1.el5_1.1")) flag++;
    
      if (rpm_check(release:"RHEL5", reference:"ghostscript-devel-8.15.2-9.1.el5_1.1")) flag++;
    
      if (rpm_check(release:"RHEL5", cpu:"i386", reference:"ghostscript-gtk-8.15.2-9.1.el5_1.1")) flag++;
    
      if (rpm_check(release:"RHEL5", cpu:"s390x", reference:"ghostscript-gtk-8.15.2-9.1.el5_1.1")) flag++;
    
      if (rpm_check(release:"RHEL5", cpu:"x86_64", reference:"ghostscript-gtk-8.15.2-9.1.el5_1.1")) flag++;
    
    
      if (flag)
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_WARNING,
          extra      : rpm_report_get() + redhat_report_package_caveat()
        );
        exit(0);
      }
      else
      {
        tested = pkg_tests_get();
        if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
        else audit(AUDIT_PACKAGE_NOT_INSTALLED, "ghostscript / ghostscript-devel / ghostscript-gtk / hpijs");
      }
    }
    
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_CA8E56D5E85611DCB5AF0017319806E7.NASL
    descriptionChris Evans from the Google Security Team reports : Severity: parsing of evil PostScript file will result in arbitrary code execution. A stack-based buffer overflow in the zseticcspace() function in zicc.c allows remote arbitrary code execution via a malicious PostScript file (.ps) that contains a long Range array.
    last seen2020-06-01
    modified2020-06-02
    plugin id31376
    published2008-03-07
    reporterThis script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/31376
    titleFreeBSD : ghostscript -- zseticcspace() function buffer overflow vulnerability (ca8e56d5-e856-11dc-b5af-0017319806e7)

Oval

accepted2013-04-29T04:20:14.110-04:00
classvulnerability
contributors
  • nameAharon Chernin
    organizationSCAP.com, LLC
  • nameDragos Prisaca
    organizationG2, Inc.
definition_extensions
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 3
    ovaloval:org.mitre.oval:def:11782
  • commentCentOS Linux 3.x
    ovaloval:org.mitre.oval:def:16651
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 4
    ovaloval:org.mitre.oval:def:11831
  • commentCentOS Linux 4.x
    ovaloval:org.mitre.oval:def:16636
  • commentOracle Linux 4.x
    ovaloval:org.mitre.oval:def:15990
  • commentThe operating system installed on the system is Red Hat Enterprise Linux 5
    ovaloval:org.mitre.oval:def:11414
  • commentThe operating system installed on the system is CentOS Linux 5.x
    ovaloval:org.mitre.oval:def:15802
  • commentOracle Linux 5.x
    ovaloval:org.mitre.oval:def:15459
descriptionStack-based buffer overflow in the zseticcspace function in zicc.c in Ghostscript 8.61 and earlier allows remote attackers to execute arbitrary code via a postscript (.ps) file containing a long Range array in a .seticcspace operator.
familyunix
idoval:org.mitre.oval:def:9557
statusaccepted
submitted2010-07-09T03:56:16-04:00
titleStack-based buffer overflow in the zseticcspace function in zicc.c in Ghostscript 8.61 and earlier allows remote attackers to execute arbitrary code via a postscript (.ps) file containing a long Range array in a .seticcspace operator.
version27

Redhat

advisories
bugzilla
id431536
titleCVE-2008-0411 ghostscript: stack-based buffer overflow in .seticcspace operator
oval
OR
  • commentRed Hat Enterprise Linux must be installed
    ovaloval:com.redhat.rhba:tst:20070304026
  • AND
    • commentRed Hat Enterprise Linux 4 is installed
      ovaloval:com.redhat.rhba:tst:20070304025
    • OR
      • AND
        • commentghostscript-devel is earlier than 0:7.07-33.2.el4_6.1
          ovaloval:com.redhat.rhsa:tst:20080155001
        • commentghostscript-devel is signed with Red Hat master key
          ovaloval:com.redhat.rhsa:tst:20080155002
      • AND
        • commentghostscript is earlier than 0:7.07-33.2.el4_6.1
          ovaloval:com.redhat.rhsa:tst:20080155003
        • commentghostscript is signed with Red Hat master key
          ovaloval:com.redhat.rhsa:tst:20080155004
      • AND
        • commentghostscript-gtk is earlier than 0:7.07-33.2.el4_6.1
          ovaloval:com.redhat.rhsa:tst:20080155005
        • commentghostscript-gtk is signed with Red Hat master key
          ovaloval:com.redhat.rhsa:tst:20080155006
  • AND
    • commentRed Hat Enterprise Linux 5 is installed
      ovaloval:com.redhat.rhba:tst:20070331005
    • OR
      • AND
        • commentghostscript is earlier than 0:8.15.2-9.1.el5_1.1
          ovaloval:com.redhat.rhsa:tst:20080155008
        • commentghostscript is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20080155009
      • AND
        • commentghostscript-gtk is earlier than 0:8.15.2-9.1.el5_1.1
          ovaloval:com.redhat.rhsa:tst:20080155010
        • commentghostscript-gtk is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20080155011
      • AND
        • commentghostscript-devel is earlier than 0:8.15.2-9.1.el5_1.1
          ovaloval:com.redhat.rhsa:tst:20080155012
        • commentghostscript-devel is signed with Red Hat redhatrelease key
          ovaloval:com.redhat.rhsa:tst:20080155013
rhsa
idRHSA-2008:0155
released2008-02-27
severityImportant
titleRHSA-2008:0155: ghostscript security update (Important)
rpms
  • ghostscript-0:7.05-32.1.13
  • ghostscript-0:7.07-33.2.el4_6.1
  • ghostscript-0:8.15.2-9.1.el5_1.1
  • ghostscript-debuginfo-0:7.05-32.1.13
  • ghostscript-debuginfo-0:7.07-33.2.el4_6.1
  • ghostscript-debuginfo-0:8.15.2-9.1.el5_1.1
  • ghostscript-devel-0:7.05-32.1.13
  • ghostscript-devel-0:7.07-33.2.el4_6.1
  • ghostscript-devel-0:8.15.2-9.1.el5_1.1
  • ghostscript-gtk-0:7.07-33.2.el4_6.1
  • ghostscript-gtk-0:8.15.2-9.1.el5_1.1
  • hpijs-0:1.3-32.1.13