Introducing Wiz for Exposure Management: Unify, prioritize, and remediate exposures everywhere.

CVE-2022-1897
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-1897 is an out-of-bounds write vulnerability discovered in the Vim text editor prior to version 8.2. The vulnerability was identified in the vimregsubboth() function in regexp.c and was disclosed in May 2022 (Fedora Update, Debian LTS).

Technical details

The vulnerability is characterized as an out-of-bounds write issue in the vimregsubboth() function located in the regexp.c file. The issue occurs during substitute operations that can lead to buffer overflow conditions. The vulnerability has been assigned a CVSS 3.1 score of 7.8 (High), requiring local access and user interaction but potentially leading to high impacts on confidentiality, integrity, and availability (Ubuntu Security).

Impact

If successfully exploited, this vulnerability could allow an attacker to perform arbitrary code execution, modify memory, and potentially crash the application. The vulnerability affects multiple versions of Vim across various operating systems and distributions (Debian LTS).

Mitigation and workarounds

The vulnerability was patched in Vim version 8.2.5023 with a fix that disallows undo operations during substitute commands (Vim Commit). Various distributions have released security updates to address this vulnerability, including Debian, Ubuntu, and Fedora. Users are advised to upgrade to the patched versions available through their respective package managers (Debian LTS, Fedora Update).

Additional resources


SourceThis report was generated using AI

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