CVE-2026-73071

Vim: Use-after-free in JSON Decoding

Published Aug 11, 2026 CVSS 3.1 · 3.3 Low EPSS < 1% KEV · Not listed
Description
Vim is an open source, command line text editor. From 9.2.0511 until 9.2.0844, json_decode_item() in src/json.c can retain a stale pointer after json_decode_string() invokes channel_fill() to refill and free the current buffer, causing the error path to read freed memory instead of reader->js_buf + reader->js_used when an invalid JSON string spans buffers. This issue is fixed in version 9.2.0844.

Analysis

AI-generated

Technical impact

A use-after-free vulnerability in Vim's json_decode_item occurs when an invalid JSON string spans input buffers, causing the code to read freed memory and potentially crash the editor. This defect can lead to application crashes, which represents a denial-of-service condition for users or processes relying on Vim. The weakness is a memory corruption flaw (CWE-416).

Affected Systems

Vim versions 9.2.0511 up to and including 9.2.0844 contain the flaw. The issue is resolved starting with release 9.2.0844.

Risk and Exploitability

The CVSS score of 3.3 indicates low severity and the EPSS score is not available. The vulnerability is not listed in CISA's KEV catalog. Based on the description it is inferred that the attacker must have local access to Vim and supply malformed JSON input to trigger the crash; this local attack vector limits the threat to systems where Vim is exposed to untrusted input. Although the vulnerability does not provide remote code execution or privilege escalation, the possibility of denial of service warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Vim to version 9.2.0844 or later, which contains the fix for the use-after-free bug.
  • If an immediate upgrade is not possible, restrict the use of Vim to trusted users only and avoid feeding malformed JSON data through the editor or related scripts.
  • Monitor Vim processes for unexpected crashes or segmentation faults; investigate any such incidents promptly as they may indicate exploitation attempts.

Generated by OpenCVE AI on August 11, 2026 at 22:53 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
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. From 9.2.0511 until 9.2.0844, json_decode_item() in src/json.c can retain a stale pointer after json_decode_string() invokes channel_fill() to refill and free the current buffer, causing the error path to read freed memory instead of reader->js_buf + reader->js_used when an invalid JSON string spans buffers. This issue is fixed in version 9.2.0844.
Title Vim: Use-after-free in JSON Decoding
Weaknesses CWE-416
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 11, 2026, 4:47 PM
Reserved
Aug 10, 2026, 7:37 PM
Status
Analyzed
Published
Aug 11, 2026, 4:17 PM
Modified
Oct 6, 2026, 8:10 PM
Severity
Low
Public date
Aug 11, 2026, 3:29 PM