Vulnerabilities > CVE-2017-17790 - Injection vulnerability in Ruby-Lang Ruby

047910
CVSS 9.8 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
network
low complexity
ruby-lang
CWE-74
critical
nessus

Summary

The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injection attacks, as demonstrated by a Resolv::Hosts::new argument beginning with a '|' character, a different vulnerability than CVE-2017-17405. NOTE: situations with untrusted input may be highly unlikely.

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.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
  • Subverting Environment Variable Values
    The attacker directly or indirectly modifies environment variables used by or controlling the target software. The attacker's goal is to cause the target software to deviate from its expected operation in a manner that benefits the attacker.

Nessus

  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2018-1029.NASL
    descriptionAccording to the version of the ruby packages installed, the EulerOS installation on the remote host is affected by the following vulnerability : - The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injection attacks, as demonstrated by a Resolv::Hosts::new argument beginning with a
    last seen2020-05-06
    modified2018-01-29
    plugin id106404
    published2018-01-29
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/106404
    titleEulerOS 2.0 SP1 : ruby (EulerOS-SA-2018-1029)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(106404);
      script_version("3.10");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/05/04");
    
      script_cve_id(
        "CVE-2017-17790"
      );
    
      script_name(english:"EulerOS 2.0 SP1 : ruby (EulerOS-SA-2018-1029)");
      script_summary(english:"Checks the rpm output for the updated package.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote EulerOS host is missing a security update.");
      script_set_attribute(attribute:"description", value:
    "According to the version of the ruby packages installed, the EulerOS
    installation on the remote host is affected by the following
    vulnerability :
    
      - The lazy_initialize function in lib/resolv.rb in Ruby
        through 2.4.3 uses Kernel#open, which might allow
        Command Injection attacks, as demonstrated by a
        Resolv::Hosts::new argument beginning with a '|'
        character, a different vulnerability than
        CVE-2017-17405. NOTE: situations with untrusted input
        may be highly unlikely.(CVE-2017-17790)
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the EulerOS security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues.");
      # https://developer.huaweicloud.com/ict/en/site-euleros/euleros/security-advisories/EulerOS-SA-2018-1029
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?59836119");
      script_set_attribute(attribute:"solution", value:
    "Update the affected ruby package.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2018/01/25");
      script_set_attribute(attribute:"plugin_publication_date", value:"2018/01/29");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:ruby");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:ruby-irb");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:ruby-libs");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:huawei:euleros:2.0");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Huawei Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/EulerOS/release", "Host/EulerOS/rpm-list", "Host/EulerOS/sp");
      script_exclude_keys("Host/EulerOS/uvp_version");
    
      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/EulerOS/release");
    if (isnull(release) || release !~ "^EulerOS") audit(AUDIT_OS_NOT, "EulerOS");
    if (release !~ "^EulerOS release 2\.0(\D|$)") audit(AUDIT_OS_NOT, "EulerOS 2.0");
    
    sp = get_kb_item("Host/EulerOS/sp");
    if (isnull(sp) || sp !~ "^(1)$") audit(AUDIT_OS_NOT, "EulerOS 2.0 SP1");
    
    uvp = get_kb_item("Host/EulerOS/uvp_version");
    if (!empty_or_null(uvp)) audit(AUDIT_OS_NOT, "EulerOS 2.0 SP1", "EulerOS UVP " + uvp);
    
    if (!get_kb_item("Host/EulerOS/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$" && "aarch64" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "EulerOS", cpu);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_ARCH_NOT, "i686 / x86_64", cpu);
    
    flag = 0;
    
    pkgs = ["ruby-2.0.0.353-23.h5",
            "ruby-irb-2.0.0.353-23.h5",
            "ruby-libs-2.0.0.353-23.h5"];
    
    foreach (pkg in pkgs)
      if (rpm_check(release:"EulerOS-2.0", sp:"1", reference:pkg)) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "ruby");
    }
    
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2018-40ED78700C.NASL
    descriptionFix: Multiple vulnerabilities in RubyGems https://www.ruby-lang.org/en/news/2018/02/17/multiple-vulnerabilities- in-rubygems/ Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-05
    modified2018-03-05
    plugin id107125
    published2018-03-05
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/107125
    titleFedora 27 : ruby (2018-40ed78700c)
    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 FEDORA-2018-40ed78700c.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(107125);
      script_version("3.3");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/06/04");
    
      script_cve_id("CVE-2017-17790", "CVE-2018-1000073");
      script_xref(name:"FEDORA", value:"2018-40ed78700c");
    
      script_name(english:"Fedora 27 : ruby (2018-40ed78700c)");
      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:
    "Fix: Multiple vulnerabilities in RubyGems
    https://www.ruby-lang.org/en/news/2018/02/17/multiple-vulnerabilities-
    in-rubygems/
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the Fedora update system website.
    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://bodhi.fedoraproject.org/updates/FEDORA-2018-40ed78700c"
      );
      # https://www.ruby-lang.org/en/news/2018/02/17/multiple-vulnerabilities-in-rubygems/
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?83019dc5"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected ruby package.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:ruby");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:27");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2017/12/20");
      script_set_attribute(attribute:"patch_publication_date", value:"2018/03/02");
      script_set_attribute(attribute:"plugin_publication_date", value:"2018/03/05");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2018-2020 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 = pregmatch(pattern: "Fedora.*release ([0-9]+)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora");
    os_ver = os_ver[1];
    if (! preg(pattern:"^27([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 27", "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:"FC27", reference:"ruby-2.4.3-87.fc27")) flag++;
    
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "ruby");
    }
    
  • NASL familyAmazon Linux Local Security Checks
    NASL idAL2_ALAS-2018-983.NASL
    descriptionPath traversal when writing to a symlinked basedir outside of the root RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series: 2.5.0 and earlier, prior to trunk revision 62422 contains a Directory Traversal vulnerability in install_location function of package.rb that can result in path traversal when writing to a symlinked basedir outside of the root. This vulnerability appears to have been fixed in 2.7.6. (CVE-2018-1000073) Improper verification of signatures in tarball allows to install mis-signed gem : RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series: 2.5.0 and earlier, prior to trunk revision 62422 contains a Improper Verification of Cryptographic Signature vulnerability in package.rb that can result in a mis-signed gem could be installed, as the tarball would contain multiple gem signatures.. This vulnerability appears to have been fixed in 2.7.6. (CVE-2018-1000076) Infinite loop vulnerability due to negative size in tar header causes Denial of Service RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series: 2.5.0 and earlier, prior to trunk revision 62422 contains a infinite loop caused by negative size vulnerability in ruby gem package tar header that can result in a negative size could cause an infinite loop.. This vulnerability appears to have been fixed in 2.7.6. (CVE-2018-1000075) Command injection in lib/resolv.rb:lazy_initialize() allows arbitrary code execution : The
    last seen2020-06-01
    modified2020-06-02
    plugin id109136
    published2018-04-18
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/109136
    titleAmazon Linux 2 : ruby (ALAS-2018-983)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from Amazon Linux 2 Security Advisory ALAS-2018-983.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(109136);
      script_version("1.2");
      script_cvs_date("Date: 2019/07/10 16:04:12");
    
      script_cve_id("CVE-2017-17790", "CVE-2018-1000073", "CVE-2018-1000074", "CVE-2018-1000075", "CVE-2018-1000076", "CVE-2018-1000077", "CVE-2018-1000078", "CVE-2018-1000079");
      script_xref(name:"ALAS", value:"2018-983");
    
      script_name(english:"Amazon Linux 2 : ruby (ALAS-2018-983)");
      script_summary(english:"Checks rpm output for the updated packages");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote Amazon Linux 2 host is missing a security update."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "Path traversal when writing to a symlinked basedir outside of the root
    
    RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series:
    2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5
    series: 2.5.0 and earlier, prior to trunk revision 62422 contains a
    Directory Traversal vulnerability in install_location function of
    package.rb that can result in path traversal when writing to a
    symlinked basedir outside of the root. This vulnerability appears to
    have been fixed in 2.7.6. (CVE-2018-1000073)
    
    Improper verification of signatures in tarball allows to install
    mis-signed gem :
    
    RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series:
    2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5
    series: 2.5.0 and earlier, prior to trunk revision 62422 contains a
    Improper Verification of Cryptographic Signature vulnerability in
    package.rb that can result in a mis-signed gem could be installed, as
    the tarball would contain multiple gem signatures.. This vulnerability
    appears to have been fixed in 2.7.6. (CVE-2018-1000076)
    
    Infinite loop vulnerability due to negative size in tar header causes
    Denial of Service
    
    RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series:
    2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5
    series: 2.5.0 and earlier, prior to trunk revision 62422 contains a
    infinite loop caused by negative size vulnerability in ruby gem
    package tar header that can result in a negative size could cause an
    infinite loop.. This vulnerability appears to have been fixed in
    2.7.6. (CVE-2018-1000075)
    
    Command injection in lib/resolv.rb:lazy_initialize() allows arbitrary
    code execution :
    
    The 'lazy_initialize' function in lib/resolv.rb did not properly
    process certain filenames. A remote attacker could possibly exploit
    this flaw to inject and execute arbitrary commands. (CVE-2017-17790)
    
    Missing URL validation on spec home attribute allows malicious gem to
    set an invalid homepage URL :
    
    RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series:
    2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5
    series: 2.5.0 and earlier, prior to trunk revision 62422 contains a
    Improper Input Validation vulnerability in ruby gems specification
    homepage attribute that can result in a malicious gem could set an
    invalid homepage URL. This vulnerability appears to have been fixed in
    2.7.6. (CVE-2018-1000077)
    
    XSS vulnerability in homepage attribute when displayed via gem server
    
    RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series:
    2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5
    series: 2.5.0 and earlier, prior to trunk revision 62422 contains a
    Cross Site Scripting (XSS) vulnerability in gem server display of
    homepage attribute that can result in XSS. This attack appear to be
    exploitable via the victim must browse to a malicious gem on a
    vulnerable gem server. This vulnerability appears to have been fixed
    in 2.7.6. (CVE-2018-1000078)
    
    Unsafe Object Deserialization Vulnerability in gem owner allowing
    arbitrary code execution on specially crafted YAML
    
    RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series:
    2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5
    series: 2.5.0 and earlier, prior to trunk revision 62422 contains a
    Deserialization of Untrusted Data vulnerability in owner command that
    can result in code execution. This attack appear to be exploitable via
    victim must run the `gem owner` command on a gem with a specially
    crafted YAML file. This vulnerability appears to have been fixed in
    2.7.6. (CVE-2018-1000074)
    
    Path traversal issue during gem installation allows to write to
    arbitrary filesystem locations
    
    RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series:
    2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5
    series: 2.5.0 and earlier, prior to trunk revision 62422 contains a
    Directory Traversal vulnerability in gem installation that can result
    in the gem could write to arbitrary filesystem locations during
    installation. This attack appear to be exploitable via the victim must
    install a malicious gem. This vulnerability appears to have been fixed
    in 2.7.6. (CVE-2018-1000079)"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://alas.aws.amazon.com/AL2/ALAS-2018-983.html"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"Run 'yum update ruby' to update your system."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:ruby");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:ruby-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:ruby-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:ruby-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:ruby-irb");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:ruby-libs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:ruby-tcltk");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:rubygem-bigdecimal");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:rubygem-io-console");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:rubygem-json");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:rubygem-minitest");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:rubygem-psych");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:rubygem-rake");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:rubygem-rdoc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:rubygems");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:amazon:linux:rubygems-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:amazon:linux:2");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2017/12/20");
      script_set_attribute(attribute:"patch_publication_date", value:"2018/04/05");
      script_set_attribute(attribute:"plugin_publication_date", value:"2018/04/18");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Amazon Linux Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/AmazonLinux/release", "Host/AmazonLinux/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/AmazonLinux/release");
    if (isnull(release) || !strlen(release)) audit(AUDIT_OS_NOT, "Amazon Linux");
    os_ver = pregmatch(pattern: "^AL(A|\d)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Amazon Linux");
    os_ver = os_ver[1];
    if (os_ver != "2")
    {
      if (os_ver == 'A') os_ver = 'AMI';
      audit(AUDIT_OS_NOT, "Amazon Linux 2", "Amazon Linux " + os_ver);
    }
    
    if (!get_kb_item("Host/AmazonLinux/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    
    flag = 0;
    if (rpm_check(release:"AL2", cpu:"x86_64", reference:"ruby-2.0.0.648-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", cpu:"x86_64", reference:"ruby-debuginfo-2.0.0.648-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", cpu:"x86_64", reference:"ruby-devel-2.0.0.648-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", reference:"ruby-doc-2.0.0.648-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", reference:"ruby-irb-2.0.0.648-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", cpu:"x86_64", reference:"ruby-libs-2.0.0.648-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", cpu:"x86_64", reference:"ruby-tcltk-2.0.0.648-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", cpu:"x86_64", reference:"rubygem-bigdecimal-1.2.0-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", cpu:"x86_64", reference:"rubygem-io-console-0.4.2-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", cpu:"x86_64", reference:"rubygem-json-1.7.7-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", reference:"rubygem-minitest-4.3.2-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", cpu:"x86_64", reference:"rubygem-psych-2.0.0-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", reference:"rubygem-rake-0.9.6-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", reference:"rubygem-rdoc-4.0.0-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", reference:"rubygems-2.0.14.1-33.amzn2.0.1")) flag++;
    if (rpm_check(release:"AL2", reference:"rubygems-devel-2.0.14.1-33.amzn2.0.1")) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:rpm_report_get());
      else security_hole(0);
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "ruby / ruby-debuginfo / ruby-devel / ruby-doc / ruby-irb / etc");
    }
    
  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2018-2_0-0013_LIBTIFF.NASL
    descriptionAn update of the libtiff package has been released.
    last seen2020-03-17
    modified2019-02-07
    plugin id121910
    published2019-02-07
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/121910
    titlePhoton OS 2.0: Libtiff PHSA-2018-2.0-0013
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    
    # The descriptive text and package checks in this plugin were
    # extracted from VMware Security Advisory PHSA-2018-2.0-0013. The text
    # itself is copyright (C) VMware, Inc.
    
    
    include('compat.inc');
    
    if (description)
    {
      script_id(121910);
      script_version("1.2");
      script_set_attribute(attribute:"plugin_modification_date", value:"2019/02/07");
    
      script_cve_id("CVE-2017-9937", "CVE-2017-17973", "CVE-2017-18013");
    
      script_name(english:"Photon OS 2.0: Libtiff PHSA-2018-2.0-0013");
      script_summary(english:"Checks the rpm output for the updated packages.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote PhotonOS host is missing multiple security updates.");
      script_set_attribute(attribute:"description", value:
    "An update of the libtiff package has been released.");
      script_set_attribute(attribute:"see_also", value:"https://github.com/vmware/photon/wiki/Security-Updates-2-13.md");
      script_set_attribute(attribute:"solution", value:
    "Update the affected Linux packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
      script_set_attribute(attribute:"cvss_score_source", value:"CVE-2017-17790");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2018/01/23");
      script_set_attribute(attribute:"patch_publication_date", value:"2018/01/23");
      script_set_attribute(attribute:"plugin_publication_date", value:"2019/02/07");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:vmware:photonos:libtiff");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:photonos:2.0");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"PhotonOS Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/PhotonOS/release", "Host/PhotonOS/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/PhotonOS/release");
    if (isnull(release) || release !~ "^VMware Photon") audit(AUDIT_OS_NOT, "PhotonOS");
    if (release !~ "^VMware Photon (?:Linux|OS) 2\.0(\D|$)") audit(AUDIT_OS_NOT, "PhotonOS 2.0");
    
    if (!get_kb_item("Host/PhotonOS/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, "PhotonOS", cpu);
    
    flag = 0;
    
    if (rpm_check(release:"PhotonOS-2.0", reference:"libtiff-4.0.9-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"libtiff-4.0.9-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"libtiff-4.0.9-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"libtiff-debuginfo-4.0.9-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"libtiff-debuginfo-4.0.9-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"libtiff-debuginfo-4.0.9-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"libtiff-devel-4.0.9-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"libtiff-devel-4.0.9-1.ph2")) flag++;
    if (rpm_check(release:"PhotonOS-2.0", reference:"libtiff-devel-4.0.9-1.ph2")) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "libtiff");
    }
    
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2018-1248.NASL
    descriptionAccording to the versions of the ruby packages installed, the EulerOS Virtualization installation on the remote host is affected by the following vulnerabilities : - The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injection attacks, as demonstrated by a Resolv::Hosts::new argument beginning with a
    last seen2020-06-01
    modified2020-06-02
    plugin id117557
    published2018-09-18
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/117557
    titleEulerOS Virtualization 2.5.0 : ruby (EulerOS-SA-2018-1248)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(117557);
      script_version("1.6");
      script_cvs_date("Date: 2019/06/28 11:31:59");
    
      script_cve_id(
        "CVE-2017-0898",
        "CVE-2017-0899",
        "CVE-2017-0900",
        "CVE-2017-0901",
        "CVE-2017-0902",
        "CVE-2017-0903",
        "CVE-2017-10784",
        "CVE-2017-14033",
        "CVE-2017-14064",
        "CVE-2017-17405",
        "CVE-2017-17790"
      );
    
      script_name(english:"EulerOS Virtualization 2.5.0 : ruby (EulerOS-SA-2018-1248)");
      script_summary(english:"Checks the rpm output for the updated packages.");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote EulerOS Virtualization host is missing multiple security
    updates.");
      script_set_attribute(attribute:"description", value:
    "According to the versions of the ruby packages installed, the EulerOS
    Virtualization installation on the remote host is affected by the
    following vulnerabilities :
    
      - The lazy_initialize function in lib/resolv.rb in Ruby
        through 2.4.3 uses Kernel#open, which might allow
        Command Injection attacks, as demonstrated by a
        Resolv::Hosts::new argument beginning with a '|'
        character, a different vulnerability than
        CVE-2017-17405. NOTE: situations with untrusted input
        may be highly unlikely.(CVE-2017-17790)
    
      - A buffer overflow vulnerability was found in the JSON
        extension of ruby. An attacker with the ability to pass
        a specially crafted JSON input to the extension could
        use this flaw to expose the interpreter's heap memory.
        (CVE-2017-14064)
    
      - It was found that the decode method of the
        OpenSSL::ASN1 module was vulnerable to buffer underrun.
        An attacker could pass a specially crafted string to
        the application in order to crash the ruby interpreter,
        causing a denial of service. (CVE-2017-14033)
    
      - It was found that rubygems could use an excessive
        amount of CPU while parsing a sufficiently long gem
        summary. A specially crafted gem from a gem repository
        could freeze gem commands attempting to parse its
        summary. (CVE-2017-0900)
    
      - It was found that rubygems did not sanitize gem names
        during installation of a given gem. A specially crafted
        gem could use this flaw to install files outside of the
        regular directory. (CVE-2017-0901)
    
      - A vulnerability was found where rubygems did not
        sanitize DNS responses when requesting the hostname of
        the rubygems server for a domain, via a _rubygems._tcp
        DNS SRV query. An attacker with the ability to
        manipulate DNS responses could direct the gem command
        towards a different domain. (CVE-2017-0902)
    
      - A vulnerability was found where the rubygems module was
        vulnerable to an unsafe YAML deserialization when
        inspecting a gem. Applications inspecting gem files
        without installing them can be tricked to execute
        arbitrary code in the context of the ruby interpreter.
        (CVE-2017-0903)
    
      - It was found that WEBrick did not sanitize all its log
        messages. If logs were printed in a terminal, an
        attacker could interact with the terminal via the use
        of escape sequences. (CVE-2017-10784)
    
      - It was discovered that the Net::FTP module did not
        properly process filenames in combination with certain
        operations. A remote attacker could exploit this flaw
        to execute arbitrary commands by setting up a malicious
        FTP server and tricking a user or Ruby application into
        downloading files with specially crafted names using
        the Net::FTP module. (CVE-2017-17405)
    
      - A buffer underflow was found in ruby's sprintf
        function. An attacker, with ability to control its
        format string parameter, could send a specially crafted
        string that would disclose heap memory or crash the
        interpreter. (CVE-2017-0898)
    
      - A vulnerability was found where rubygems did not
        properly sanitize gems' specification text. A specially
        crafted gem could interact with the terminal via the
        use of escape sequences. (CVE-2017-0899)
    
    Note that Tenable Network Security has extracted the preceding
    description block directly from the EulerOS security advisory. Tenable
    has attempted to automatically clean and format it as much as possible
    without introducing additional issues.");
      # https://developer.huaweicloud.com/ict/en/site-euleros/euleros/security-advisories/EulerOS-SA-2018-1248
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?25c237f8");
      script_set_attribute(attribute:"solution", value:
    "Update the affected ruby packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2018/07/23");
      script_set_attribute(attribute:"plugin_publication_date", value:"2018/09/18");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:ruby");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:ruby-irb");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:huawei:euleros:ruby-libs");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:huawei:euleros:uvp:2.5.0");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"Huawei Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/EulerOS/release", "Host/EulerOS/rpm-list", "Host/EulerOS/uvp_version");
    
      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/EulerOS/release");
    if (isnull(release) || release !~ "^EulerOS") audit(AUDIT_OS_NOT, "EulerOS");
    uvp = get_kb_item("Host/EulerOS/uvp_version");
    if (uvp != "2.5.0") audit(AUDIT_OS_NOT, "EulerOS Virtualization 2.5.0");
    if (!get_kb_item("Host/EulerOS/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$" && "aarch64" >!< cpu) audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "EulerOS", cpu);
    if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_ARCH_NOT, "i686 / x86_64", cpu);
    
    flag = 0;
    
    pkgs = ["ruby-2.0.0.353-23.h7",
            "ruby-irb-2.0.0.353-23.h7",
            "ruby-libs-2.0.0.353-23.h7"];
    
    foreach (pkg in pkgs)
      if (rpm_check(release:"EulerOS-2.0", reference:pkg)) flag++;
    
    if (flag)
    {
      security_report_v4(
        port       : 0,
        severity   : SECURITY_HOLE,
        extra      : rpm_report_get()
      );
      exit(0);
    }
    else
    {
      tested = pkg_tests_get();
      if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested);
      else audit(AUDIT_PACKAGE_NOT_INSTALLED, "ruby");
    }
    
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2018-0378.NASL
    descriptionAn update for ruby is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. Ruby is an extensible, interpreted, object-oriented, scripting language. It has features to process text files and to perform system management tasks. Security Fix(es) : * It was discovered that the Net::FTP module did not properly process filenames in combination with certain operations. A remote attacker could exploit this flaw to execute arbitrary commands by setting up a malicious FTP server and tricking a user or Ruby application into downloading files with specially crafted names using the Net::FTP module. (CVE-2017-17405) * A buffer underflow was found in ruby
    last seen2020-06-01
    modified2020-06-02
    plugin id107082
    published2018-03-01
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/107082
    titleRHEL 7 : ruby (RHSA-2018:0378)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were  
    # extracted from Red Hat Security Advisory RHSA-2018:0378. The text 
    # itself is copyright (C) Red Hat, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(107082);
      script_version("3.11");
      script_cvs_date("Date: 2019/10/24 15:35:44");
    
      script_cve_id("CVE-2017-0898", "CVE-2017-0899", "CVE-2017-0900", "CVE-2017-0901", "CVE-2017-0902", "CVE-2017-0903", "CVE-2017-10784", "CVE-2017-14033", "CVE-2017-14064", "CVE-2017-17405", "CVE-2017-17790");
      script_xref(name:"RHSA", value:"2018:0378");
    
      script_name(english:"RHEL 7 : ruby (RHSA-2018:0378)");
      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:
    "An update for ruby is now available for Red Hat Enterprise Linux 7.
    
    Red Hat Product Security has rated this update as having a security
    impact of Important. A Common Vulnerability Scoring System (CVSS) base
    score, which gives a detailed severity rating, is available for each
    vulnerability from the CVE link(s) in the References section.
    
    Ruby is an extensible, interpreted, object-oriented, scripting
    language. It has features to process text files and to perform system
    management tasks.
    
    Security Fix(es) :
    
    * It was discovered that the Net::FTP module did not properly process
    filenames in combination with certain operations. A remote attacker
    could exploit this flaw to execute arbitrary commands by setting up a
    malicious FTP server and tricking a user or Ruby application into
    downloading files with specially crafted names using the Net::FTP
    module. (CVE-2017-17405)
    
    * A buffer underflow was found in ruby's sprintf function. An
    attacker, with ability to control its format string parameter, could
    send a specially crafted string that would disclose heap memory or
    crash the interpreter. (CVE-2017-0898)
    
    * It was found that rubygems did not sanitize gem names during
    installation of a given gem. A specially crafted gem could use this
    flaw to install files outside of the regular directory.
    (CVE-2017-0901)
    
    * A vulnerability was found where rubygems did not sanitize DNS
    responses when requesting the hostname of the rubygems server for a
    domain, via a _rubygems._tcp DNS SRV query. An attacker with the
    ability to manipulate DNS responses could direct the gem command
    towards a different domain. (CVE-2017-0902)
    
    * A vulnerability was found where the rubygems module was vulnerable
    to an unsafe YAML deserialization when inspecting a gem. Applications
    inspecting gem files without installing them can be tricked to execute
    arbitrary code in the context of the ruby interpreter. (CVE-2017-0903)
    
    * It was found that WEBrick did not sanitize all its log messages. If
    logs were printed in a terminal, an attacker could interact with the
    terminal via the use of escape sequences. (CVE-2017-10784)
    
    * It was found that the decode method of the OpenSSL::ASN1 module was
    vulnerable to buffer underrun. An attacker could pass a specially
    crafted string to the application in order to crash the ruby
    interpreter, causing a denial of service. (CVE-2017-14033)
    
    * A vulnerability was found where rubygems did not properly sanitize
    gems' specification text. A specially crafted gem could interact with
    the terminal via the use of escape sequences. (CVE-2017-0899)
    
    * It was found that rubygems could use an excessive amount of CPU
    while parsing a sufficiently long gem summary. A specially crafted gem
    from a gem repository could freeze gem commands attempting to parse
    its summary. (CVE-2017-0900)
    
    * A buffer overflow vulnerability was found in the JSON extension of
    ruby. An attacker with the ability to pass a specially crafted JSON
    input to the extension could use this flaw to expose the interpreter's
    heap memory. (CVE-2017-14064)
    
    * The 'lazy_initialize' function in lib/resolv.rb did not properly
    process certain filenames. A remote attacker could possibly exploit
    this flaw to inject and execute arbitrary commands. (CVE-2017-17790)"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/errata/RHSA-2018:0378"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2017-0898"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2017-0899"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2017-0900"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2017-0901"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2017-0902"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2017-0903"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2017-10784"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2017-14033"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2017-14064"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2017-17405"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://access.redhat.com/security/cve/cve-2017-17790"
      );
      script_set_attribute(attribute:"solution", value:"Update the affected packages.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
      script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
      script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:ruby");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:ruby-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:ruby-devel");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:ruby-doc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:ruby-irb");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:ruby-libs");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:ruby-tcltk");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:rubygem-bigdecimal");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:rubygem-io-console");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:rubygem-json");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:rubygem-minitest");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:rubygem-psych");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:rubygem-rake");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:rubygem-rdoc");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:rubygems");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:redhat:enterprise_linux:rubygems-devel");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:7");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:7.4");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:7.5");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:7.6");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:redhat:enterprise_linux:7.7");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2017/08/31");
      script_set_attribute(attribute:"patch_publication_date", value:"2018/02/28");
      script_set_attribute(attribute:"plugin_publication_date", value:"2018/03/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) 2018-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:"^7([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Red Hat 7.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-2018:0378";
      yum_report = redhat_generate_yum_updateinfo_report(rhsa:rhsa);
      if (!empty_or_null(yum_report))
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_HOLE,
          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:"RHEL7", cpu:"s390x", reference:"ruby-2.0.0.648-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", cpu:"x86_64", reference:"ruby-2.0.0.648-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", reference:"ruby-debuginfo-2.0.0.648-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", cpu:"s390x", reference:"ruby-devel-2.0.0.648-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", cpu:"x86_64", reference:"ruby-devel-2.0.0.648-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", reference:"ruby-doc-2.0.0.648-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", reference:"ruby-irb-2.0.0.648-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", reference:"ruby-libs-2.0.0.648-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", cpu:"s390x", reference:"ruby-tcltk-2.0.0.648-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", cpu:"x86_64", reference:"ruby-tcltk-2.0.0.648-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", cpu:"s390x", reference:"rubygem-bigdecimal-1.2.0-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", cpu:"x86_64", reference:"rubygem-bigdecimal-1.2.0-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", cpu:"s390x", reference:"rubygem-io-console-0.4.2-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", cpu:"x86_64", reference:"rubygem-io-console-0.4.2-33.el7_4")) flag++;
    
      if (rpm_exists(rpm:"rubygem-json-1.7", release:"RHEL7") && rpm_check(release:"RHEL7", cpu:"s390x", reference:"rubygem-json-1.7.7-33.el7_4")) flag++;
    
      if (rpm_exists(rpm:"rubygem-json-1.7", release:"RHEL7") && rpm_check(release:"RHEL7", cpu:"x86_64", reference:"rubygem-json-1.7.7-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", reference:"rubygem-minitest-4.3.2-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", cpu:"s390x", reference:"rubygem-psych-2.0.0-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", cpu:"x86_64", reference:"rubygem-psych-2.0.0-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", reference:"rubygem-rake-0.9.6-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", reference:"rubygem-rdoc-4.0.0-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", reference:"rubygems-2.0.14.1-33.el7_4")) flag++;
    
      if (rpm_check(release:"RHEL7", reference:"rubygems-devel-2.0.14.1-33.el7_4")) flag++;
    
    
      if (flag)
      {
        security_report_v4(
          port       : 0,
          severity   : SECURITY_HOLE,
          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, "ruby / ruby-debuginfo / ruby-devel / ruby-doc / ruby-irb / etc");
      }
    }
    
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2019-1407.NASL
    descriptionAccording to the versions of the ruby packages installed, the EulerOS Virtualization for ARM 64 installation on the remote host is affected by the following vulnerabilities : - It was discovered that the Net::FTP module did not properly process filenames in combination with certain operations. A remote attacker could exploit this flaw to execute arbitrary commands by setting up a malicious FTP server and tricking a user or Ruby application into downloading files with specially crafted names using the Net::FTP module.(CVE-2017-17405) - The
    last seen2020-06-01
    modified2020-06-02
    plugin id124910
    published2019-05-14
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/124910
    titleEulerOS Virtualization for ARM 64 3.0.1.0 : ruby (EulerOS-SA-2019-1407)
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2018-1067.NASL
    descriptionAccording to the versions of the ruby packages installed, the EulerOS installation on the remote host is affected by the following vulnerabilities : - It was discovered that the Net::FTP module did not properly process filenames in combination with certain operations. A remote attacker could exploit this flaw to execute arbitrary commands by setting up a malicious FTP server and tricking a user or Ruby application into downloading files with specially crafted names using the Net::FTP module. (CVE-2017-17405) - A buffer underflow was found in ruby
    last seen2020-05-06
    modified2018-03-20
    plugin id108471
    published2018-03-20
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/108471
    titleEulerOS 2.0 SP2 : ruby (EulerOS-SA-2018-1067)
  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2018-1_0-0100_RUBY.NASL
    descriptionAn update of the ruby package has been released.
    last seen2020-03-17
    modified2019-02-07
    plugin id121801
    published2019-02-07
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/121801
    titlePhoton OS 1.0: Ruby PHSA-2018-1.0-0100
  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2018-2_0-0013_RUBY.NASL
    descriptionAn update of the ruby package has been released.
    last seen2020-03-17
    modified2019-02-07
    plugin id121912
    published2019-02-07
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/121912
    titlePhoton OS 2.0: Ruby PHSA-2018-2.0-0013
  • NASL familyAmazon Linux Local Security Checks
    NASL idALA_ALAS-2018-983.NASL
    descriptionPath traversal when writing to a symlinked basedir outside of the root RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series: 2.5.0 and earlier, prior to trunk revision 62422 contains a Directory Traversal vulnerability in install_location function of package.rb that can result in path traversal when writing to a symlinked basedir outside of the root. This vulnerability appears to have been fixed in 2.7.6. (CVE-2018-1000073) Improper verification of signatures in tarball allows to install mis-signed gem : RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series: 2.5.0 and earlier, prior to trunk revision 62422 contains a Improper Verification of Cryptographic Signature vulnerability in package.rb that can result in a mis-signed gem could be installed, as the tarball would contain multiple gem signatures.. This vulnerability appears to have been fixed in 2.7.6. (CVE-2018-1000076) Infinite loop vulnerability due to negative size in tar header causes Denial of Service RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series: 2.5.0 and earlier, prior to trunk revision 62422 contains a infinite loop caused by negative size vulnerability in ruby gem package tar header that can result in a negative size could cause an infinite loop.. This vulnerability appears to have been fixed in 2.7.6. (CVE-2018-1000075) Command injection in lib/resolv.rb:lazy_initialize() allows arbitrary code execution : The
    last seen2020-06-01
    modified2020-06-02
    plugin id108846
    published2018-04-06
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/108846
    titleAmazon Linux AMI : ruby20 / ruby22,ruby23,ruby24 (ALAS-2018-983)
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-3528-1.NASL
    descriptionIt was discovered that Ruby incorrectly handled certain terminal emulator escape sequences. An attacker could use this to execute arbitrary code via a crafted user name. This issue only affected Ubuntu 16.04 LTS and Ubuntu 17.10. (CVE-2017-10784) It was discovered that Ruby incorrectly handled certain strings. An attacker could use this to cause a denial of service. This issue only affected Ubuntu 16.04 LTS and Ubuntu 17.10. (CVE-2017-14033) It was discovered that Ruby incorrectly handled some generating JSON. An attacker could use this to possible expose sensitive information. This issue only affected Ubuntu 16.04 LTS and Ubuntu 17.10. (CVE-2017-14064) It was discovered that Ruby incorrectly handled certain inputs. An attacker could use this to execute arbitrary code. (CVE-2017-17790). 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 id105751
    published2018-01-11
    reporterUbuntu Security Notice (C) 2018-2019 Canonical, Inc. / NASL script (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/105751
    titleUbuntu 14.04 LTS / 16.04 LTS / 17.10 : ruby1.9.1, ruby2.3 vulnerabilities (USN-3528-1)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2018-1FFFA787E7.NASL
    descriptionFix: Multiple vulnerabilities in RubyGems https://www.ruby-lang.org/en/news/2018/02/17/multiple-vulnerabilities- in-rubygems/ Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-06-05
    modified2018-03-12
    plugin id107280
    published2018-03-12
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/107280
    titleFedora 26 : ruby (2018-1fffa787e7)
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2018-1030.NASL
    descriptionAccording to the version of the ruby packages installed, the EulerOS installation on the remote host is affected by the following vulnerability : - The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injection attacks, as demonstrated by a Resolv::Hosts::new argument beginning with a
    last seen2020-05-06
    modified2018-01-29
    plugin id106405
    published2018-01-29
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/106405
    titleEulerOS 2.0 SP2 : ruby (EulerOS-SA-2018-1030)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-1221.NASL
    descriptionSeveral vulnerabilities have been discovered in the interpreter for the Ruby language. The Common Vulnerabilities and Exposures project identifies the following problems : CVE-2017-17405 A command injection vulnerability in Net::FTP might allow a malicious FTP server the execution of arbitrary commands. CVE-2017-17790 A command injection vulnerability in lib/resolv.rb
    last seen2020-03-17
    modified2017-12-26
    plugin id105428
    published2017-12-26
    reporterThis script is Copyright (C) 2017-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/105428
    titleDebian DLA-1221-1 : ruby1.9.1 security update
  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2018-2_0-0013.NASL
    descriptionAn update of {'libtiff', 'openjdk8', 'ruby'} packages of Photon OS has been released.
    last seen2019-02-21
    modified2019-02-07
    plugin id111283
    published2018-07-24
    reporterTenable
    sourcehttps://www.tenable.com/plugins/index.php?view=single&id=111283
    titlePhoton OS 2.0 : libtiff / openjdk8 / ruby (PhotonOS-PHSA-2018-2.0-0013) (deprecated)
  • NASL familyNewStart CGSL Local Security Checks
    NASL idNEWSTART_CGSL_NS-SA-2019-0013_RUBY.NASL
    descriptionThe remote NewStart CGSL host, running version MAIN 5.04, has ruby packages installed that are affected by multiple vulnerabilities: - A buffer overflow vulnerability was found in the JSON extension of ruby. An attacker with the ability to pass a specially crafted JSON input to the extension could use this flaw to expose the interpreter
    last seen2020-06-01
    modified2020-06-02
    plugin id127164
    published2019-08-12
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/127164
    titleNewStart CGSL MAIN 5.04 : ruby Multiple Vulnerabilities (NS-SA-2019-0013)
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20180228_RUBY_ON_SL7_X.NASL
    descriptionSecurity Fix(es) : - It was discovered that the Net::FTP module did not properly process filenames in combination with certain operations. A remote attacker could exploit this flaw to execute arbitrary commands by setting up a malicious FTP server and tricking a user or Ruby application into downloading files with specially crafted names using the Net::FTP module. (CVE-2017-17405) - A buffer underflow was found in ruby
    last seen2020-03-18
    modified2018-03-01
    plugin id107084
    published2018-03-01
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/107084
    titleScientific Linux Security Update : ruby on SL7.x x86_64 (20180228)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-1421.NASL
    descriptionMultiple vulnerabilities were found in the interpreter for the Ruby language. The Common Vulnerabilities and Exposures project identifies the following issues : CVE-2015-9096 SMTP command injection in Net::SMTP via CRLF sequences in a RCPT TO or MAIL FROM command. CVE-2016-2339 Exploitable heap overflow in Fiddle::Function.new. CVE-2016-7798 Incorrect handling of initialization vector in the GCM mode in the OpenSSL extension. CVE-2017-0898 Buffer underrun vulnerability in Kernel.sprintf. CVE-2017-0899 ANSI escape sequence vulnerability in RubyGems. CVE-2017-0900 DoS vulnerability in the RubyGems query command. CVE-2017-0901 gem installer allowed a malicious gem to overwrite arbitrary files. CVE-2017-0902 RubyGems DNS request hijacking vulnerability. CVE-2017-0903 Max Justicz reported that RubyGems is prone to an unsafe object deserialization vulnerability. When parsed by an application which processes gems, a specially crafted YAML formatted gem specification can lead to remote code execution. CVE-2017-10784 Yusuke Endoh discovered an escape sequence injection vulnerability in the Basic authentication of WEBrick. An attacker can take advantage of this flaw to inject malicious escape sequences to the WEBrick log and potentially execute control characters on the victim
    last seen2020-06-01
    modified2020-06-02
    plugin id111081
    published2018-07-16
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/111081
    titleDebian DLA-1421-1 : ruby2.1 security update
  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2018-1_0-0100.NASL
    descriptionAn update of 'ruby' packages of Photon OS has been released.
    last seen2019-02-08
    modified2019-02-07
    plugin id111912
    published2018-08-17
    reporterTenable
    sourcehttps://www.tenable.com/plugins/index.php?view=single&id=111912
    titlePhoton OS 1.0: Ruby PHSA-2018-1.0-0100 (deprecated)
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2018-1066.NASL
    descriptionAccording to the versions of the ruby packages installed, the EulerOS installation on the remote host is affected by the following vulnerabilities : - It was discovered that the Net::FTP module did not properly process filenames in combination with certain operations. A remote attacker could exploit this flaw to execute arbitrary commands by setting up a malicious FTP server and tricking a user or Ruby application into downloading files with specially crafted names using the Net::FTP module. (CVE-2017-17405) - A buffer underflow was found in ruby
    last seen2020-05-06
    modified2018-03-20
    plugin id108470
    published2018-03-20
    reporterThis script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/108470
    titleEulerOS 2.0 SP1 : ruby (EulerOS-SA-2018-1066)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2018-0378.NASL
    descriptionAn update for ruby is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. Ruby is an extensible, interpreted, object-oriented, scripting language. It has features to process text files and to perform system management tasks. Security Fix(es) : * It was discovered that the Net::FTP module did not properly process filenames in combination with certain operations. A remote attacker could exploit this flaw to execute arbitrary commands by setting up a malicious FTP server and tricking a user or Ruby application into downloading files with specially crafted names using the Net::FTP module. (CVE-2017-17405) * A buffer underflow was found in ruby
    last seen2020-06-01
    modified2020-06-02
    plugin id107270
    published2018-03-12
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/107270
    titleCentOS 7 : ruby (CESA-2018:0378)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-1222.NASL
    descriptionSeveral vulnerabilities have been discovered in the interpreter for the Ruby language. The Common Vulnerabilities and Exposures project identifies the following problems : CVE-2017-17405 A command injection vulnerability in Net::FTP might allow a malicious FTP server the execution of arbitrary commands. CVE-2017-17790 A command injection vulnerability in lib/resolv.rb
    last seen2020-03-17
    modified2017-12-26
    plugin id105429
    published2017-12-26
    reporterThis script is Copyright (C) 2017-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/105429
    titleDebian DLA-1222-1 : ruby1.8 security update
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-4259.NASL
    descriptionSeveral vulnerabilities have been discovered in the interpreter for the Ruby language, which may result in incorrect processing of HTTP/FTP, directory traversal, command injection, unintended socket creation or information disclosure. This update also fixes several issues in RubyGems which could allow an attacker to use specially crafted gem files to mount cross-site scripting attacks, cause denial of service through an infinite loop, write arbitrary files, or run malicious code.
    last seen2020-06-01
    modified2020-06-02
    plugin id111468
    published2018-08-02
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/111468
    titleDebian DSA-4259-1 : ruby2.3 - security update
  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2018-2_0-0013_OPENJDK8.NASL
    descriptionAn update of the openjdk8 package has been released.
    last seen2020-03-17
    modified2019-02-07
    plugin id121911
    published2019-02-07
    reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/121911
    titlePhoton OS 2.0: Openjdk8 PHSA-2018-2.0-0013
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2018-0378.NASL
    descriptionFrom Red Hat Security Advisory 2018:0378 : An update for ruby is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. Ruby is an extensible, interpreted, object-oriented, scripting language. It has features to process text files and to perform system management tasks. Security Fix(es) : * It was discovered that the Net::FTP module did not properly process filenames in combination with certain operations. A remote attacker could exploit this flaw to execute arbitrary commands by setting up a malicious FTP server and tricking a user or Ruby application into downloading files with specially crafted names using the Net::FTP module. (CVE-2017-17405) * A buffer underflow was found in ruby
    last seen2020-06-01
    modified2020-06-02
    plugin id107080
    published2018-03-01
    reporterThis script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/107080
    titleOracle Linux 7 : ruby (ELSA-2018-0378)

Redhat

advisories
  • bugzilla
    id1528218
    titleCVE-2017-17790 ruby: Command injection in lib/resolv.rb:lazy_initialize() allows arbitrary code execution
    oval
    OR
    • commentRed Hat Enterprise Linux must be installed
      ovaloval:com.redhat.rhba:tst:20070304026
    • AND
      • commentRed Hat Enterprise Linux 7 is installed
        ovaloval:com.redhat.rhba:tst:20150364027
      • OR
        • AND
          • commentrubygem-rdoc is earlier than 0:4.0.0-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378001
          • commentrubygem-rdoc is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384040
        • AND
          • commentruby-irb is earlier than 0:2.0.0.648-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378003
          • commentruby-irb is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384070
        • AND
          • commentrubygems is earlier than 0:2.0.14.1-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378005
          • commentrubygems is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384034
        • AND
          • commentrubygem-bigdecimal is earlier than 0:1.2.0-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378007
          • commentrubygem-bigdecimal is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384022
        • AND
          • commentrubygem-json is earlier than 0:1.7.7-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378009
          • commentrubygem-json is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384014
        • AND
          • commentruby is earlier than 0:2.0.0.648-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378011
          • commentruby is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384030
        • AND
          • commentruby-libs is earlier than 0:2.0.0.648-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378013
          • commentruby-libs is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384024
        • AND
          • commentrubygem-io-console is earlier than 0:0.4.2-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378015
          • commentrubygem-io-console is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384016
        • AND
          • commentrubygem-psych is earlier than 0:2.0.0-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378017
          • commentrubygem-psych is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384002
        • AND
          • commentruby-tcltk is earlier than 0:2.0.0.648-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378019
          • commentruby-tcltk is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhsa:tst:20110910008
        • AND
          • commentruby-devel is earlier than 0:2.0.0.648-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378021
          • commentruby-devel is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384026
        • AND
          • commentrubygems-devel is earlier than 0:2.0.14.1-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378023
          • commentrubygems-devel is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384032
        • AND
          • commentrubygem-rake is earlier than 0:0.9.6-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378025
          • commentrubygem-rake is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384042
        • AND
          • commentruby-doc is earlier than 0:2.0.0.648-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378027
          • commentruby-doc is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384072
        • AND
          • commentrubygem-minitest is earlier than 0:4.3.2-33.el7_4
            ovaloval:com.redhat.rhsa:tst:20180378029
          • commentrubygem-minitest is signed with Red Hat redhatrelease2 key
            ovaloval:com.redhat.rhba:tst:20193384056
    rhsa
    idRHSA-2018:0378
    released2018-02-28
    severityImportant
    titleRHSA-2018:0378: ruby security update (Important)
  • rhsa
    idRHSA-2018:0583
  • rhsa
    idRHSA-2018:0584
  • rhsa
    idRHSA-2018:0585
rpms
  • ruby-0:2.0.0.648-33.el7_4
  • ruby-debuginfo-0:2.0.0.648-33.el7_4
  • ruby-devel-0:2.0.0.648-33.el7_4
  • ruby-doc-0:2.0.0.648-33.el7_4
  • ruby-irb-0:2.0.0.648-33.el7_4
  • ruby-libs-0:2.0.0.648-33.el7_4
  • ruby-tcltk-0:2.0.0.648-33.el7_4
  • rubygem-bigdecimal-0:1.2.0-33.el7_4
  • rubygem-io-console-0:0.4.2-33.el7_4
  • rubygem-json-0:1.7.7-33.el7_4
  • rubygem-minitest-0:4.3.2-33.el7_4
  • rubygem-psych-0:2.0.0-33.el7_4
  • rubygem-rake-0:0.9.6-33.el7_4
  • rubygem-rdoc-0:4.0.0-33.el7_4
  • rubygems-0:2.0.14.1-33.el7_4
  • rubygems-devel-0:2.0.14.1-33.el7_4
  • rh-ruby22-ruby-0:2.2.9-19.el6
  • rh-ruby22-ruby-0:2.2.9-19.el7
  • rh-ruby22-ruby-debuginfo-0:2.2.9-19.el6
  • rh-ruby22-ruby-debuginfo-0:2.2.9-19.el7
  • rh-ruby22-ruby-devel-0:2.2.9-19.el6
  • rh-ruby22-ruby-devel-0:2.2.9-19.el7
  • rh-ruby22-ruby-doc-0:2.2.9-19.el6
  • rh-ruby22-ruby-doc-0:2.2.9-19.el7
  • rh-ruby22-ruby-irb-0:2.2.9-19.el6
  • rh-ruby22-ruby-irb-0:2.2.9-19.el7
  • rh-ruby22-ruby-libs-0:2.2.9-19.el6
  • rh-ruby22-ruby-libs-0:2.2.9-19.el7
  • rh-ruby22-ruby-tcltk-0:2.2.9-19.el6
  • rh-ruby22-ruby-tcltk-0:2.2.9-19.el7
  • rh-ruby22-rubygem-bigdecimal-0:1.2.6-19.el6
  • rh-ruby22-rubygem-bigdecimal-0:1.2.6-19.el7
  • rh-ruby22-rubygem-io-console-0:0.4.3-19.el6
  • rh-ruby22-rubygem-io-console-0:0.4.3-19.el7
  • rh-ruby22-rubygem-json-0:1.8.1.1-19.el6
  • rh-ruby22-rubygem-json-0:1.8.1.1-19.el7
  • rh-ruby22-rubygem-minitest-0:5.4.3-19.el6
  • rh-ruby22-rubygem-minitest-0:5.4.3-19.el7
  • rh-ruby22-rubygem-power_assert-0:0.2.2-19.el6
  • rh-ruby22-rubygem-power_assert-0:0.2.2-19.el7
  • rh-ruby22-rubygem-psych-0:2.0.8.1-19.el6
  • rh-ruby22-rubygem-psych-0:2.0.8.1-19.el7
  • rh-ruby22-rubygem-rake-0:10.4.2-19.el6
  • rh-ruby22-rubygem-rake-0:10.4.2-19.el7
  • rh-ruby22-rubygem-rdoc-0:4.2.0-19.el6
  • rh-ruby22-rubygem-rdoc-0:4.2.0-19.el7
  • rh-ruby22-rubygem-test-unit-0:3.0.8-19.el6
  • rh-ruby22-rubygem-test-unit-0:3.0.8-19.el7
  • rh-ruby22-rubygems-0:2.4.5.4-19.el6
  • rh-ruby22-rubygems-0:2.4.5.4-19.el7
  • rh-ruby22-rubygems-devel-0:2.4.5.4-19.el6
  • rh-ruby22-rubygems-devel-0:2.4.5.4-19.el7
  • rh-ruby24-ruby-0:2.4.3-90.el6
  • rh-ruby24-ruby-0:2.4.3-90.el7
  • rh-ruby24-ruby-debuginfo-0:2.4.3-90.el6
  • rh-ruby24-ruby-debuginfo-0:2.4.3-90.el7
  • rh-ruby24-ruby-devel-0:2.4.3-90.el6
  • rh-ruby24-ruby-devel-0:2.4.3-90.el7
  • rh-ruby24-ruby-doc-0:2.4.3-90.el6
  • rh-ruby24-ruby-doc-0:2.4.3-90.el7
  • rh-ruby24-ruby-irb-0:2.4.3-90.el6
  • rh-ruby24-ruby-irb-0:2.4.3-90.el7
  • rh-ruby24-ruby-libs-0:2.4.3-90.el6
  • rh-ruby24-ruby-libs-0:2.4.3-90.el7
  • rh-ruby24-rubygem-bigdecimal-0:1.3.0-90.el6
  • rh-ruby24-rubygem-bigdecimal-0:1.3.0-90.el7
  • rh-ruby24-rubygem-did_you_mean-0:1.1.0-90.el6
  • rh-ruby24-rubygem-did_you_mean-0:1.1.0-90.el7
  • rh-ruby24-rubygem-io-console-0:0.4.6-90.el6
  • rh-ruby24-rubygem-io-console-0:0.4.6-90.el7
  • rh-ruby24-rubygem-json-0:2.0.4-90.el6
  • rh-ruby24-rubygem-json-0:2.0.4-90.el7
  • rh-ruby24-rubygem-minitest-0:5.10.1-90.el6
  • rh-ruby24-rubygem-minitest-0:5.10.1-90.el7
  • rh-ruby24-rubygem-net-telnet-0:0.1.1-90.el6
  • rh-ruby24-rubygem-net-telnet-0:0.1.1-90.el7
  • rh-ruby24-rubygem-openssl-0:2.0.5-90.el6
  • rh-ruby24-rubygem-openssl-0:2.0.5-90.el7
  • rh-ruby24-rubygem-power_assert-0:0.4.1-90.el6
  • rh-ruby24-rubygem-power_assert-0:0.4.1-90.el7
  • rh-ruby24-rubygem-psych-0:2.2.2-90.el6
  • rh-ruby24-rubygem-psych-0:2.2.2-90.el7
  • rh-ruby24-rubygem-rake-0:12.0.0-90.el6
  • rh-ruby24-rubygem-rake-0:12.0.0-90.el7
  • rh-ruby24-rubygem-rdoc-0:5.0.0-90.el6
  • rh-ruby24-rubygem-rdoc-0:5.0.0-90.el7
  • rh-ruby24-rubygem-test-unit-0:3.2.3-90.el6
  • rh-ruby24-rubygem-test-unit-0:3.2.3-90.el7
  • rh-ruby24-rubygem-xmlrpc-0:0.2.1-90.el6
  • rh-ruby24-rubygem-xmlrpc-0:0.2.1-90.el7
  • rh-ruby24-rubygems-0:2.6.14-90.el6
  • rh-ruby24-rubygems-0:2.6.14-90.el7
  • rh-ruby24-rubygems-devel-0:2.6.14-90.el6
  • rh-ruby24-rubygems-devel-0:2.6.14-90.el7
  • rh-ruby23-ruby-0:2.3.6-67.el6
  • rh-ruby23-ruby-0:2.3.6-67.el7
  • rh-ruby23-ruby-debuginfo-0:2.3.6-67.el6
  • rh-ruby23-ruby-debuginfo-0:2.3.6-67.el7
  • rh-ruby23-ruby-devel-0:2.3.6-67.el6
  • rh-ruby23-ruby-devel-0:2.3.6-67.el7
  • rh-ruby23-ruby-doc-0:2.3.6-67.el6
  • rh-ruby23-ruby-doc-0:2.3.6-67.el7
  • rh-ruby23-ruby-irb-0:2.3.6-67.el6
  • rh-ruby23-ruby-irb-0:2.3.6-67.el7
  • rh-ruby23-ruby-libs-0:2.3.6-67.el6
  • rh-ruby23-ruby-libs-0:2.3.6-67.el7
  • rh-ruby23-ruby-tcltk-0:2.3.6-67.el6
  • rh-ruby23-ruby-tcltk-0:2.3.6-67.el7
  • rh-ruby23-rubygem-bigdecimal-0:1.2.8-67.el6
  • rh-ruby23-rubygem-bigdecimal-0:1.2.8-67.el7
  • rh-ruby23-rubygem-did_you_mean-0:1.0.0-67.el6
  • rh-ruby23-rubygem-did_you_mean-0:1.0.0-67.el7
  • rh-ruby23-rubygem-io-console-0:0.4.5-67.el6
  • rh-ruby23-rubygem-io-console-0:0.4.5-67.el7
  • rh-ruby23-rubygem-json-0:1.8.3.1-67.el6
  • rh-ruby23-rubygem-json-0:1.8.3.1-67.el7
  • rh-ruby23-rubygem-minitest-0:5.8.5-67.el6
  • rh-ruby23-rubygem-minitest-0:5.8.5-67.el7
  • rh-ruby23-rubygem-net-telnet-0:0.1.1-67.el6
  • rh-ruby23-rubygem-net-telnet-0:0.1.1-67.el7
  • rh-ruby23-rubygem-power_assert-0:0.2.6-67.el6
  • rh-ruby23-rubygem-power_assert-0:0.2.6-67.el7
  • rh-ruby23-rubygem-psych-0:2.1.0.1-67.el6
  • rh-ruby23-rubygem-psych-0:2.1.0.1-67.el7
  • rh-ruby23-rubygem-rake-0:10.4.2-67.el6
  • rh-ruby23-rubygem-rake-0:10.4.2-67.el7
  • rh-ruby23-rubygem-rdoc-0:4.2.1-67.el6
  • rh-ruby23-rubygem-rdoc-0:4.2.1-67.el7
  • rh-ruby23-rubygem-test-unit-0:3.1.5-67.el6
  • rh-ruby23-rubygem-test-unit-0:3.1.5-67.el7
  • rh-ruby23-rubygems-0:2.5.2.2-67.el6
  • rh-ruby23-rubygems-0:2.5.2.2-67.el7
  • rh-ruby23-rubygems-devel-0:2.5.2.2-67.el6
  • rh-ruby23-rubygems-devel-0:2.5.2.2-67.el7