Critical Memory Management Flaw in Vim Package Leads to Denial of Service

vim Updated 03 Oct 2025

Summary

27/11/2024
N/A
Yes i
Unrated
Not published

USN-7131-1: vim vulnerability. Affects vim versions < 2:7.4.052-1ubuntu3.1+esm20. Fixed in 2:7.4.052-1ubuntu3.1+esm20. 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 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. The package is known for its versatility, supporting various programming languages and file formats. However, it has recently been discovered that Vim is vulnerable to a memory management flaw that can be exploited by malicious actors.

Vulnerability Detail

The vulnerability arises from improper handling of memory when closing a buffer in Vim. This flaw can lead to a use-after-free condition, where the application attempts to access memory that has already been freed. If a user is tricked into opening a specially crafted file, an attacker could exploit this vulnerability to crash the application, resulting in a denial of service. The vulnerability is identified as CVE-2024-47814 and is linked to the Ubuntu security notice USN-7131-1.

How To Fix

Minimum fixed version

2:7.4.052-1ubuntu3.1+esm20

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

As a temporary workaround, users can avoid opening untrusted files or files from unknown sources that may exploit this vulnerability until the package is updated.

Conclusion

In summary, the Vim package has a critical vulnerability that can lead to denial of service due to improper memory management. Users are strongly advised to update their Vim installations to the latest patched versions to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor for such vulnerabilities in your software.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2024-47814 is the identifier for the vulnerability in Vim that allows for a denial of service due to improper memory management.

You can check your version of Vim by running 'vim --version' in your terminal. Compare it with the patched versions listed in the 'how_to_fix' section.

If you do not update Vim, your system remains vulnerable to potential denial of service attacks that could crash the application when opening malicious files.

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

More information can be found in the Ubuntu security notice USN-7131-1 and the CVE-2024-47814 documentation.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:7.4.052-1ubuntu3.1+esm20

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