Critical Out-of-Bounds Write Vulnerability in Vim Package
Summary
ALPINE-CVE-2023-4735: Out-of-bounds Write in GitHub repository vim/vim prior to 9.0.1847. Affects vim versions < 9.0.2073-r0. Fixed in 9.0.2073-r0. 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 used for efficiently creating and editing any kind of text. It is known for its powerful features, including syntax highlighting, multi-level undo, and extensive plugin support. However, recent vulnerabilities have raised concerns about its security, particularly an out-of-bounds write issue that could lead to severe consequences if exploited.
Vulnerability Detail
The vulnerability identified as CVE-2023-4735 is an out-of-bounds write in the Vim package prior to version 9.0.1847. This flaw allows an attacker to write data outside the allocated memory buffer, potentially leading to arbitrary code execution, data corruption, or crashes. The vulnerability originates from improper handling of input data, which can be exploited by malicious actors to compromise the integrity and availability of systems running affected versions of 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 →
Workaround
As a temporary workaround, users can avoid using features that may trigger the vulnerability until an update can be applied. Additionally, restricting access to the Vim editor or using alternative text editors may help mitigate the risk.
Conclusion
The out-of-bounds write vulnerability in the Vim package poses a significant risk to users. It is crucial to update to the latest patched version to ensure system security. Users are encouraged to monitor their applications for vulnerabilities using tools like Vulert, which can provide real-time alerts without requiring extensive setup.
See every vulnerability recorded for vim →
FAQ
CVE-2023-4735 is a critical out-of-bounds write vulnerability found in the Vim text editor that can lead to arbitrary code execution.
You can check if your version of Vim is affected by visiting the Vulert playground at Vulert Scanner, where you can analyze your manifest file for vulnerabilities.
Exploitation of this vulnerability can lead to data corruption, system crashes, or unauthorized access, posing significant risks to system integrity.
Yes, patches are available in the form of updated versions of the Vim package. Users should upgrade to the latest version to mitigate the risk.
The CVSS score of CVE-2023-4735 is 7.8, indicating a high severity level that requires prompt attention.
References
Related vulnerabilities
Recent vulnerabilities recorded for vim.