Critical Integer Overflow Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

27/02/2017
N/A
Yes i
Critical
9.8

ALPINE-CVE-2017-6350: An integer overflow at an unserialize_uep memory allocation site would occur for vim before patch 8.0.0378, if it does not properly validate values for tree length when reading a corrupted undo file, which may lead to re... Affects vim versions < 8.0.1521-r0. Fixed in 8.0.1521-r0. 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 by developers and system administrators for its powerful features and extensibility. However, a critical vulnerability has been identified in Vim versions prior to 8.0.1521-r0, which could lead to severe security risks if exploited.

Vulnerability Detail

An integer overflow occurs at an unserialize_uep memory allocation site in Vim before patch 8.0.0378. This vulnerability arises when the software fails to properly validate values for tree length while reading a corrupted undo file. If exploited, it may lead to buffer overflows, potentially allowing attackers to execute arbitrary code or crash the application, thereby compromising system integrity.

How To Fix

Minimum fixed version

8.0.1521-r0

This is the first release that contains the fix.

sudo apk add --upgrade vim

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

Workaround

As a temporary workaround, users are advised to avoid opening potentially corrupted undo files until the package can be updated. Additionally, consider using alternative text editors that do not exhibit this vulnerability.

Conclusion

The integer overflow vulnerability in the Vim package poses a critical risk to users running affected versions. It is essential to update to the patched version to mitigate potential security threats. Users should also consider using Vulert for ongoing monitoring of vulnerabilities in their software.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 9.8, indicating a critical level of severity.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability could lead to buffer overflows, allowing attackers to execute arbitrary code or crash the application, posing significant security risks.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

If you cannot update Vim immediately, refrain from opening any potentially corrupted undo files and consider using alternative text editors until the update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

8.0.1521-r0

This is the first release that contains the fix.

sudo apk add --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