{
  "threat_severity" : "Important",
  "public_date" : "2026-04-06T15:16:48Z",
  "bugzilla" : {
    "description" : "vim: arbitrary command execution via modeline sandbox bypass",
    "id" : "2455400",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2455400"
  },
  "cvss3" : {
    "cvss3_base_score" : "8.2",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N",
    "status" : "verified"
  },
  "cwe" : "CWE-78",
  "details" : [ "Vim is an open source, command line text editor. Prior to version 9.2.0276, a modeline sandbox bypass in Vim allows arbitrary OS command execution when a user opens a crafted file. The `complete`, `guitabtooltip` and `printheader` options are missing the `P_MLE` flag, allowing a modeline to be executed. Additionally, the `mapset()` function lacks a `check_secure()` call, allowing it to be abused from sandboxed expressions. Commit 9.2.0276 fixes the issue.", "A flaw was found in Vim. A modeline is used to set specific editor options directly from a text file. However, the `complete`, `guitabtooltip`, `printheader` options and the `mapset` function lack proper security checks, allowing an attacker to bypass restrictions and cause arbitrary OS command execution." ],
  "statement" : "To exploit this vulnerability, an attacker needs to convince a user to open a specially crafted file. The arbitrary OS command execution is restricted to the privileges of the user running Vim, limiting the potential of a full system compromise.",
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "release_date" : "2026-04-28T00:00:00Z",
    "advisory" : "RHSA-2026:11389",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10.1",
    "package" : "vim-2:9.1.083-6.el10_1.4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 10",
    "release_date" : "2026-05-19T00:00:00Z",
    "advisory" : "RHSA-2026:19073",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10.2",
    "package" : "vim-2:9.1.083-9.el10_2.2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2026-04-29T00:00:00Z",
    "advisory" : "RHSA-2026:11509",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "vim-2:8.0.1763-22.el8_10.3"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2026-04-29T00:00:00Z",
    "advisory" : "RHSA-2026:11509",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8",
    "package" : "vim-2:8.0.1763-22.el8_10.3"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2026-04-29T00:00:00Z",
    "advisory" : "RHSA-2026:11510",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "vim-2:8.2.2637-23.el9_7.3"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2026-05-19T00:00:00Z",
    "advisory" : "RHSA-2026:19224",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "vim-2:8.2.2637-26.el9_8.4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2026-04-29T00:00:00Z",
    "advisory" : "RHSA-2026:11510",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "vim-2:8.2.2637-23.el9_7.3"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2026-05-19T00:00:00Z",
    "advisory" : "RHSA-2026:19224",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9",
    "package" : "vim-2:8.2.2637-26.el9_8.4"
  }, {
    "product_name" : "Red Hat Update Infrastructure 5",
    "release_date" : "2026-05-27T00:00:00Z",
    "advisory" : "RHSA-2026:21275",
    "cpe" : "cpe:/a:redhat:rhui:5::el9",
    "package" : "rhui5/cds-rhel9:1779798159"
  }, {
    "product_name" : "Red Hat Update Infrastructure 5",
    "release_date" : "2026-05-27T00:00:00Z",
    "advisory" : "RHSA-2026:21275",
    "cpe" : "cpe:/a:redhat:rhui:5::el9",
    "package" : "rhui5/haproxy-rhel9:1779798164"
  }, {
    "product_name" : "Red Hat Update Infrastructure 5",
    "release_date" : "2026-05-27T00:00:00Z",
    "advisory" : "RHSA-2026:21275",
    "cpe" : "cpe:/a:redhat:rhui:5::el9",
    "package" : "rhui5/installer-rhel9:1779798165"
  }, {
    "product_name" : "Red Hat Update Infrastructure 5",
    "release_date" : "2026-05-27T00:00:00Z",
    "advisory" : "RHSA-2026:21275",
    "cpe" : "cpe:/a:redhat:rhui:5::el9",
    "package" : "rhui5/rhua-rhel9:1779798222"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Affected",
    "package_name" : "vim",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Affected",
    "package_name" : "vim",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4",
    "fix_state" : "Affected",
    "package_name" : "rhcos",
    "cpe" : "cpe:/a:redhat:openshift:4"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2026-34982\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-34982\nhttp://www.openwall.com/lists/oss-security/2026/04/01/1\nhttps://github.com/vim/vim/commit/75661a66a1db1e1f3f1245c615\nhttps://github.com/vim/vim/releases/tag/v9.2.0276\nhttps://github.com/vim/vim/security/advisories/GHSA-8h6p-m6gr-mpw9" ],
  "name" : "CVE-2026-34982",
  "mitigation" : {
    "value" : "To mitigate this issue, disable the modeline support by adding the following command to the Vim configuration file:\n~~~\nset nomodeline\n~~~",
    "lang" : "en:us"
  },
  "csaw" : false
}