Vulnerability in Vim - Integer Overflow and Buffer Overflow

vim Updated 02 Oct 2025

Summary

13/02/2017
N/A
Yes i
Unrated
Not published

DLA-822-1: vim - security update. Affects vim versions < 2:7.3.547-7+deb7u2. Fixed in 2:7.3.547-7+deb7u2. 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 popular text editor known for its extensive features and customization options. It is widely used by developers and system administrators for editing files and writing code. However, a vulnerability has been discovered in Vim that can be exploited through a malformed spell file. This vulnerability triggers an integer overflow, which is then used as the size for memory allocation. As a result, a buffer overflow occurs, potentially leading to arbitrary code execution or a denial of service attack.

Vulnerability Detail

The vulnerability in Vim arises from a flaw in the handling of spell files. When a spell file is malformed, it can cause an integer overflow during memory allocation. This integer overflow leads to a buffer overflow, where an attacker can overwrite adjacent memory regions with arbitrary data. By carefully crafting a malicious spell file, an attacker can exploit this vulnerability to execute arbitrary code or crash the Vim process. This vulnerability poses a significant risk to systems where Vim is used, as it can be leveraged by an attacker to gain unauthorized access or disrupt the normal functioning of the application.

How To Fix

Minimum fixed version

2:7.3.547-7+deb7u2

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 is no known workaround for this vulnerability. Upgrading to the patched version of Vim is the only reliable solution.

Conclusion

The vulnerability in Vim poses a significant risk to systems where Vim is used. It is crucial to upgrade to the patched version of Vim to mitigate the risk of exploitation. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

Vim is a powerful text editor designed for use in the Unix environment. It offers extensive features and customization options, making it a popular choice among developers and system administrators.

The vulnerability occurs when Vim encounters a malformed spell file. This triggers an integer overflow during memory allocation, leading to a subsequent buffer overflow.

If exploited, this vulnerability can allow an attacker to execute arbitrary code or crash the Vim process. This can lead to unauthorized access, data manipulation, or denial of service attacks.

No, there is no known workaround for this vulnerability. Upgrading to the patched version of Vim is the recommended solution.

To update Vim, you can use the package manager of your operating system or manually download and install the latest version from the official Vim website.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:7.3.547-7+deb7u2

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