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·42 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

•40 minutes ago•CVE-2026-64855
8.2

CVE-2026-64855: Cryptographic Signature Verification Bypass in soapbar WS-Security Implementation

CVE-2026-64855 (GHSA-859w-52fx-hcm6) is a cryptographic signature verification and authentication bypass vulnerability in the soapbar Python library prior to version 0.13.0. In vulnerable versions, the verify_envelope_bsp() function derives its trust anchor directly from the incoming SOAP message by extracting an untrusted X.509 certificate embedded inside the wsse:BinarySecurityToken header. Because the function checks only the temporal validity of the extracted certificate without performing Certificate Authority (CA) chain validation or certificate pinning, an unauthenticated network attacker can generate a self-signed certificate, sign an arbitrary SOAP payload, and pass verification.

Amit Schendel
Amit Schendel
1 views•10 min read
•about 2 hours ago•GHSA-JP3C-6V3G-MPXV
6.5

GHSA-jp3c-6v3g-mpxv: Uncaught Runtime Panic via Integer Underflow in insomniacslk/dhcp BroadcastRawUDPConn

A denial-of-service vulnerability exists in the Go library github.com/insomniacslk/dhcp within the dhcpv4/nclient4 subpackage. In affected versions, the raw packet parsing function BroadcastRawUDPConn.ReadFrom subtracts the fixed 8-byte UDP header length from the IPv4 payload length declared in the packet header without first verifying that the declared payload length is at least 8 bytes. An unauthenticated attacker on an adjacent local network segment can broadcast or unicast a malformed IPv4 packet with a declared payload length between 0 and 7 bytes, causing a signed integer underflow that passes a negative slice bound into buf.Consume and triggers an unhandled Go runtime panic.

Amit Schendel
Amit Schendel
4 views•12 min read
•about 3 hours ago•CVE-2026-63305
8.1

CVE-2026-63305: OS Command Injection in WWBN AVideo Standalone FFmpeg Script

CVE-2026-63305 (GHSA-g9x9-q7qj-6mv5) is an operating system command injection vulnerability affecting WWBN AVideo (formerly YouPHPTube) versions up to and including 29.0. The defect resides in the standalone FFmpeg execution handler at plugin/API/standAlone/ffmpeg.json.php. When assembling asynchronous post-processing commands, the script concatenates the notifyCode and callback properties from a decrypted payload directly into a shell command string without sanitization. An attacker capable of providing or forging a valid encrypted execution payload can inject shell metacharacters to achieve remote code execution under the privileges of the web server user.

Alon Barad
Alon Barad
3 views•10 min read
•about 6 hours ago•CVE-2026-59192
6.9

CVE-2026-59192: Unsafe Deserialization in CakePHP TwigView UtilsExtension

The cakephp/twig-view plugin integrates the Twig templating engine into the CakePHP framework. Prior to versions 1.3.3 and 2.1.2, the UtilsExtension class exposes PHP's native unserialize() function as a Twig filter without restricting allowed classes. When untrusted data is passed into the unserialize filter within a template, an attacker can trigger PHP Object Injection and execute Property-Oriented Programming (POP) gadget chains, leading to arbitrary code execution or data manipulation.

Alon Barad
Alon Barad
3 views•8 min read
•about 22 hours ago•CVE-2026-63402
5.9

CVE-2026-63402: Prototype-Chain Traversal and Shared Built-in Corruption in i18next

CVE-2026-63402 is a prototype-chain traversal and shared built-in object corruption vulnerability in the i18next internationalization framework for JavaScript prior to version 26.3.4. The flaw resides in the deepExtend utility function within src/utils.js, which uses the JavaScript 'in' operator to verify property existence on target objects. When an application passes untrusted resource bundles to i18next.addResourceBundle() with both the deep and overwrite parameters set to true, an attacker can traverse into inherited methods on Object.prototype and overwrite properties on shared built-in function objects, causing process-wide denial of service.

Amit Schendel
Amit Schendel
7 views•10 min read
•about 23 hours ago•CVE-2026-58262
7.1

CVE-2026-58262: BLS Signature Quorum Bypass via PubKeysBitmap Padding Bits in Klever-Go

CVE-2026-58262 (tracked internally as KLR-04 and via GitHub Security Advisory GHSA-f9h7-4mmq-vgcq) is a cryptographic verification and consensus quorum bypass vulnerability in Klever-Go (`klever-io/klever-go`), the Go implementation of the Klever blockchain protocol. Prior to version 1.7.20, the block header signature verification logic (`HeaderSigVerifier.verifyConsensusSize`) counts all set bits across the entire `PubKeysBitmap` byte slice toward the required two-thirds validator quorum without masking or validating unused trailing padding bits in the final byte. Because the underlying Boneh-Lynn-Shacham (BLS) multi-signature verification function (`blsMultiSigner.Verify`) iterates strictly over the indices of configured validator public keys, it ignores any bits set at indices beyond the active consensus group size. When the consensus group size is not an exact multiple of 8, a compromised or malicious block producer can set these unused trailing padding bits to artificially inflate the apparent signer count by up to 7 signatures, enabling blocks with fewer genuine validator signatures than required by the protocol to pass consensus validation.

Alon Barad
Alon Barad
4 views•14 min read