Critical Use After Free Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

04/09/2023
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2023-4750: Use After Free in GitHub repository vim/vim prior to 9.0.1857. Affects vim versions < 2:9.0.1894-1. Fixed in 2:9.0.1894-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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 Vim package in Debian versions 13 and 14 has been identified to have a vulnerability that can lead to severe security issues if not addressed promptly.

Vulnerability Detail

The vulnerability identified as DEBIAN-CVE-2023-4750 is a Use After Free issue in the Vim package, specifically affecting versions prior to 9.0.1857. This flaw can be exploited by attackers to execute arbitrary code, potentially leading to unauthorized access or system compromise. The vulnerability arises from improper memory management, allowing the program to continue using memory that has already been freed, which can lead to unpredictable behavior.

How To Fix

Minimum fixed version

2:9.0.1894-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

Currently, there are no specific workarounds available for this vulnerability other than updating to the patched version of the Vim package.

Conclusion

The Use After Free vulnerability in the Vim package poses a significant risk to users of Debian versions 13 and 14. It is crucial to update to the patched version to mitigate potential security threats. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your software.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

A Use After Free vulnerability occurs when a program continues to use a pointer after the memory it points to has been freed, which can lead to memory corruption and security risks.

You can check if your Vim installation is affected by running 'vim --version' in the terminal and comparing the version number with the patched version 2:9.0.1894-1.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using a manifest file like package-lock.json. You can check your application for vulnerabilities without any signup at the Vulert playground.

If you cannot update Vim immediately, it is advisable to limit the use of the editor for sensitive tasks until the update can be applied.

More information about this vulnerability can be found in the official Debian security advisories and the GitHub repository for Vim.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

2:9.0.1894-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