Vulnerability in Vim: Overflow Risk in Relative Ex Addresses

vim Updated 02 Oct 2025

Summary

16/11/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-48235: Vim is an open source command line text editor. Affects vim versions < 2:9.0.2116-1. Fixed in 2:9.0.2116-1. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Vim is a widely used open source command line text editor known for its efficiency and versatility in editing text files. It supports various programming languages and is favored by developers for its powerful features, including syntax highlighting, multi-file editing, and extensive plugin support. However, Vim has been identified to have a vulnerability that affects its ability to handle certain relative ex addresses, potentially leading to crashes under specific conditions.

Vulnerability Detail

The vulnerability arises from an overflow issue when Vim parses relative ex addresses. This occurs due to an existing overflow check that can lead to a negative line number, causing the calculation LONG_MAX - lnum to overflow. The impact of this vulnerability is considered low, as it requires user interaction to trigger and may not always result in a crash. The issue has been documented in commit 060623e and affects versions prior to 2:9.0.2116-1.

How To Fix

Minimum fixed version

2:9.0.2116-1

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

There are currently no known workarounds for this vulnerability aside from upgrading to the patched version.

Conclusion

In summary, the identified vulnerability in Vim poses a low risk but requires user action to exploit. Users are strongly encouraged to upgrade to the latest version to ensure their systems remain secure. Regular monitoring for vulnerabilities can be facilitated using tools like Vulert, which provides real-time alerts for open-source vulnerabilities without requiring code access.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

The vulnerability is an overflow issue that occurs when parsing relative ex addresses, potentially leading to crashes.

If you are using a version prior to 2:9.0.2116-1, your installation is vulnerable.

While there are no workarounds, it is recommended to upgrade as soon as possible to mitigate the risk.

Yes, user interaction is necessary to trigger the overflow condition.

You can refer to the official Debian CVE database or the Vim project's release notes for detailed information.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2:9.0.2116-1

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