Vulnerabilities > CVE-2016-1248 - Improper Input Validation vulnerability in multiple products

047910
CVSS 7.8 - HIGH
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
local
low complexity
vim
debian
CWE-20
nessus

Summary

vim before patch 8.0.0056 does not properly validate values for the 'filetype', 'syntax' and 'keymap' options, which may result in the execution of arbitrary code if a file with a specially crafted modeline is opened.

Vulnerable Configurations

Part Description Count
Application
Vim
5142
OS
Debian
1

Common Weakness Enumeration (CWE)

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 Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • 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.

Nessus

  • NASL familyF5 Networks Local Security Checks
    NASL idF5_BIGIP_SOL22183127.NASL
    descriptionvim before patch 8.0.0056 does not properly validate values for the
    last seen2020-06-01
    modified2020-06-02
    plugin id104304
    published2017-11-01
    reporterThis script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/104304
    titleF5 Networks BIG-IP : Vim vulnerability (K22183127)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text and package checks in this plugin were
    # extracted from F5 Networks BIG-IP Solution K22183127.
    #
    # The text description of this plugin is (C) F5 Networks.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(104304);
      script_version("3.9");
      script_cvs_date("Date: 2019/01/04 10:03:41");
    
      script_cve_id("CVE-2016-1248");
    
      script_name(english:"F5 Networks BIG-IP : Vim vulnerability (K22183127)");
      script_summary(english:"Checks the BIG-IP version.");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote device is missing a vendor-supplied security patch."
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "vim before patch 8.0.0056 does not properly validate values for the
    'filetype', 'syntax' and 'keymap' options, which may result in the
    execution of arbitrary code if a file with a specially crafted
    modeline is opened. (CVE-2016-1248)"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://support.f5.com/csp/article/K22183127"
      );
      script_set_attribute(
        attribute:"solution", 
        value:
    "Upgrade to one of the non-vulnerable versions listed in the F5
    Solution K22183127."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/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:"exploitability_ease", value:"No known exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"false");
    
      script_set_attribute(attribute:"potential_vulnerability", value:"true");
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:f5:big-ip_access_policy_manager");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:f5:big-ip_advanced_firewall_manager");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:f5:big-ip_application_acceleration_manager");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:f5:big-ip_application_security_manager");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:f5:big-ip_application_visibility_and_reporting");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:f5:big-ip_global_traffic_manager");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:f5:big-ip_link_controller");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:f5:big-ip_local_traffic_manager");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:f5:big-ip_policy_enforcement_manager");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:f5:big-ip_webaccelerator");
      script_set_attribute(attribute:"cpe", value:"cpe:/h:f5:big-ip");
      script_set_attribute(attribute:"cpe", value:"cpe:/h:f5:big-ip_protocol_security_manager");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2017/03/20");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_set_attribute(attribute:"plugin_publication_date", value:"2017/11/01");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"F5 Networks Local Security Checks");
    
      script_dependencies("f5_bigip_detect.nbin");
      script_require_keys("Host/local_checks_enabled", "Host/BIG-IP/hotfix", "Host/BIG-IP/modules", "Host/BIG-IP/version", "Settings/ParanoidReport");
    
      exit(0);
    }
    
    
    include("f5_func.inc");
    
    if ( ! get_kb_item("Host/local_checks_enabled") ) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    version = get_kb_item("Host/BIG-IP/version");
    if ( ! version ) audit(AUDIT_OS_NOT, "F5 Networks BIG-IP");
    if ( isnull(get_kb_item("Host/BIG-IP/hotfix")) ) audit(AUDIT_KB_MISSING, "Host/BIG-IP/hotfix");
    if ( ! get_kb_item("Host/BIG-IP/modules") ) audit(AUDIT_KB_MISSING, "Host/BIG-IP/modules");
    
    sol = "K22183127";
    vmatrix = make_array();
    
    if (report_paranoia < 2) audit(AUDIT_PARANOID);
    
    # AFM
    vmatrix["AFM"] = make_array();
    vmatrix["AFM"]["affected"  ] = make_list("13.0.0","12.0.0-12.1.2","11.4.0-11.5.5","11.6.0-11.6.1");
    vmatrix["AFM"]["unaffected"] = make_list("13.1.0","12.1.3","11.6.2","11.5.6");
    
    # AM
    vmatrix["AM"] = make_array();
    vmatrix["AM"]["affected"  ] = make_list("13.0.0","12.0.0-12.1.2","11.4.0-11.5.5","11.6.0-11.6.1");
    vmatrix["AM"]["unaffected"] = make_list("13.1.0","12.1.3","11.6.2","11.5.6");
    
    # APM
    vmatrix["APM"] = make_array();
    vmatrix["APM"]["affected"  ] = make_list("13.0.0","12.0.0-12.1.2","11.4.0-11.5.5","11.6.0-11.6.1","11.2.1");
    vmatrix["APM"]["unaffected"] = make_list("13.1.0","12.1.3","11.6.2","11.5.6");
    
    # ASM
    vmatrix["ASM"] = make_array();
    vmatrix["ASM"]["affected"  ] = make_list("13.0.0","12.0.0-12.1.2","11.4.0-11.5.5","11.6.0-11.6.1","11.2.1");
    vmatrix["ASM"]["unaffected"] = make_list("13.1.0","12.1.3","11.6.2","11.5.6");
    
    # AVR
    vmatrix["AVR"] = make_array();
    vmatrix["AVR"]["affected"  ] = make_list("13.0.0","12.0.0-12.1.2","11.4.0-11.5.5","11.6.0-11.6.1","11.2.1");
    vmatrix["AVR"]["unaffected"] = make_list("13.1.0","12.1.3","11.6.2","11.5.6");
    
    # GTM
    vmatrix["GTM"] = make_array();
    vmatrix["GTM"]["affected"  ] = make_list("11.4.0-11.5.5","11.6.0-11.6.1","11.2.1");
    vmatrix["GTM"]["unaffected"] = make_list("11.6.2","11.5.6");
    
    # LC
    vmatrix["LC"] = make_array();
    vmatrix["LC"]["affected"  ] = make_list("13.0.0","12.0.0-12.1.2","11.4.0-11.5.5","11.6.0-11.6.1","11.2.1");
    vmatrix["LC"]["unaffected"] = make_list("13.1.0","12.1.3","11.6.2","11.5.6");
    
    # LTM
    vmatrix["LTM"] = make_array();
    vmatrix["LTM"]["affected"  ] = make_list("13.0.0","12.0.0-12.1.2","11.4.0-11.5.5","11.6.0-11.6.1","11.2.1");
    vmatrix["LTM"]["unaffected"] = make_list("13.1.0","12.1.3","11.6.2","11.5.6");
    
    # PEM
    vmatrix["PEM"] = make_array();
    vmatrix["PEM"]["affected"  ] = make_list("13.0.0","12.0.0-12.1.2","11.4.0-11.5.5","11.6.0-11.6.1");
    vmatrix["PEM"]["unaffected"] = make_list("13.1.0","12.1.3","11.6.2","11.5.6");
    
    
    if (bigip_is_affected(vmatrix:vmatrix, sol:sol))
    {
      if (report_verbosity > 0) security_warning(port:0, extra:bigip_report_get());
      else security_warning(0);
      exit(0);
    }
    else
    {
      tested = bigip_get_tested_modules();
      audit_extra = "For BIG-IP module(s) " + tested + ",";
      if (tested) audit(AUDIT_INST_VER_NOT_VULN, audit_extra, version);
      else audit(AUDIT_HOST_NOT, "running any of the affected modules");
    }
    
  • NASL familyScientific Linux Local Security Checks
    NASL idSL_20161221_VIM_ON_SL6_X.NASL
    descriptionSecurity Fix(es) : - A vulnerability was found in vim in how certain modeline options were treated. An attacker could craft a file that, when opened in vim with modelines enabled, could execute arbitrary commands with privileges of the user running vim. (CVE-2016-1248)
    last seen2020-03-18
    modified2016-12-21
    plugin id96044
    published2016-12-21
    reporterThis script is Copyright (C) 2016-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/96044
    titleScientific Linux Security Update : vim on SL6.x, SL7.x i386/x86_64 (20161221)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text is (C) Scientific Linux.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(96044);
      script_version("3.3");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/02/25");
    
      script_cve_id("CVE-2016-1248");
    
      script_name(english:"Scientific Linux Security Update : vim on SL6.x, SL7.x i386/x86_64 (20161221)");
      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:
    "Security Fix(es) :
    
      - A vulnerability was found in vim in how certain modeline
        options were treated. An attacker could craft a file
        that, when opened in vim with modelines enabled, could
        execute arbitrary commands with privileges of the user
        running vim. (CVE-2016-1248)"
      );
      # https://listserv.fnal.gov/scripts/wa.exe?A2=ind1612&L=scientific-linux-errata&F=&S=&P=18621
      script_set_attribute(
        attribute:"see_also",
        value:"http://www.nessus.org/u?c03f8cd8"
      );
      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_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/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:fermilab:scientific_linux:vim-X11");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:vim-common");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:vim-debuginfo");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:vim-enhanced");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:vim-filesystem");
      script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fermilab:scientific_linux:vim-minimal");
      script_set_attribute(attribute:"cpe", value:"x-cpe:/o:fermilab:scientific_linux");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2016/11/23");
      script_set_attribute(attribute:"patch_publication_date", value:"2016/12/21");
      script_set_attribute(attribute:"plugin_publication_date", value:"2016/12/21");
      script_set_attribute(attribute:"generated_plugin", value:"current");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2016-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
      script_family(english:"Scientific Linux Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/RedHat/release", "Host/RedHat/rpm-list");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("misc_func.inc");
    include("rpm.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    release = get_kb_item("Host/RedHat/release");
    if (isnull(release) || "Scientific Linux " >!< release) audit(AUDIT_HOST_NOT, "running Scientific Linux");
    os_ver = pregmatch(pattern: "Scientific Linux.*release ([0-9]+(\.[0-9]+)?)", string:release);
    if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Scientific Linux");
    os_ver = os_ver[1];
    if (! preg(pattern:"^7([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Scientific Linux 7.x", "Scientific Linux " + os_ver);
    if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING);
    
    cpu = get_kb_item("Host/cpu");
    if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH);
    if (cpu >!< "x86_64" && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Scientific Linux", cpu);
    
    
    flag = 0;
    if (rpm_check(release:"SL6", reference:"vim-X11-7.4.629-5.el6_8.1")) flag++;
    if (rpm_check(release:"SL6", reference:"vim-common-7.4.629-5.el6_8.1")) flag++;
    if (rpm_check(release:"SL6", reference:"vim-debuginfo-7.4.629-5.el6_8.1")) flag++;
    if (rpm_check(release:"SL6", reference:"vim-enhanced-7.4.629-5.el6_8.1")) flag++;
    if (rpm_check(release:"SL6", reference:"vim-filesystem-7.4.629-5.el6_8.1")) flag++;
    if (rpm_check(release:"SL6", reference:"vim-minimal-7.4.629-5.el6_8.1")) flag++;
    
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"vim-X11-7.4.160-1.el7_3.1")) flag++;
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"vim-common-7.4.160-1.el7_3.1")) flag++;
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"vim-debuginfo-7.4.160-1.el7_3.1")) flag++;
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"vim-enhanced-7.4.160-1.el7_3.1")) flag++;
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"vim-filesystem-7.4.160-1.el7_3.1")) flag++;
    if (rpm_check(release:"SL7", cpu:"x86_64", reference:"vim-minimal-7.4.160-1.el7_3.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, "vim-X11 / vim-common / vim-debuginfo / vim-enhanced / etc");
    }
    
  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2016-0012_VIM.NASL
    descriptionAn update of the vim package has been released.
    last seen2020-03-17
    modified2019-02-07
    plugin id121652
    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/121652
    titlePhoton OS 1.0: Vim PHSA-2016-0012
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    
    # The descriptive text and package checks in this plugin were
    # extracted from VMware Security Advisory PHSA-2016-0012. The text
    # itself is copyright (C) VMware, Inc.
    
    
    include('compat.inc');
    
    if (description)
    {
      script_id(121652);
      script_version("1.2");
      script_set_attribute(attribute:"plugin_modification_date", value:"2019/02/07");
    
      script_cve_id("CVE-2016-1248");
    
      script_name(english:"Photon OS 1.0: Vim PHSA-2016-0012");
      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 vim package has been released.");
      script_set_attribute(attribute:"see_also", value:"https://github.com/vmware/photon/wiki/Security-Updates-12.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:C/I:C/A:C");
      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-2016-9555");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2016/12/06");
      script_set_attribute(attribute:"patch_publication_date", value:"2016/12/06");
      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:vim");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:photonos:1.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) 1\.0(\D|$)") audit(AUDIT_OS_NOT, "PhotonOS 1.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-1.0", reference:"vim-7.4-6.ph1")) flag++;
    if (rpm_check(release:"PhotonOS-1.0", reference:"vim-extra-7.4-6.ph1")) 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, "vim");
    }
    
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-718.NASL
    descriptionFlorian Larysch and Bram Moolenaar discovered that vim, an enhanced vi editor, does not properly validate values for the the
    last seen2020-03-17
    modified2016-11-23
    plugin id95263
    published2016-11-23
    reporterThis script is Copyright (C) 2016-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/95263
    titleDebian DLA-718-1 : vim security update
  • NASL familyOracleVM Local Security Checks
    NASL idORACLEVM_OVMSA-2016-0182.NASL
    descriptionThe remote OracleVM system is missing necessary patches to address critical security updates : - add fix for (CVE-2016-1248)
    last seen2020-06-01
    modified2020-06-02
    plugin id96074
    published2016-12-22
    reporterThis script is Copyright (C) 2016-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/96074
    titleOracleVM 3.3 / 3.4 : vim (OVMSA-2016-0182)
  • NASL familyPhotonOS Local Security Checks
    NASL idPHOTONOS_PHSA-2016-0012.NASL
    descriptionAn update of [ linux , wget , vim , grub2 , zookeeper , nginx , dnsmasq , haproxy ] packages for PhotonOS has been released.
    last seen2019-02-21
    modified2019-02-07
    plugin id111846
    published2018-08-17
    reporterTenable
    sourcehttps://www.tenable.com/plugins/index.php?view=single&id=111846
    titlePhoton OS 1.0: Dnsmasq / Grub2 / Haproxy / Linux / Nginx / Vim / Wget / Zookeeper PHSA-2016-0012 (deprecated)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DSA-3722.NASL
    descriptionFlorian Larysch and Bram Moolenaar discovered that vim, an enhanced vi editor, does not properly validate values for the
    last seen2020-06-01
    modified2020-06-02
    plugin id95264
    published2016-11-23
    reporterThis script is Copyright (C) 2016-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/95264
    titleDebian DSA-3722-1 : vim - security update
  • NASL familyAmazon Linux Local Security Checks
    NASL idALA_ALAS-2016-779.NASL
    descriptionA vulnerability was found in vim in how certain modeline options were treated. An attacker could craft a file that, when opened in vim with modelines enabled, could execute arbitrary commands with privileges of the user running vim. (modelines are disabled by default for root, and enabled by default for other users.)
    last seen2020-06-01
    modified2020-06-02
    plugin id95935
    published2016-12-20
    reporterThis script is Copyright (C) 2016-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/95935
    titleAmazon Linux AMI : vim (ALAS-2016-779)
  • NASL familyRed Hat Local Security Checks
    NASL idREDHAT-RHSA-2016-2972.NASL
    descriptionAn update for vim is now available for Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. 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. Vim (Vi IMproved) is an updated and improved version of the vi editor. Security Fix(es) : * A vulnerability was found in vim in how certain modeline options were treated. An attacker could craft a file that, when opened in vim with modelines enabled, could execute arbitrary commands with privileges of the user running vim. (CVE-2016-1248)
    last seen2020-06-01
    modified2020-06-02
    plugin id95983
    published2016-12-21
    reporterThis script is Copyright (C) 2016-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/95983
    titleRHEL 6 / 7 : vim (RHSA-2016:2972)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_SU-2016-2942-1.NASL
    descriptionThis update for vim fixes the following security issues : - Fixed CVE-2016-1248 an arbitrary command execution vulnerability (bsc#1010685) This update for vim fixes the following issues : - Fix build with Python 3.5. (bsc#988903) Note that Tenable Network Security has extracted the preceding description block directly from the SUSE 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 id95398
    published2016-11-29
    reporterThis script is Copyright (C) 2016-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/95398
    titleSUSE SLED12 / SLES12 Security Update : vim (SUSE-SU-2016:2942-1)
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2016-1390.NASL
    descriptionThis update for vim fixes the following security issues : - Fixed CVE-2016-1248 an arbitrary command execution vulnerability (bsc#1010685) This update for vim fixes the following issues : - Fix build with Python 3.5. (bsc#988903) This update was imported from the SUSE:SLE-12:Update update project.
    last seen2020-06-05
    modified2016-12-06
    plugin id95550
    published2016-12-06
    reporterThis script is Copyright (C) 2016-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/95550
    titleopenSUSE Security Update : vim (openSUSE-2016-1390)
  • NASL familyCentOS Local Security Checks
    NASL idCENTOS_RHSA-2016-2972.NASL
    descriptionAn update for vim is now available for Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. 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. Vim (Vi IMproved) is an updated and improved version of the vi editor. Security Fix(es) : * A vulnerability was found in vim in how certain modeline options were treated. An attacker could craft a file that, when opened in vim with modelines enabled, could execute arbitrary commands with privileges of the user running vim. (CVE-2016-1248)
    last seen2020-06-01
    modified2020-06-02
    plugin id96048
    published2016-12-22
    reporterThis script is Copyright (C) 2016-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/96048
    titleCentOS 6 / 7 : vim (CESA-2016:2972)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201701-29.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201701-29 (Vim, gVim: Remote execution of arbitrary code) Vim and gVim do not properly validate values for the &lsquo;filetype&rsquo;, &lsquo;syntax&rsquo;, and &lsquo;keymap&rsquo; options. Impact : A remote attacker could entice a user to open a specially crafted file using Vim/gVim with certain modeline options enabled possibly resulting in execution of arbitrary code with the privileges of the process. Workaround : Disabling modeline support in .vimrc by adding &ldquo;set nomodeline&rdquo; will prevent exploitation of this flaw. By default, modeline is enabled for ordinary users but disabled for root.
    last seen2020-06-01
    modified2020-06-02
    plugin id96423
    published2017-01-12
    reporterThis script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/96423
    titleGLSA-201701-29 : Vim, gVim: Remote execution of arbitrary code
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-3139-1.NASL
    descriptionFlorian Larysch discovered that the Vim text editor did not properly validate values for the
    last seen2020-06-01
    modified2020-06-02
    plugin id95386
    published2016-11-29
    reporterUbuntu Security Notice (C) 2016-2019 Canonical, Inc. / NASL script (C) 2016-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/95386
    titleUbuntu 12.04 LTS / 14.04 LTS / 16.04 LTS / 16.10 : vim vulnerability (USN-3139-1)
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2016-1391.NASL
    descriptionThis update for vim fixes the following security issues : - Fixed CVE-2016-1248 an arbitrary command execution vulnerability (bsc#1010685)
    last seen2020-06-05
    modified2016-12-06
    plugin id95551
    published2016-12-06
    reporterThis script is Copyright (C) 2016-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/95551
    titleopenSUSE Security Update : vim (openSUSE-2016-1391)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_SU-2016-2938-1.NASL
    descriptionThis update for vim fixes the following security issues : - Fixed CVE-2016-1248, an arbitrary command execution vulnerability (bsc#1010685) Note that Tenable Network Security has extracted the preceding description block directly from the SUSE 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 id95397
    published2016-11-29
    reporterThis script is Copyright (C) 2016-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/95397
    titleSUSE SLES11 Security Update : vim (SUSE-SU-2016:2938-1)
  • NASL familyMacOS X Local Security Checks
    NASL idMACOS_10_12_3.NASL
    descriptionThe remote host is running a version of macOS that is 10.12.x prior to 10.12.3. It is, therefore, affected by multiple vulnerabilities in the following components : - apache_mod_php - Bluetooth - Graphics Drivers - Help Viewer - IOAudioFamily - Kernel - libarchive - Vim - WebKit Note that successful exploitation of the most serious issues can result in arbitrary code execution.
    last seen2020-06-01
    modified2020-06-02
    plugin id96731
    published2017-01-24
    reporterThis script is Copyright (C) 2017-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/96731
    titlemacOS 10.12.x < 10.12.3 Multiple Vulnerabilities
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2017-1033.NASL
    descriptionAccording to the versions of the vim packages installed, the EulerOS installation on the remote host is affected by the following vulnerabilities : - A vulnerability was found in vim in how certain modeline options were treated. An attacker could craft a file that, when opened in vim with modelines enabled, could execute arbitrary commands with privileges of the user running vim. (CVE-2016-1248) - vim before patch 8.0.0322 does not properly validate values for tree length when handling a spell file, which may result in an integer overflow at a memory allocation site and a resultant buffer overflow.(CVE-2017-5953) 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.
    last seen2020-05-06
    modified2017-05-01
    plugin id99878
    published2017-05-01
    reporterThis script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/99878
    titleEulerOS 2.0 SP1 : vim (EulerOS-SA-2017-1033)
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_C11629D3C8AD11E6AE1B002590263BF5.NASL
    descriptionMitre reports : vim before patch 8.0.0056 does not properly validate values for the
    last seen2020-06-01
    modified2020-06-02
    plugin id96118
    published2016-12-27
    reporterThis script is Copyright (C) 2016-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/96118
    titleFreeBSD : vim -- arbitrary command execution (c11629d3-c8ad-11e6-ae1b-002590263bf5)
  • NASL familyHuawei Local Security Checks
    NASL idEULEROS_SA-2017-1034.NASL
    descriptionAccording to the versions of the vim packages installed, the EulerOS installation on the remote host is affected by the following vulnerabilities : - A vulnerability was found in vim in how certain modeline options were treated. An attacker could craft a file that, when opened in vim with modelines enabled, could execute arbitrary commands with privileges of the user running vim. (CVE-2016-1248) - vim before patch 8.0.0322 does not properly validate values for tree length when handling a spell file, which may result in an integer overflow at a memory allocation site and a resultant buffer overflow.(CVE-2017-5953) 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.
    last seen2020-05-06
    modified2017-05-01
    plugin id99879
    published2017-05-01
    reporterThis script is Copyright (C) 2017-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/99879
    titleEulerOS 2.0 SP2 : vim (EulerOS-SA-2017-1034)
  • NASL familyOracle Linux Local Security Checks
    NASL idORACLELINUX_ELSA-2016-2972.NASL
    descriptionFrom Red Hat Security Advisory 2016:2972 : An update for vim is now available for Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Moderate. 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. Vim (Vi IMproved) is an updated and improved version of the vi editor. Security Fix(es) : * A vulnerability was found in vim in how certain modeline options were treated. An attacker could craft a file that, when opened in vim with modelines enabled, could execute arbitrary commands with privileges of the user running vim. (CVE-2016-1248)
    last seen2020-06-01
    modified2020-06-02
    plugin id95980
    published2016-12-21
    reporterThis script is Copyright (C) 2016-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/95980
    titleOracle Linux 6 / 7 : vim (ELSA-2016-2972)

Redhat

advisories
bugzilla
id1398227
titleCVE-2016-1248 vim: Lack of validation of values for few options results in code exection
oval
OR
  • commentRed Hat Enterprise Linux must be installed
    ovaloval:com.redhat.rhba:tst:20070304026
  • AND
    • commentRed Hat Enterprise Linux 6 is installed
      ovaloval:com.redhat.rhba:tst:20111656003
    • OR
      • AND
        • commentvim-minimal is earlier than 2:7.4.629-5.el6_8.1
          ovaloval:com.redhat.rhsa:tst:20162972001
        • commentvim-minimal is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20162972002
      • AND
        • commentvim-common is earlier than 2:7.4.629-5.el6_8.1
          ovaloval:com.redhat.rhsa:tst:20162972003
        • commentvim-common is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20162972004
      • AND
        • commentvim-enhanced is earlier than 2:7.4.629-5.el6_8.1
          ovaloval:com.redhat.rhsa:tst:20162972005
        • commentvim-enhanced is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20162972006
      • AND
        • commentvim-X11 is earlier than 2:7.4.629-5.el6_8.1
          ovaloval:com.redhat.rhsa:tst:20162972007
        • commentvim-X11 is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20162972008
      • AND
        • commentvim-filesystem is earlier than 2:7.4.629-5.el6_8.1
          ovaloval:com.redhat.rhsa:tst:20162972009
        • commentvim-filesystem is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20162972010
  • AND
    • commentRed Hat Enterprise Linux 7 is installed
      ovaloval:com.redhat.rhba:tst:20150364027
    • OR
      • AND
        • commentvim-X11 is earlier than 2:7.4.160-1.el7_3.1
          ovaloval:com.redhat.rhsa:tst:20162972012
        • commentvim-X11 is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20162972008
      • AND
        • commentvim-enhanced is earlier than 2:7.4.160-1.el7_3.1
          ovaloval:com.redhat.rhsa:tst:20162972013
        • commentvim-enhanced is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20162972006
      • AND
        • commentvim-filesystem is earlier than 2:7.4.160-1.el7_3.1
          ovaloval:com.redhat.rhsa:tst:20162972014
        • commentvim-filesystem is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20162972010
      • AND
        • commentvim-minimal is earlier than 2:7.4.160-1.el7_3.1
          ovaloval:com.redhat.rhsa:tst:20162972015
        • commentvim-minimal is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20162972002
      • AND
        • commentvim-common is earlier than 2:7.4.160-1.el7_3.1
          ovaloval:com.redhat.rhsa:tst:20162972016
        • commentvim-common is signed with Red Hat redhatrelease2 key
          ovaloval:com.redhat.rhsa:tst:20162972004
rhsa
idRHSA-2016:2972
released2016-12-21
severityModerate
titleRHSA-2016:2972: vim security update (Moderate)
rpms
  • vim-X11-2:7.4.160-1.el7_3.1
  • vim-X11-2:7.4.629-5.el6_8.1
  • vim-common-2:7.4.160-1.el7_3.1
  • vim-common-2:7.4.629-5.el6_8.1
  • vim-debuginfo-2:7.4.160-1.el7_3.1
  • vim-debuginfo-2:7.4.629-5.el6_8.1
  • vim-enhanced-2:7.4.160-1.el7_3.1
  • vim-enhanced-2:7.4.629-5.el6_8.1
  • vim-filesystem-2:7.4.160-1.el7_3.1
  • vim-filesystem-2:7.4.629-5.el6_8.1
  • vim-minimal-2:7.4.160-1.el7_3.1
  • vim-minimal-2:7.4.629-5.el6_8.1