Critical Overflow Vulnerability in Vim Package: CVE-2023-48235

vim Updated 02 Oct 2025

Summary

16/11/2023
N/A
Yes i
Medium
4.3

UBUNTU-CVE-2023-48235: Vim is an open source command line text editor. Affects vim versions < 2:7.4.052-1ubuntu3.1+esm15. Fixed in 2:7.4.052-1ubuntu3.1+esm15. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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 offers features such as syntax highlighting, multi-level undo, and customizable key mappings. However, it is susceptible to a specific vulnerability that can lead to unexpected behavior when parsing relative ex addresses.

Vulnerability Detail

The vulnerability, identified as CVE-2023-48235, arises from an overflow condition triggered when Vim processes relative ex addresses. This issue occurs due to a flaw in the existing overflow check, where the line number can become negative, leading to an overflow when calculating LONG_MAX - lnum. Although the impact is low and requires user interaction, it may result in a crash in certain scenarios, making it essential for users to address this vulnerability promptly.

How To Fix

Minimum fixed version

2:7.4.052-1ubuntu3.1+esm15

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 no known workarounds for this vulnerability. Users are advised to upgrade to the patched versions as soon as possible.

Conclusion

CVE-2023-48235 is a critical overflow vulnerability in the Vim package that requires immediate attention from users. By updating to the patched versions, users can mitigate the risk associated with this vulnerability and ensure the continued security of their systems.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2023-48235 is a vulnerability in the Vim text editor that can lead to an overflow condition when processing relative ex addresses.

The vulnerability requires user interaction and may lead to unexpected crashes in certain situations, although the overall impact is considered low.

Affected versions include various releases of Vim across Ubuntu distributions, specifically those prior to the patched versions listed in the 'how_to_fix' section.

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

The CVSS score for CVE-2023-48235 is 4.3, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:7.4.052-1ubuntu3.1+esm15

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