Critical Use After Free Vulnerability in Vim Package

vim Updated 02 Oct 2025

Summary

04/09/2023
N/A
Yes i
High
7.8

ALPINE-CVE-2023-4750: Use After Free in GitHub repository vim/vim prior to 9.0.1857. Affects vim versions < 9.0.2073-r0. Fixed in 9.0.2073-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 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 Vim package in Alpine Linux is essential for users who require a robust editing tool in their development environment. However, it has been found to have a critical vulnerability that can lead to severe security implications.

Vulnerability Detail

The vulnerability identified as CVE-2023-4750 is a Use After Free issue in the Vim package prior to version 9.0.1857. This flaw allows an attacker to exploit memory management errors, potentially leading to arbitrary code execution. The vulnerability arises from improper handling of memory, which can be manipulated to execute malicious code, compromising the integrity and confidentiality of the system. The CVSS score for this vulnerability is 7.8, indicating a high severity level.

How To Fix

Minimum fixed version

9.0.2073-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 can avoid using features of Vim that may trigger the vulnerability until the package is updated. Additionally, running Vim in a restricted environment or using alternative text editors can mitigate the risk.

Conclusion

The Use After Free vulnerability in the Vim package poses significant risks to users of Alpine Linux. It is crucial to update to the latest patched version to safeguard against potential exploits. Users should remain vigilant and consider using tools like Vulert to monitor for vulnerabilities in their software.

See every vulnerability recorded for vim →

Share this vulnerability

FAQ

CVE-2023-4750 is a Use After Free vulnerability found in the Vim package, which can lead to arbitrary code execution.

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

The CVSS score for this vulnerability is 7.8, indicating a high severity level.

You can update the Vim package using the command 'apk add --update vim=<version>' for your specific Alpine version.

If immediate updating is not possible, consider using alternative text editors or restricting the use of Vim features that may trigger the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for vim.

How To Fix

Minimum fixed version

9.0.2073-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