CVE-2026-28422 Vim has stack-buffer-overflow in build_stl_str_hl()

Low 2.2 Published Updated

A stack-buffer-overflow in Vim's statusline rendering allows attackers to execute arbitrary code or cause a crash via crafted multi-byte characters.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-28422?

CVE-2026-28422 is a low-severity memory corruption vulnerability in Vim Vim, published on 27 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Vim is an open source, command line text editor. Prior to version 9.2.0078, a stack-buffer-overflow occurs in `build_stl_str_hl()` when rendering a statusline with a multi-byte fill character on a very wide terminal. Version 9.2.0078 patches the issue.

Weakness: CWE-121

Which versions are affected by CVE-2026-28422?

It affects 1 product.

Products include Vim Vim.

How do I fix CVE-2026-28422?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-28422 being exploited?

There is no known exploitation of CVE-2026-28422 in the wild and no public exploit code.

All Vim Vim vulnerabilities

Sources

Also known as ALPINE-CVE-2026-28422, AZL-78512, BELL-CVE-2026-28422, DEBIAN-CVE-2026-28422, ECHO-f134-6ef2-2906, GHSA-gmqx-prf2-8mwf.

Is CVE-2026-28422 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free