CVE-2022-1160
NixOS vulnerability analysis and mitigation

Overview

A heap buffer overflow vulnerability (CVE-2022-1160) was discovered in the getonesourceline function in the Vim text editor versions prior to 8.2.4647. The vulnerability was introduced in version 8.2.4603 and was fixed in version 8.2.4647 (NVD, Debian Tracker).

Technical details

The vulnerability occurs in the getonesourceline function within the scriptfile.c file when the 'source' command can read past the end of a copied line. The issue was fixed by adding a terminating NUL character to prevent buffer overflow. The vulnerability has a CVSS v3.1 Base Score of 7.8 (High) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (Ubuntu, GitHub Commit).

Impact

If successfully exploited, this vulnerability could lead to high impacts on confidentiality, integrity, and availability of the affected system. The heap buffer overflow could potentially allow an attacker to execute arbitrary code or cause a denial of service condition (Ubuntu).

Mitigation and workarounds

Users should upgrade to Vim version 8.2.4647 or later which contains the fix for this vulnerability. The fix was implemented by adding a terminating NUL character to prevent buffer overflow (GitHub Commit, Fedora Update).

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-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 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