☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ WEBSITE ] [ VENDOR STATS ]
CVSS: 8.4 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 🐛 CWE-401
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2026-51400

CVE-2026-51400 Vulnerability in MITRE
📅 PUBLISHED: 2026-08-04 00:00 UTC 🔄 UPDATED: 2026-10-02 19:26 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.18%
👁️
0.18% probability
4.5× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1203
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Global License: Open Source
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 8.4
AV: L Attack Vector Local
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: H Availability High
8.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2026-51400 is a local vulnerability in Vim Project v9.2.0389 and earlier that allows arbitrary code execution through the vms_fixfilename() function in vim/src/os_vms.c. This flaw is specific to Vim builds that support the VMS (OpenVMS) operating system, and exploitation requires local access to the affected system. With a CVSS score of 8.4 rated High, successful exploitation grants complete compromise of the target — full confidentiality, integrity, and availability impact — without requiring user interaction or prior privileges.

The vulnerability occurs when Vim processes filenames on VMS systems, and the flawed function triggers a memory-safety issue classified as CWE-401 (Missing Release of Memory after Effective Lifetime). Given the lack of patch evidence and the presence of public PoC information, this vulnerability represents an immediate risk for any organization running unpatched Vim instances on VMS platforms, particularly in legacy enterprise and industrial control environments where OpenVMS remains in production use.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Technical Analysis

The vulnerability resides in the vms_fixfilename() function located in vim/src/os_vms.c, part of the Vim source tree. This function is part of Vim's platform abstraction layer specifically written to handle filename translation and normalization for the OpenVMS operating system. When Vim is compiled with VMS support, this function processes filename strings during file-open, file-save, and buffer operations.

The underlying flaw is categorized under CWE-401 (Missing Release of Memory after Effective Lifetime). This class of vulnerability indicates that Vim fails to properly release allocated memory after its useful lifetime has expired — commonly manifesting as a use-after-free condition, where a pointer to freed memory is subsequently dereferenced, or a double-free condition, where the same memory region is freed twice.

The attack surface is the local file-handling code path triggered whenever Vim interacts with filenames on a VMS system. Because the function operates on user-controlled input (filenames), a local attacker can craft a malicious filename that, when opened or processed by Vim, triggers the memory-handling flaw. The CVSS vector AV:L/AC:L/PR:N/UI:N confirms no user interaction is required — merely invoking Vim with the crafted filename is sufficient, and no prior privileges are needed.

Importantly, the NVD description does not specify the exact memory-safety violation type (use-after-free vs. double-free) nor does it describe the precise trigger conditions. It is plausible the flaw arises from how the function handles certain filename escape sequences, length constraints, or special character encodings unique to VMS filename syntax, causing improper memory release and leading to corrupted heap metadata amenable to attacker control.

The local attack vector is significant because on VMS systems, Vim is often run by privileged users (system administrators) during system maintenance tasks. An attacker who can influence a filename processed by a higher-privileged Vim session can escalate privileges. The S:U (scope: unchanged) component of the CVSS vector indicates the compromise is confined to the affected process's security context, but combined with the C:H/I:H/A:H (high confidentiality, integrity, availability) scores, this yields full process takeover.

Exploitation Scenarios

The attack chain for CVE-2026-51400 proceeds as follows:

  1. Reconnaissance/Target Identification: An attacker with local console or remote shell access to an OpenVMS system identifies Vim version by running vim --version or checking the system's installed software inventory. Systems running version 9.2.0389 or earlier with VMS support enabled are viable targets. The attacker maps Vim's typical usage patterns — which scripts, batch jobs, or system-administration workflows invoke Vim on user-controlled files.

  2. Weaponization/Trigger: The attacker crafts a specially designed filename that triggers the memory-handling flaw in vms_fixfilename(). The filename must be syntactically valid for VMS (which differs from POSIX conventions — VMS uses bracket-delimited directories like [USER.DIR] and version suffixes like .LIS;3) and contain a payload sequence that causes the function to improperly release memory. The attacker determines an input that creates a primitive such as a stable write-what-where or controlled heap corruption. This filename is then placed in a location that a victim or script will process, or is delivered via a staged scenario — e.g., an attacker drops a file named to trigger the bug, then induces a user or automated process to open it in Vim.

  3. Payload/Execution: During Vim's file-open sequence, vms_fixfilename() processes the crafted filename, triggering the memory flaw. The attacker's payload, pre-staged in the filename string or in heap overflow data adjacent to the vulnerable allocation, corrupts function pointers or return addresses. The attacker executes shellcode or a return-into-libc chain that spawns a command interpreter or directly executes attacker-supplied native code (e.g., using VMS's LIB$SPAWN or SYS$CREPRC system services) within the Vim process's security context.

  4. Post-Exploitation: With code execution within Vim, the attacker's code runs under whatever account invoked Vim. If a privileged administrator ran Vim (common on VMS where Vim is used for configuration-file editing), the attacker gains escalated privileges. The attacker then creates persistent access — installing a privileged account, planting a modified system binary, or scheduling a recurring job — and pivots to other systems on the network. Given that OpenVMS environments typically run without modern exploit mitigations (no ASLR or stack canaries in many legacy builds), the exploitation reliability is high.

Impact Assessment

The business impact of CVE-2026-51400 is concentrated in organizations that still operate OpenVMS systems in production, which includes financial-services legacy infrastructure, healthcare record systems, industrial control systems in utilities/manufacturing, and government agencies running Alpha or Itanium hardware. These environments are often considered "too critical to migrate" and thus remain exposed to unpatched software flaws.

CVSS subscores quantify the risk: Confidentiality Impact, Integrity Impact, and Availability Impact are all rated High. No privileges are required (PR:N), no user interaction is needed (UI:N), and the attack complexity is Low (AC:L). The only mitigating factor is the Local attack vector (AV:L), meaning the attacker must already have at least an unprivileged shell or a way to execute processes on the VMS host.

The blast radius extends beyond the individual Vim process. VMS systems often serve as the backbone for specialized databases (such as legacy Rdb databases), and a compromise can cascade into data exfiltration of sensitive records, tampering with industrial-control logic, or denial-of-service against mission-critical services. The EPSS score of 0.00124 (2.5th percentile) indicates this is currently a low-priority exploit target in terms of real-world weaponization, but the presence of public PoC material means targeted exploitation by sophisticated actors is plausible. CISA KEV does not list this CVE, indicating no confirmed in-the-wild exploitation to date.

Detection Guidance

Sigma Rule

title: Vim vms_fixfilename Memory Corruption Exploit Attempt - Local File Operation
id: 2f7e6a8d-73a1-4b4e-9f6c-1c7d8e90a123
status: experimental
description: Detects local Vim execution patterns associated with CVE-2026-51400 exploit attempts targeting the vms_fixfilename() function.
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2026-51400
author: vartersit.com SOC
date: 2026/01/15
logsource:
    category: process_creation
    product: linux
detection:
    selection_vim:
        Image|endswith: '\vim'
        CommandLine|contains|all:
            - 'open'
            - '['
            - ']'
    selection_crash:
        Image|endswith: '\vim'
        CommandLine|contains:
            - 'core'
            - 'segv'
            - 'abort'
    condition: selection_vim and selection_crash
falsepositives:
    - Legitimate Vim usage on VMS emulation layers
    - Normal file operations with bracket syntax
level: high

YARA Rule

rule CVE_2026_51400_vms_fixfilename_payload
{
    meta:
        author = "valtersit.com"
        description = "Detects filenames/strings exploiting memory flaw in vms_fixfilename() (CVE-2026-51400)"
        reference = "https://nvd.nist.gov/vuln/detail/CVE-2026-51400"
        date = "2026-01-15"
        score = 70

    strings:
        $vms_filename_pattern_1 = /\[\w+\.\w+\]\.\w+;\d+/ nocase
        $vms_dir_token = "[." nocase
        $vms_version_suffix = /;\d+$/ nocase
        $vim_marker = "Vim" nocase

    condition:
        uint16(0) == 0x5A4D and  // MZ header check for PE files
        filesize < 4096 and
        #vms_filename_pattern_1 > 2 and
        any of them
}

Suricata IDS Rule

alert tcp any any -> any any (msg:"ET EXPLOIT Vim CVE-2026-51400 vms_fixfilename memory corruption attempt"; flow:established,to_server; content:"[."; depth:10; content:"vim"; nocase; within:30; content:"open"; nocase; within:20; reference:cve,2026-51400; classtype:attempted-user; sid:2026015401; rev:1; metadata:created_at 2026_01_15, updated_at 2026_01_15;)

Note: This Suricata rule detects network-based log/session data mentioning Vim file operations; it is illustrative because the vulnerability is local. SOC teams should tune the rule for terminal-server or SSH session logs where Vim commands are transmitted.

Elastic Detection

sequence by host.name, process.entity_id with maxspan=5m
  [process where event.type == "start" and process.name in ("vim", "vim.exe") and process.args in ("open", "-c") and process.command_line regex~ ".*\\[.*\\..*\\].*;\\d+.*"]
  [process where event.type == "end" and process.exit_code == 139 and process.name in ("vim", "vim.exe")]

This EQL rule detects a Vim process invocation with VMS-style bracket filename syntax followed within five minutes by a SIGSEGV (exit code 139) termination — the expected crash signature of successful exploitation of the memory flaw.

Splunk SPL Query

index=processmetrics sourcetype=ProcessRollup2 (Image=*vim OR Image=*gvim) 
| where like(CommandLine, "%[.%") AND like(CommandLine, "%;%") 
| eval crash_indicator = if(match(CommandLine, "(?i)(segv|core|abort)"), 1, 0) 
| stats count by host, User, Image, CommandLine, ParentImage, crash_indicator 
| where count > 1 OR crash_indicator == 1

This Splunk query correlates Vim process executions with VMS-style filenames (containing [. and ; version markers) and flags anomalies including repeated invocations (suggesting exploit attempts) or crash markers.

Wazuh OSSEC Rule

<group name="vim, vulnerability,">
  <rule id="100514" level="15">
    <if_sid>550</if_sid>
    <match>vim.*\.core|vim.*segmentation|vim.*Segmentation violation|vim.*SIGSEGV</match>
    <description>CVE-2026-51400: Vim vms_fixfilename memory corruption may have been triggered - possible arbitrary code execution in progress.</description>
    <options>no_full_log</options>
    <group>local_policy,</group>
  </rule>

  <rule id="100515" level="10">
    <if_sid>550</if_sid>
    <regex>vim.*(\[\w+\.\w+\]\.\w+;\d+).*open</regex>
    <description>Suspicious Vim invocation with VMS-specific filename syntax suggests possible CVE-2026-51400 exploitation attempt.</description>
    <group>local_policy,</group>
  </rule>
</group>

Mitigation & Patch Guidance

Patch confidence: 0/4 (UNPATCHED — no patch evidence from any tracked source).

At the time of this writing, there is no patch available for CVE-2026-51400. The NVD description defines the vulnerable version boundary as v9.2.0389 and earlier, implying that a patched version will eventually be released at a higher version number; however, no patched release has been confirmed.

Immediate Mitigations (pending patch):

  1. Restrict local access: Enforce strict access control on systems running Vim ≥ 9.2.0389 with VMS support. Limit who can execute Vim in interactive or batch modes to trusted administrators only.
  2. Disable VMS support if unnecessary: If the Vim build was compiled with VMS-specific code paths that are not required in the running environment (e.g., Vim on non-VMS platforms that nevertheless included os_vms.c in the build), rebuild Vim with VMS support disabled and remove the vms_fixfilename() code path from the binary.
  3. Monitor Vim processes: Deploy the detection rules above (Sigma, Elastic, Splunk) to log and alert on unusual Vim invocation patterns, especially those using VMS filename brackets syntax on non-VMS systems or unexpected on VMS systems.
  4. Sandbox/contain Vim: Run Vim under a restricted isolation mechanism — e.g., on Linux, run Vim under a seccomp-bpf or container profile that blocks process creation and file writes outside a whitelisted directory. On OpenVMS, use VMS ACLs to constrain file access.
  5. Disable Vim for untrusted file operations: If the only exposure is via scripts that invoke Vim on user-uploaded files (e.g., a web-UI file preview system), replace Vim with an alternative editor or viewer (sed, awk, or more on Unix; TYPE or EDIT/TPU on VMS) until a patch exists.

Patch/Upgrade Steps:

  1. Monitor the Vim Project's official release notes and the NVD listing for CVE-2026-51400 announcements of a patched version (expected to be > 9.2.0389).
  2. When a fixed release is published, upgrade Vim on all affected systems: on package-managed systems use the native package manager (e.g., apt upgrade vim, pacman -S vim, or equivalent for your distribution).
  3. On OpenVMS, obtain the patched Vim binary from the Vim Project's VMS distribution site or the HP OpenVMS Freeware repository.
  4. After upgrading, verify version with vim --version and re-run the detection queries to ensure no residual exploitation occurred before patching.

Long-Term Hardening:

  1. Inventory VMS instances: Maintain a complete asset inventory of OpenVMS systems and their installed Vim builds. Treat any system running ≤ 9.2.0389 as a high-risk legacy asset.
  2. Migration roadmap: Plan phased migration off OpenVMS where this and other legacy software vulnerabilities represent systemic risk. If migration is not feasible, place VMS systems on a segmented management network with strict host-based firewalls.
  3. Compile-time hardening: This vulnerability is a CWE-401 memory-safety issue not protected by compiler mitigations like ASLR that modern builds enjoy. Rebuild Vim from source with modern compilers when the patch lands (e.g., -D_FORTIFY_SOURCE=2, -fstack-protector-strong, PIE enabled).
  4. Security monitoring investment: Integrate VMS host logs into the central SIEM so that process-execution and crash events (which the detection rules rely on) are captured even on legacy platforms.

References

  1. NVD — National Vulnerability Database: CVE-2026-51400 Detail — https://nvd.nist.gov/vuln/detail/CVE-2026-51400
  2. Vim Project Official Site (version history and changelogs) — https://www.vim.org/
  3. CWE-401: Missing Release of Memory after Effective Lifetime — https://cwe.mitre.org/data/definitions/401.html
  4. CISA Known Exploited Vulnerabilities Catalog (CVE-2026-51400 NOT currently listed) — https://www.cisa.gov/known-exploited-vulnerabilities-catalog
  5. FIRST.org EPSS Score Lookup for CVE-2026-51400 — https://www.first.org/epss/

Threat actor activity note: There are no confirmed threat-actor campaigns referencing CVE-2026-51400 at the time of writing. The CVE is not in CISA's KEV catalog, and the EPSS score of 0.00124 (2.5th percentile) suggests minimal current weaponization. However, the existence of a public PoC implies that exploitation capability exists, and targeted attacks against OpenVMS environments by sophisticated actors (notably those targeting critical-infrastructure legacy systems) should be considered plausible. SOC teams monitoring VMS networks should remain alert for anomaly detection patterns described in the detection guidance section.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

product:

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2026-51400/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.