{
  "id": "CVE-2026-43961",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-43961",
  "published_at": "2026-08-19T14:06:09.12Z",
  "title": "Vim: vimscript injection via unescaped filename in netrw s:netrwmarkfile() filter() expression allows arbitrary code execution",
  "vendor": "vim",
  "product": "vim",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A flaw was found in Vim's netrw plugin. A crafted filename containing quote characters and expression fragments can break out of the quoted context during mark/unmark operations, allowing arbitrary Vimscript execution. This can be leveraged to run shell commands with the privileges of the user running Vim.",
  "cwe": "CWE-94",
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "vim",
        "product": "vim",
        "ranges": [
          "\u003c 9.2.0480"
        ],
        "fixed_in": [
          "9.2.0480"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10",
        "ranges": null,
        "fixed_in": [
          "2:9.1.083-26.el10_3"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 10.2 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "2:9.1.083-26.el10_2"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "2:8.0.1763-34.el8_10"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 8",
        "ranges": null,
        "fixed_in": [
          "2:8.0.1763-34.el8_10"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "2:8.2.2637-44.el9_9"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9",
        "ranges": null,
        "fixed_in": [
          "2:8.2.2637-44.el9_9"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Enterprise Linux 9.8 Extended Update Support",
        "ranges": null,
        "fixed_in": [
          "2:8.2.2637-44.el9_8"
        ]
      },
      {
        "vendor": "Red Hat",
        "product": "Red Hat Hardened Images",
        "ranges": null,
        "fixed_in": [
          "9.2.967-1.1.hum1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade vim to 9.2.0480 or later.",
      "Upgrade Red Hat Enterprise Linux 10 to 2:9.1.083-26.el10_3 or later.",
      "Upgrade Red Hat Enterprise Linux 10.2 Extended Update Support to 2:9.1.083-26.el10_2 or later.",
      "Upgrade Red Hat Enterprise Linux 8 to 2:8.0.1763-34.el8_10 or later.",
      "Upgrade Red Hat Enterprise Linux 8 to 2:8.0.1763-34.el8_10 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 2:8.2.2637-44.el9_9 or later.",
      "Upgrade Red Hat Enterprise Linux 9 to 2:8.2.2637-44.el9_9 or later.",
      "Upgrade Red Hat Enterprise Linux 9.8 Extended Update Support to 2:8.2.2637-44.el9_8 or later.",
      "Upgrade Red Hat Hardened Images to 9.2.967-1.1.hum1 or later."
    ],
    "workarounds": [
      "To mitigate this issue, users should avoid browsing untrusted directories or interacting with files from untrusted sources using Vim's netrw plugin. Exercise caution when opening directories that may contain maliciously crafted filenames."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:100486"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:100487"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:57614"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:98119"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:99165"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://access.redhat.com/errata/RHSA-2026:99166"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/vim/vim/security/advisories/GHSA-66hr-7p6x-x5j3"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
