CVE-2022-1898
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-1898 is a use-after-free vulnerability discovered in the Vim text editor affecting versions prior to 8.2. The vulnerability was identified in the findpatternin_path() function in search.c and was disclosed in May 2022 (Debian LTS, Fedora).

Technical details

The vulnerability occurs when using the ']d' command in Vim, where a use-after-free condition arises in the findpatternin_path() function within search.c. The issue was fixed in patch 8.2.5024 by implementing a solution that copies the pattern before searching, preventing the use of freed memory (Vim Commit).

Impact

If successfully exploited, this vulnerability could lead to denial-of-service (application crash) or potentially allow arbitrary code execution when opening specially crafted files (Debian LTS).

Mitigation and workarounds

The vulnerability has been patched in Vim version 8.2.5024. Users are advised to upgrade to this version or later. Multiple distributions have released security updates, including Debian (2:8.0.0197-4+deb9u7), Ubuntu, and Fedora (8.2.5046-1) (Debian LTS, Fedora).

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-14330CRITICAL9.8
  • NixOSNixOS
  • rhel10::firefox-flatpak
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • rhel10::thunderbird-flatpak
NoYesDec 09, 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