CVE-2026-28421: Heap buffer overflow in Vim swap-file recovery
- Vendor
- Vim
CVE-2026-28421 is a heap-based buffer overflow in the swap-file recovery logic of Vim versions before 9.2.0077. Unvalidated fields in crafted swap-file pointer blocks can trigger a heap buffer overflow and segmentation fault when Vim attempts recovery. Exploitation can cause denial of service and information disclosure. Vim 9.2.0077 fixes the vulnerability.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A crafted swap file can crash the Vim process during recovery, disrupting the editing session, and can expose information through invalid memory access. Arbitrary code execution is not established for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
No vulnerability-specific temporary workaround is documented. Applying the fixed Vim package is the recommended resolution.
Remediation
Patch, then assume compromise.
Upgrade upstream Vim to version 9.2.0077 or later, or install the distribution-specific package update containing the backported fix. Fixed distribution releases include Debian trixie package 2:9.1.1230-2+deb13u1 and Echo package 2:9.2.0218-1. For other packaged or bundled installations, apply the applicable vendor security update rather than relying solely on the upstream version number.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-28421 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2026-28421 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-28421?
- As of Nov 19, 2026, Mallory has found no public exploit for CVE-2026-28421.
- Is there a patch for CVE-2026-28421?
- Upgrade upstream Vim to version 9.2.0077 or later, or install the distribution-specific package update containing the backported fix. Fixed distribution releases include Debian trixie package 2:9.1.1230-2+deb13u1 and Echo package 2:9.2.0218-1.
- What products are affected by CVE-2026-28421?
- Vim.
- How severe is CVE-2026-28421?
- CVE-2026-28421 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.24% (9th percentile) as of Nov 19, 2026.
Recent activity
41 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.