Skip to main content

Vim EUVDEUVD-2026-56226

| CVE-2026-73072 HIGH
Heap-based Buffer Overflow (CWE-122)
2026-08-11 GitHub_M
8.5
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious .spl file with SN_SAL then SN_SOFO sections
  2. Delivery
    Deliver file to victim filesystem via repo, phishing, or shared drive
  3. Exploit
    Victim opens Vim file triggering spell file load
  4. Execution
    SN_SAL section sets sl_sal_first[] entries to -1
  5. Persist
    set_sofo() under-counts mappings, allocates undersized heap buffer
  6. Impact
    Out-of-bounds heap write achieves code execution as victim user

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a victim running a vulnerable version of Vim (prior to 9.2.0846) to load a crafted spell file. The spell file must contain an SN_SAL section appearing before an SN_SOFO section, with the SOFO section specifying at least two multi-byte 'from' characters that share the same low byte value - this specific section ordering is what poisons sl_sal_first[] and triggers the under-count. No elevated privileges are required; a standard user account running Vim is sufficient. Exploitation is limited by the passive user interaction requirement: the victim must either explicitly set spelllang to point to the malicious file, open a file whose modeline or spell configuration triggers loading the crafted .spl, or have the file placed in a runtimepath directory that Vim searches automatically for spell data. Non-default spell file sources and the requirement to deliver a file to the victim's reachable filesystem are the primary limiting factors.

Impact

The CVSS 4.0 score of 8.5 (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H) accurately reflects that while impact is severe - full confidentiality, integrity, and availability compromise of the vulnerable system - exploitation requires local file delivery and passive user interaction. Attack complexity is low once a crafted spell file is constructed, and no privileges are needed for the attacker. The vulnerability is not listed in the CISA KEV catalog, no EPSS data was provided in the source intelligence, and no public exploit code has been identified, all of which suggest this has not yet reached widespread active exploitation. However, the commit diff includes a precise binary regression test payload (the crafted spell file bytes), which substantially lowers the barrier for exploit development. Even a mid-sized municipal IT department in swidnica managing developer workstations or shared Linux servers should treat this as an actionable priority, particularly where Vim is used to process spell files originating from external or untrusted repositories. The CVSS vector is internally consistent with the description: local vector, user interaction, and high tripartite impact are all well-supported by the technical evidence.

Exploit ScenarioDerived

An attacker crafts a malicious Vim spell file containing an SN_SAL section followed by an SN_SOFO section whose multi-byte 'from' entries share a low byte, designed to trigger the under-count condition and write controlled data beyond the heap allocation. The spell file is delivered to the target via a poisoned repository, documentation archive, or shared network drive, and the victim opens a file that causes Vim to load the crafted .spl (for example, by setting spelllang to a language pointing to the malicious file). The resulting heap corruption could overwrite adjacent heap metadata or a function pointer, enabling code execution under the victim's user context.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 11, 2026

Heap buffer overflow in Vim's spell file parser prior to version 9.2.0846 enables arbitrary code execution when a user opens a maliciously crafted spell file. The flaw lies in set_sofo() reusing the sl_sal_first[] array without resetting values written by set_sal_first(), so a spell file ordering an SN_SAL section before an SN_SOFO section causes under-counted mapping lists and attacker-controlled out-of-bounds heap writes (CWE-122). No public exploit has been identified at time of analysis, and the issue is not listed in the CISA KEV catalog; a vendor-released patch exists at version 9.2.0846.

RemediationAI

Upgrade Vim to version 9.2.0846 or later; this is the vendor-released patch confirmed by the official release tag at https://github.com/vim/vim/releases/tag/v9.2.0846 and the fixing commit at https://github.com/vim/vim/commit/05c41c922309c7a11b6ec2f124be66551c90d66a. If an immediate upgrade is not feasible, restrict spell file loading by auditing and controlling the Vim 'spellfile' and 'runtimepath' options to permit only files from trusted, integrity-verified sources - be aware this reduces but does not eliminate risk if attackers can write to trusted paths. Avoid opening Vim in environments where untrusted .spl files may be present in the runtimepath. Organizations managing shared developer environments should prioritize patching Vim in base images and configuration management systems.

Affected VersionsENISA

vim < 9.2.0846

Affected Packages

euvd vim fix: 9.2.0846

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in src/spellfile.c within Vim's spell file loading subsystem. Vim spell files (.spl) encode multiple section types, including SN_SAL (soundalike mappings) and SN_SOFO (sound-folding mappings). Both sections share the sl_sal_first[] array (type salfirst_T, 256 entries), which acts as a per-byte index into mapping lists. set_sal_first() populates this array with -1 sentinel values during SN_SAL processing. When set_sofo() subsequently processes an SN_SOFO section without first zeroing the array, it inherits these stale -1 values and under-counts multi-byte 'from' characters that share the same low byte. The resulting heap allocation is undersized, and subsequent writes to it exceed the allocation boundary - a classic CWE-122 heap-based buffer overflow. The fix, introduced in commit 05c41c922309c7a11b6ec2f124be66551c90d66a, is a single vim_memset() call that zeros the 256-entry array before set_sofo() uses it. The affected CPE is cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* for all versions below 9.2.0846.

Know when Vim gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.5 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.8 HIGH

Local vector because the crafted spell file must be accessible on the victim's system; user interaction required since the victim must open or load the file; no privileges needed for the attacker.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Red Hat 7.8 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 11, 2026 - 17:02 EUVD
CVE Published
Aug 11, 2026 - 15:31 cve.org
HIGH 8.5

DescriptionCVE.org

Vim is an open source, command line text editor. Prior to 9.2.0846, set_sofo() in src/spellfile.c reuses sl_sal_first[] without resetting values left by set_sal_first(), so a crafted spell file containing an SN_SAL section before an SN_SOFO section causes under-counted mapping lists and attacker-influenced writes beyond a heap allocation. This issue is fixed in version 9.2.0846.

Executive ViewAI

Why It Matters

Vim versions prior to 9.2.0846 contain a heap buffer overflow in the spell file parser that enables arbitrary code execution when users open specially crafted spell files. Organizations with Vim deployments face risk from supply chain attack vectors targeting shared spell file resources or social engineering scenarios where malicious files are disguised as legitimate spell dictionaries.

Business Impact: High
Compensating Controls

Apply vendor patch: Vim 9.2.0846 or later.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
High
Vim is a ubiquitous text editor across Linux servers and developer environments globally.
Data Quality
8 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

More in Vim

View all
CVE-2022-3520 CRITICAL POC
9.8 Dec 02

Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0765. Rated critical severity (CVSS 9.8), this vuln

CVE-2022-0729 HIGH POC
8.8 Feb 23

Use of Out-of-range Pointer Offset in GitHub repository vim/vim prior to 8.2.4440. Rated high severity (CVSS 8.8), this

CVE-2026-34714 HIGH POC
8.6 Mar 30

Code execution vulnerability in Vim before 9.2.0272 allows attackers to gain immediate arbitrary command execution upon

CVE-2019-12735 HIGH POC
8.6 Jun 05

getchar.c in Vim before 8.1.1365 and Neovim before 0.3.6 allows remote attackers to execute arbitrary OS commands via th

CVE-2021-3968 HIGH POC
8.0 Nov 19

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 8.0), this vulnerability is remotely exploita

CVE-2022-1616 HIGH POC
7.8 May 07

Use after free in append_command in GitHub repository vim/vim prior to 8.2.4895. Rated high severity (CVSS 7.8), this vu

CVE-2022-1619 HIGH POC
7.8 May 08

Heap-based Buffer Overflow in function cmdline_erase_chars in GitHub repository vim/vim prior to 8.2.4899. Rated high se

CVE-2021-4136 HIGH POC
7.8 Dec 19

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 7.8), this vulnerability is no authentication

CVE-2021-3973 HIGH POC
7.8 Nov 19

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 7.8), this vulnerability is no authentication

CVE-2021-3927 HIGH POC
7.8 Nov 05

vim is vulnerable to Heap-based Buffer Overflow. Rated high severity (CVSS 7.8), this vulnerability is no authentication

CVE-2022-2125 HIGH POC
7.8 Jun 19

Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2. Rated high severity (CVSS 7.8), this vulnerability

CVE-2022-2126 HIGH POC
7.8 Jun 19

Out-of-bounds Read in GitHub repository vim/vim prior to 8.2. Rated high severity (CVSS 7.8), this vulnerability is no a

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Affected
SLES15-SP6-CHOST-BYOS Affected
SLES15-SP6-CHOST-BYOS-Aliyun Affected
SLES15-SP6-CHOST-BYOS-Azure Affected
SLES15-SP6-CHOST-BYOS-EC2 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy