CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-28418

CVE-2026-28418: Heap-Based Out-of-Bounds Read in Vim Emacs Tags Parser

Amit Schendel
Amit Schendel
Senior Security Researcher

Apr 8, 2026·6 min read·39 visits

Executive Summary (TL;DR)

Vim < 9.2.0074 contains an out-of-bounds read (CWE-125) in src/tag.c triggered by malformed Emacs tags files. Exploitation requires user interaction and causes denial of service.

Vim versions prior to 9.2.0074 suffer from an out-of-bounds read vulnerability in the Emacs-style tags file parsing logic. The flaw allows an attacker to trigger an out-of-bounds memory read of up to 7 bytes by supplying a crafted tags file. Processing this file via standard Vim commands results in a denial of service (crash) or potential minor heap memory exposure.

Vulnerability Overview

Vim versions prior to 9.2.0074 contain a memory safety vulnerability within the tags file parsing subsystem. The flaw specifically resides in the logic responsible for processing Emacs-style tags files. This component parses metadata to enable code navigation features.

The vulnerability is classified as an out-of-bounds read (CWE-125) and heap-based buffer overflow (CWE-122). When Vim encounters a malformed tags file, the parsing loop fails to correctly enforce memory boundaries on the heap-allocated buffer. This allows the application to read adjacent heap memory during the execution of standard tag lookup commands.

Exploitation requires a user to manually configure Vim to use a malicious tags file or to execute a tag command within a directory containing the file. Successful triggering of the flaw primarily results in an application crash, establishing a localized denial of service condition.

Root Cause Analysis

The vulnerability originates in the emacs_tags_new_filename() function located within src/tag.c. This function is invoked when Vim detects an Emacs-style format within the active tags file. Vim allocates a fixed-size heap buffer, referenced as st->ebuf, which typically holds 512 bytes of line data.

During normal operation, the parser searches the buffer for a comma character (,). This comma acts as a structural delimiter separating the filename from the subsequent tags metadata. The for loop responsible for locating this delimiter increments a pointer p across the buffer contents.

The logic failure occurs because the loop termination condition only checks for the presence of the comma or a non-null character. If an attacker provides a line exceeding the 512-byte buffer length without including a comma, the pointer p increments until it reaches the NUL byte at the end of the buffer.

Because the parsing function lacks a validation step to verify why the loop terminated, it incorrectly assumes a valid string position. The subsequent code block processes the memory address pointed to by p, leading to an out-of-bounds read of up to 7 bytes as the function attempts to identify a secondary include directive.

Code Analysis

The vulnerable implementation relies on an unsafe loop construct that implicitly assumes the presence of a delimiter or valid string termination within bounds. The pointer p is initialized to the start of the heap buffer and incremented sequentially.

for (p = st->ebuf; *p && *p != ','; p++)
    ;
*p = NUL;

In this vulnerable state, if the pointer reaches the null terminator at the end of st->ebuf, the loop exits. The immediate write operation *p = NUL overrides the existing null byte, but subsequent instructions advance the pointer beyond the allocated buffer space.

The patch introduced in commit f6a7f469a9c0d09e84cd6cb46c3a9e76f684da2d mitigates this flaw by explicitly validating the state of the pointer after the loop terminates.

--- a/src/tag.c
+++ b/src/tag.c
@@ -1901,6 +1901,9 @@ emacs_tags_new_filename(findtags_state_T *st)
 
     for (p = st->ebuf; *p && *p != ','; p++)
 	;
+    // invalid
+    if (*p == NUL)
+	return;
     *p = NUL;

By adding the if (*p == NUL) return; condition, Vim ensures that parsing halts immediately if the delimiter is absent and the end of the string is reached. This effectively contains the pointer within the boundaries of st->ebuf.

Exploitation

Exploitation relies on the distribution of a malicious tags file and subsequent user interaction. The attacker must format the file to trigger the specific parsing logic within emacs_tags_new_filename(). The file must begin with a form-feed character (\x0c) to instruct Vim to parse it as an Emacs-style tags file.

Following the form-feed character, the attacker provides a continuous string of characters exceeding the 512-byte buffer capacity. This string must deliberately omit the comma character expected by the parser. A standard proof-of-concept constructs a payload containing 515 consecutive 'a' characters.

" PoC to trigger the out-of-bounds read
func Test_evil_emacs_tagfile()
  CheckFeature emacs_tags
  let longline = repeat('a', 515)
  call writefile([
    \ "\x0c",
    \ longline
    \ ], 'Xtags', 'D')
  set tags=Xtags
  call assert_fails(':tag a', 'E426:')
  set tags&
endfunc

When a user executes a tag navigation command such as :tag a, Vim reads the constructed file. The parser processes the overlong line, pointer p exceeds the buffer boundary, and the application attempts to read adjacent heap memory. This invariably leads to a segmentation fault on modern operating systems due to memory access violations.

Impact Assessment

The primary consequence of this vulnerability is an application crash. The out-of-bounds read triggers a memory access violation, causing the operating system to terminate the Vim process. This constitutes a localized denial of service.

The confidentiality impact is restricted by the exact behavior of the out-of-bounds read. The vulnerability permits reading a maximum of 7 bytes beyond the st->ebuf allocation. Under highly specific heap layouts, these bytes might contain sensitive data from adjacent allocations, though extracting this data to a readable output stream is highly complex and impractical in standard usage.

The CVSS v3.1 base score of 4.4 reflects the strict prerequisites for exploitation. The attack vector is classified as Local (AV:L), as the attacker cannot trigger the flaw across a network interface. User interaction is strictly required (UI:R), as the victim must actively invoke a tags-related command against the malicious file.

The Exploit Prediction Scoring System (EPSS) indicates a negligible probability of exploitation in the wild, with a score of 0.00004. This correlates with the lack of known weaponization or ransomware associations. The vulnerability represents a minimal risk to enterprise environments unless untrusted source code repositories are routinely navigated using legacy Vim features.

Remediation

The comprehensive resolution for this vulnerability requires updating Vim to version 9.2.0074 or a subsequent release. Operating system vendors and package maintainers incorporate this upstream patch into their respective distribution channels. Security engineers should verify the deployment of the updated binary across developer workstations and shared development servers.

In environments where immediate binary updates are unfeasible, administrators can mitigate the risk by restricting tag file usage. Users should be instructed to avoid executing :tag commands within untrusted repositories or directories obtained from external sources.

Disabling Emacs-style tags support during the compilation of Vim entirely removes the vulnerable code path. However, this approach requires rebuilding the application from source and may disrupt workflows dependent on this specific formatting standard.

Detection mechanisms should focus on identifying outdated Vim installations rather than intercepting exploit attempts. The execution occurs entirely within the local user context, making network-based detection systems ineffective. System administrators can monitor crash logs for segmentation faults originating from the vim process during file parsing operations.

Official Patches

VimUpstream fix commit resolving the OOB read

Fix Analysis (1)

Technical Appendix

CVSS Score
4.4/ 10
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS Probability
0.00%
Top 100% most exploited

Affected Systems

Developer Workstations using VimServers with Vim installed as the default editor

Affected Versions Detail

Product
Affected Versions
Fixed Version
Vim
Vim
< 9.2.00749.2.0074
AttributeDetail
CWE IDCWE-125
Attack VectorLocal
CVSS Score4.4
EPSS Score0.00004
Exploit StatusPoC Available
CISA KEVNot Listed

MITRE ATT&CK Mapping

T1204User Execution
Execution
CWE-125
Out-of-bounds Read

The software reads data past the end, or before the beginning, of the intended buffer.

Known Exploits & Detection

Vim Test SuiteProof of concept test case embedded within the patch commit

Vulnerability Timeline

Vulnerability fixed in Vim source code (Patch 9.2.0074)
2026-02-23
CVE-2026-28418 published
2026-02-27
Public disclosure on oss-security mailing list
2026-02-27
Red Hat and other vendors initiate vulnerability tracking
2026-03-02

References & Sources

  • [1]Vim Security Advisory
  • [2]Fix Commit
  • [3]Openwall (oss-security)
  • [4]CVE Org Record
  • [5]NVD Entry

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-114146
9.0

CVE-2026-114146: Elevation of Privilege in ASP.NET Core SignalR Connection Dispatcher

An incorrect authorization vulnerability (CWE-863) exists in the ASP.NET Core SignalR HTTP Connection Dispatcher (`Microsoft.AspNetCore.Http.Connections`). The connection negotiation process failed to bind the authenticated caller identity to the generated connection state, and subsequent transport or message dispatch handlers failed to verify caller consistency. Consequently, an authenticated low-privilege attacker who obtains a valid connection identifier or token can inject messages into or hijack another user's SignalR session, achieving an elevation of privilege across security boundaries.

Alon Barad
Alon Barad
1 views•11 min read
•about 2 hours ago•CVE-2026-109478
7.5

CVE-2026-109478: Algorithmic Complexity Denial of Service in ASP.NET Core Header Parsing

CVE-2026-109478 is a network-accessible Denial of Service (DoS) vulnerability in ASP.NET Core caused by inefficient algorithmic complexity (CWE-407) when parsing comma-separated HTTP request headers. Prior to the patch, the internal helper method ParsingHelpers.GetHeaderSplit repeatedly called StringValues.Concat inside a loop iterating over each comma-separated token. Because StringValues allocates a new array of size k + 1 and copies all existing elements upon each concatenation, processing N tokens incurs O(N^2) time and space complexity. An unauthenticated remote attacker can send HTTP requests with headers containing thousands of short, comma-separated values to exhaust CPU cycles and induce severe Garbage Collection (GC) pauses, rendering the web application unresponsive.

Alon Barad
Alon Barad
5 views•11 min read
•about 3 hours ago•CVE-2026-114147
7.5

CVE-2026-114147: Denial of Service via Memory Leak in ASP.NET Core SignalR Redis Backplane

CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 4 hours ago•CVE-2026-114156
6.5

CVE-2026-114156: Path Equivalence Security Feature Bypass in Microsoft ASP.NET Core

CVE-2026-114156 is an improper resolution of path equivalence vulnerability (CWE-41) in Microsoft ASP.NET Core affecting .NET 11.0 preview releases and Microsoft Visual Studio 2026. The vulnerability stems from a discrepancy between how path prefix validation helpers (such as PathString.StartsWithSegments) and downstream routing mechanisms handle alternate path separators and percent-encoded characters. An unauthenticated remote attacker can exploit this mismatch over the network to bypass path-based authorization middleware and access restricted endpoints.

Amit Schendel
Amit Schendel
5 views•8 min read
•about 5 hours ago•CVE-2026-114157
7.5

CVE-2026-114157: Local Privilege Escalation via Race Condition in ASP.NET Core Kestrel Named Pipes Transport

CVE-2026-114157 is a high-severity local privilege escalation and security feature bypass vulnerability affecting ASP.NET Core on Microsoft Windows. The flaw resides in the Kestrel web server's Named Pipes transport layer (Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes) and stems from a race condition (CWE-362) during broken pipe error recovery. When an active connection throws an IOException during handshake acceptance, the connection listener previously disposed of the broken NamedPipeServerStream instance before acquiring a replacement stream from its internal pool. This sequence created a momentary window where zero server instances of the named pipe existed in the Windows Named Pipe File System (NPFS). A local, low-privileged attacker can exploit this timing window to create a named pipe with the identical name and a permissive Discretionary Access Control List (DACL), hijacking subsequent inter-process communications and escalating privileges across security boundaries.

Amit Schendel
Amit Schendel
6 views•11 min read
•about 6 hours ago•CVE-2026-124194
6.5

CVE-2026-124194: Forced Authentication and NetNTLMv2 Credential Leakage in Microsoft Office Outlook

CVE-2026-124194 is a forced authentication and spoofing vulnerability in Microsoft Office Outlook caused by a missing user interface warning before dereferencing remote network paths (CWE-356). By embedding an attacker-controlled Universal Naming Convention (UNC) path within MAPI message properties such as PidLidReminderFileParameter, an unauthenticated remote attacker can force a victim's system to initiate an outbound SMB or WebDAV connection upon opening or previewing a crafted message. This automatic authentication handshake leaks the user's NetNTLMv2 hash, enabling offline password cracking or real-time NTLM relay attacks. The vulnerability was exploited in the wild as a zero-day prior to its remediation in Microsoft's November 2026 Patch Tuesday updates and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Alon Barad
Alon Barad
19 views•10 min read