Critical Use After Free Vulnerability in Vim Package
Summary
DEBIAN-CVE-2023-5535: Use After Free in GitHub repository vim/vim prior to v9.0.2010. Affects vim versions < 2:9.0.2018-1. Fixed in 2:9.0.2018-1. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 could potentially lead to severe security issues if not addressed.
Vulnerability Detail
The vulnerability identified as DEBIAN-CVE-2023-5535 is a Use After Free issue found in the Vim package prior to version 9.0.2010. This flaw allows an attacker to exploit the memory management of the application, potentially leading to arbitrary code execution or crashes. The vulnerability arises from improper handling of memory, which can be manipulated under certain conditions, posing a significant risk to users.
How To Fix
Minimum fixed version
2:9.0.2018-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
As a temporary workaround, users are advised to avoid using features of Vim that may trigger the vulnerability until the package has been updated. Additionally, consider using alternative text editors that do not have this vulnerability.
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. Users are encouraged to monitor their software for vulnerabilities using tools like Vulert.
See every vulnerability recorded for vim →
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 unpredictable behavior and security risks.
You can verify if your Vim installation is affected by checking the version using the command 'vim --version'. If it is below 2:9.0.2018-1, it is vulnerable.
Yes, you can use Vulert, which monitors and alerts 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 using features that may exploit the vulnerability and consider using alternative text editors until the update can be applied.
More information about this vulnerability can be found in the official Debian security advisories and the CVE database.
References
Related vulnerabilities
Recent vulnerabilities recorded for vim.