CVE-2026-73070

Vim: Stack Buffer Overflow in the Vim Socket Server

Published Aug 11, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
Vim is an open source, command line text editor. Prior to 9.2.0842, the socket server backend in src/socketserver.c accepts unbounded client connections in socketserver_accept(), causing descriptors to overflow fd_set structures in src/channel.c and fixed-size struct pollfd arrays in src/os_unix.c, which allows a local process that can connect to the server socket to corrupt stack memory or terminate the Vim server. This issue is fixed in version 9.2.0842.

Analysis

AI-generated

Technical impact

The vulnerability is a stack buffer overflow in Vim’s socket server code. When the server accepts an unbounded number of client connections, the fd_set and pollfd arrays are overrun, allowing a local process that can connect to the Vim socket to overwrite adjacent stack memory or terminate the Vim process. The flaw is identified as a classic stack-based buffer overflow (CWE‑121) and can be used to alter the execution flow of the Vim editor or cause an interruption in service.

Affected Systems

Vim, any version before 9.2.0842. The issue is fixed in v9.2.0842 and later releases. All installations that use the socket server component and listen for local connections are vulnerable.

Risk and Exploitability

The CVSS score of 6.8 indicates a moderate severity. The EPSS score is 0.00111, indicating a very low probability of exploitation, yet the flaw can be triggered from a local environment that has permissions to connect to the socket, which is typically a non‑privileged user. The vulnerability is not listed in CISA KEV, yet the local attack vector and stack corruption provide a clear path to potential exploitation. Organizations should treat it as a moderate risk that can become critical if the attacker can also marshal processes to execute arbitrary code via the overwritten return address.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Vim to version 9.2.0842 or newer where the socket server logic is corrected
  • If the socket server is not required, disable it by avoiding the use of the ---listen option or by setting the appropriate configuration to prevent it from accepting connections
  • Restrict file system permissions on the Vim server socket, ensuring only trusted users can create or access the socket, e.g., chown to a specific user and set mode 600 before the editor starts

Generated by OpenCVE AI on August 14, 2026 at 14:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-120
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Vim
Vim vim
Vendors & Products Vim
Vim vim
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Vim is an open source, command line text editor. Prior to 9.2.0842, the socket server backend in src/socketserver.c accepts unbounded client connections in socketserver_accept(), causing descriptors to overflow fd_set structures in src/channel.c and fixed-size struct pollfd arrays in src/os_unix.c, which allows a local process that can connect to the server socket to corrupt stack memory or terminate the Vim server. This issue is fixed in version 9.2.0842.
Title Vim: Stack Buffer Overflow in the Vim Socket Server
Weaknesses CWE-121
References
Metrics cvssV4_0

{'score': 6.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 11, 2026, 3:58 PM
Reserved
Aug 10, 2026, 7:37 PM
Status
Analyzed
Published
Aug 11, 2026, 4:17 PM
Modified
Oct 29, 2026, 3:55 PM
Severity
Moderate
Public date
Aug 11, 2026, 3:21 PM