{
  "threat_severity" : "Moderate",
  "public_date" : "2022-01-30T00:00:00Z",
  "bugzilla" : {
    "description" : "vim: Use after free in src/ex_cmds.c",
    "id" : "2048519",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2048519"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.3",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
    "status" : "verified"
  },
  "cwe" : "CWE-416",
  "details" : [ "Use After Free in GitHub repository vim/vim prior to 8.2.", "A flaw was found in vim. The vulnerability occurs due to using freed memory when the substitute uses a recursive function call, resulting in a use-after-free vulnerability. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2022-03-15T00:00:00Z",
    "advisory" : "RHSA-2022:0894",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "vim-2:8.0.1763-16.el8_5.12"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2022-03-15T00:00:00Z",
    "advisory" : "RHSA-2022:0894",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "vim-2:8.0.1763-16.el8_5.12"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2022-05-17T00:00:00Z",
    "advisory" : "RHBA-2022:3945",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "vim-2:8.2.2637-15.el9"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2022-05-17T00:00:00Z",
    "advisory" : "RHBA-2022:3945",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "vim-2:8.2.2637-15.el9"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "package_name" : "vim",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "vim",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2022-0413\nhttps://nvd.nist.gov/vuln/detail/CVE-2022-0413" ],
  "name" : "CVE-2022-0413",
  "mitigation" : {
    "value" : "Untrusted vim scripts with -s [scriptin] are not recommended to run.",
    "lang" : "en:us"
  },
  "csaw" : false
}