{
  "threat_severity" : "Moderate",
  "public_date" : "2016-11-20T00:00:00Z",
  "bugzilla" : {
    "description" : "vim: Lack of validation of values for few options results in code exection",
    "id" : "1398227",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1398227"
  },
  "cvss" : {
    "cvss_base_score" : "6.8",
    "cvss_scoring_vector" : "AV:N/AC:M/Au:N/C:P/I:P/A:P",
    "status" : "verified"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.5",
    "cvss3_scoring_vector" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-20->CWE-138",
  "details" : [ "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.", "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." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "release_date" : "2016-12-21T00:00:00Z",
    "advisory" : "RHSA-2016:2972",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6",
    "package" : "vim-2:7.4.629-5.el6_8.1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "release_date" : "2016-12-21T00:00:00Z",
    "advisory" : "RHSA-2016:2972",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7",
    "package" : "vim-2:7.4.160-1.el7_3.1"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 5",
    "fix_state" : "Will not fix",
    "package_name" : "vim",
    "cpe" : "cpe:/o:redhat:enterprise_linux:5"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2016-1248\nhttps://nvd.nist.gov/vuln/detail/CVE-2016-1248" ],
  "name" : "CVE-2016-1248",
  "mitigation" : {
    "value" : "Disabling modeline support in .vimrc by adding \"set nomodeline\" will prevent exploitation of this flaw. By default, modeline is enabled for ordinary users but disabled for root.",
    "lang" : "en:us"
  },
  "csaw" : false
}