CVE-2026-51401
vim: Vim: Arbitrary code execution via vms_fixfilename() function
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 4, 2026
Updated · August 31, 2026
Description
A flaw was found in Vim. A local attacker could exploit a vulnerability in the vms_fixfilename() function, allowing them to execute arbitrary code on the system. This could lead to a complete compromise of the affected system.
Statement
Red Hat Enterprise Linux and Fedora build Vim against the POSIX/Linux platform layer (os_unix.c). The vulnerable function, vms_fixfilename(), is defined in os_vms.c, which provides OpenVMS-specific support and is never compiled into Red Hat's or Fedora's Vim packages. As a result, none of Red Hat's shipped Vim builds contain the affected code path.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-641 · Improper Restriction of Names for Files and Other Resources