{
  "threat_severity" : "Low",
  "public_date" : "2023-01-03T00:00:00Z",
  "bugzilla" : {
    "description" : "vim: out-of-bounds write in do_string_sub() in eval.c",
    "id" : "2161349",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2161349"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.8",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
    "status" : "draft"
  },
  "cwe" : "CWE-252->CWE-787",
  "details" : [ "Out-of-bounds Write in GitHub repository vim/vim prior to 9.0.1145.", "An out-of-bounds write flaw was found in Vim, in the do_string_sub function in the eval.c file. The issue occurs because of an invalid memory access due to a missing check of the return value of the vim_regsub function when a specially crafted input is processed. This flaw allows an attacker who can trick a user into opening a specially crafted file to trigger the out-of-bounds write, causing the application to crash." ],
  "statement" : "Red Hat Product Security has rated this issue as having a Low security impact because the user has to run an untrusted file in script mode.\nFor additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/ and Red Hat Enterprise Linux Life Cycle & Updates Policy: https://access.redhat.com/support/policy/updates/errata/.",
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Out of support scope",
    "package_name" : "vim",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Out of support scope",
    "package_name" : "vim",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Fix deferred",
    "package_name" : "vim",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Fix deferred",
    "package_name" : "vim",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2023-0054\nhttps://nvd.nist.gov/vuln/detail/CVE-2023-0054" ],
  "name" : "CVE-2023-0054",
  "mitigation" : {
    "value" : "Do not run untrusted vim scripts as it is not recommended.",
    "lang" : "en:us"
  },
  "csaw" : false
}