CVE-2025-26603
vim: heap-use-after-free in function str_to_reg in vim/vim
Severity
LowRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · February 19, 2025
Updated · August 21, 2026
Description
A flaw was found in Vim's :redir command. This vulnerability allows a use-after-free condition via redirecting the :display command to a clipboard register (* or +), which allows access to freed memory.
Statement
This flaw is marked as Low Impact because it requires a user to run an untrusted/malicious Vim command. Untrusted Vim scripts should never be run as they can already execute arbitrary shell commands. The security issue raised by this flaw would be no worse than what is already possible when running untrusted Vim scripts.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 4.2CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
CWE-416 · Use After Free