CVE-2026-28422: Vim has stack-buffer-overflow in build_stl_str_hl()
Vim has stack-buffer-overflow in buildstlstrhl()
Other sources
Vim is an open source, command line text editor. Prior to version 9.2.0078, a stack-buffer-overflow occurs in buildstlstrhl() when rendering a statusline with a multi-byte fill character on a very wide terminal. Version 9.2.0078 patches the issue.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/vimto a version that resolves this vulnerability.Fixed in 2:9.1.1230-2+deb13u1Fixed in 2:9.2.0858-1 - Upgrade
Upgrade
debian/vimto a version that resolves this vulnerability.Fixed in 2:9.1.1230-2+deb13u1 - Upgrade
Upgrade
debian/vimto a version that resolves this vulnerability.Fixed in 2:9.2.0119-1 - Upgrade
Upgrade
alpine/vimto a version that resolves this vulnerability.Fixed in 9.2.0078-r0 - Upgrade
Upgrade
Vimto a version that resolves this vulnerability.Fixed in 9.2.0078
Event History
Frequently Asked Questions
What is the severity of CVE-2026-28422?
CVE-2026-28422 has been classified as a high severity vulnerability due to the potential for a stack-buffer overflow.
How do I fix CVE-2026-28422?
To mitigate CVE-2026-28422, update Vim to version 9.2.0078 or later.
What version of Vim is affected by CVE-2026-28422?
Vim versions prior to 9.2.0078 are affected by CVE-2026-28422.
What causes the vulnerability CVE-2026-28422?
CVE-2026-28422 is caused by a stack-buffer overflow in the build_stl_str_hl() function when rendering a statusline with a multi-byte fill character.
Is CVE-2026-28422 a local or remote vulnerability?
CVE-2026-28422 is considered a local vulnerability, as it requires access to the system running the affected version of Vim.