Critical Vulnerabilities in Vim Package: Denial of Service and Code Execution Risks

vim Updated 03 Oct 2025

Summary

15/09/2022
N/A
Yes i
Unrated
Not published

USN-5613-1: vim vulnerabilities. Affects vim versions < 2:7.4.052-1ubuntu3.1+esm5. Fixed in 2:7.4.052-1ubuntu3.1+esm5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Vim is a highly configurable text editor built to enable efficient text editing. It is widely used across various platforms due to its powerful features, including syntax highlighting, multi-level undo, and extensive plugin support. However, recent vulnerabilities have exposed it to potential denial of service and arbitrary code execution risks, particularly affecting users of specific Ubuntu LTS versions.

Vulnerability Detail

Multiple vulnerabilities have been identified in Vim, including improper bounds checks during spell suggestion commands, use of freed memory with regular expressions, and inadequate processing of invalid commands and data. These vulnerabilities could allow attackers to crash the application or execute arbitrary code, posing significant risks to users. Specific CVEs include CVE-2022-0943, CVE-2022-1154, CVE-2022-1420, CVE-2022-1616, CVE-2022-1619, CVE-2022-1620, and CVE-2022-1621.

How To Fix

Minimum fixed version

2:7.4.052-1ubuntu3.1+esm5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade vim

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can avoid opening untrusted files or files from unknown sources that may exploit these vulnerabilities until the package is updated.

Conclusion

The identified vulnerabilities in the Vim package pose serious risks to users, including potential denial of service and arbitrary code execution. It is crucial for users to update their Vim installations to the latest patched versions to safeguard against these threats.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

Vim is a versatile text editor used for editing code and text files, known for its efficiency and extensive features.

The vulnerabilities could lead to denial of service attacks or allow attackers to execute arbitrary code on affected systems.

You can use Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

Affected versions include various releases of Vim across Ubuntu LTS versions, specifically those listed in the 'how to fix' section.

It is recommended to regularly check for updates and apply them promptly to mitigate security vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:7.4.052-1ubuntu3.1+esm5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade vim

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback