CVE-2022-3099: 
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-3099 is a Use-After-Free vulnerability discovered in the Vim text editor affecting versions prior to 9.0.0360. The vulnerability was identified in the GitHub repository vim/vim and specifically affects the do_cmdline() function in ex_docmd.c (NVD, Vim Commit).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the following vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The issue is classified as CWE-416: Use After Free, which occurs when attempting to access memory after it has been freed, specifically in the do_cmdline() function when handling invalid line numbers on :for commands (NVD, Huntr).

Impact

The vulnerability could lead to a denial of service (application crash) or potentially have other unspecified impacts due to the use-after-free condition. The high CVSS score indicates potential severe impacts on confidentiality, integrity, and availability of the system (NVD).

Exploitability

The vulnerability requires local access and user interaction to be exploited. While proof-of-concept code exists, there are no known reports of this vulnerability being actively exploited in the wild (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Vim version 9.0.0360. Users are advised to upgrade to this version or later. Multiple Linux distributions have released security updates to address this vulnerability, including Debian, Fedora, and Gentoo (Debian LTS, Fedora Update, Gentoo Security).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Alpine

Fixed

edge

vim: 9.0.0369-r0

Fixed

v3.18

vim: 9.0.0369-r0

Fixed

v3.19

vim: 9.0.0369-r0

Fixed

v3.20

vim: 9.0.0369-r0

Fixed

v3.21

vim: 9.0.0369-r0

Fixed

v3.22

vim: 9.0.0369-r0

Fixed

v3.23

vim: 9.0.0369-r0

Fixed

Arch Linux

Fixed

rolling

vim: 9.0.1225-1

Fixed

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-123634CRITICAL9.2
  • NGINX logoNGINX
  • nginx:1.26::nginx
NoYesNov 18, 2026
CVE-2026-123633CRITICAL9.2
  • NGINX logoNGINX
  • nginx-mod-stream-geoip-debuginfo
NoYesNov 18, 2026
CVE-2026-123007CRITICAL9.2
  • NGINX logoNGINX
  • openresty
NoYesNov 18, 2026
CVE-2026-125283MEDIUM6.9
  • NGINX logoNGINX
  • nginx:1.24::nginx-filesystem
NoYesNov 18, 2026
CVE-2026-123640MEDIUM6.9
  • NGINX logoNGINX
  • nginx:1.24::nginx-mod-stream
NoYesNov 18, 2026

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

Additional Wiz resources

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