Moderate: vim security update

vim Updated 02 Oct 2025

Summary

02/08/2022
N/A
Yes i
High
7.8

RLSA-2022:5813: Moderate: vim security update. Affects vim versions < 2:8.0.1763-19.el8_6.4. Fixed in 2:8.0.1763-19.el8_6.4. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Vim (Vi IMproved) is an updated and improved version of the vi editor. It is widely used for text editing and programming tasks. Vim provides various features and enhancements over the traditional vi editor, making it a popular choice among developers and system administrators.

Vulnerability Detail

The vulnerability (CVE-2022-1785) in Vim is an out-of-bounds write issue. This vulnerability could be exploited by an attacker to write data outside the bounds of an allocated buffer, potentially leading to a crash or arbitrary code execution. Another vulnerability (CVE-2022-1897) in Vim allows an out-of-bounds write in vim_regsub_both() function in regexp.c, which could also result in arbitrary code execution. Additionally, there is a buffer over-read vulnerability (CVE-2022-1927) in utf_ptr2char() function in mbyte.c, which could lead to information disclosure or a crash. These vulnerabilities have a CVSS score of 7.8, indicating a moderate severity level.

How To Fix

Minimum fixed version

2:8.0.1763-19.el8_6.4

This is the first release that contains the fix.

sudo dnf update vim

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

Conclusion

In conclusion, Vim is affected by multiple vulnerabilities that could potentially lead to arbitrary code execution, crashes, or information disclosure. It is crucial to update the Vim package to the latest version to mitigate these risks. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

Vim is an improved version of the vi editor, providing enhanced features and functionality for text editing and programming tasks.

These vulnerabilities could potentially allow an attacker to execute arbitrary code, crash the application, or disclose sensitive information.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by these vulnerabilities. Simply upload your package manifest file (e.g., package-lock.json) and Vulert will provide real-time alerts for any open-source vulnerabilities.

At the moment, there are no known workarounds for these vulnerabilities. It is recommended to update the Vim package to the latest version as soon as possible.

These vulnerabilities were discovered and reported by the Rocky Enterprise Software Foundation and Red Hat.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:8.0.1763-19.el8_6.4

This is the first release that contains the fix.

sudo dnf update 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