CVE-2022-1720
NixOS vulnerability analysis and mitigation

Overview

A buffer over-read vulnerability was discovered in the grabfilename function in GitHub repository vim/vim prior to version 8.2.4956. The vulnerability was identified in May 2022 and affects the Vim text editor. The issue occurs when reading after the NULL terminates the line with 'gf' in Visual block mode (CVE Database, Debian Security).

Technical details

The vulnerability is a buffer over-read issue in the grabfilename function located in the findfile.c file. The flaw occurs specifically when using the 'gf' command in Visual block mode, where the function reads beyond the NULL terminator of a line. This was fixed in version 8.2.4956 by improving input validation and removing the vulnerable code that included the NUL in the length calculation (GitHub Commit).

Impact

The vulnerability can lead to software crashes, memory modification, and potentially remote code execution. When exploited, it could allow attackers to cause denial-of-service conditions or potentially execute arbitrary code (NVD).

Mitigation and workarounds

Users should upgrade to Vim version 8.2.4956 or later which contains the fix for this vulnerability. Multiple distributions have released security updates including Debian, Fedora, and Apple macOS (Fedora Update, Debian LTS).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management