Heap-based Buffer Overflow in vim/vim
Summary
CVE-2022-0572: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2. Affects vim versions < 8.2.4619-r0. Fixed in 8.2.4619-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 built to enable efficient text editing. It is widely used in various operating systems and provides powerful features for developers and users. However, a vulnerability has been discovered in versions prior to 8.2, which allows for a heap-based buffer overflow.
Vulnerability Detail
The heap-based buffer overflow vulnerability in vim/vim can be exploited by an attacker to execute arbitrary code or cause a denial of service. This vulnerability arises from improper input validation, which can lead to the overflow of a buffer in the heap memory. An attacker can craft a malicious input that exceeds the buffer's capacity, resulting in the overwriting of adjacent memory locations. This can lead to the execution of arbitrary code or a crash of the application.
How To Fix
Minimum fixed version
8.2.4619-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
There is no known workaround for this vulnerability. It is essential to update to the fixed version of vim/vim to mitigate the risk of exploitation.
Conclusion
The heap-based buffer overflow vulnerability in vim/vim prior to version 8.2 poses a significant risk to the security and stability of systems. It is crucial to update to the fixed version to mitigate the risk of exploitation. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for vim →
FAQ
This vulnerability can allow an attacker to execute arbitrary code or cause a denial of service. It poses a significant risk to the security and stability of systems running vulnerable versions of vim/vim.
You can use Vulert's playground at Vulert Scanner to check if your version of vim/vim is affected by this vulnerability. Simply upload your manifest file, such as package-lock.json, and Vulert will provide real-time alerts for open-source vulnerabilities.
No, only versions prior to 8.2 are affected by this vulnerability. It is crucial to update to version 8.2.4619-r0 or later to address the issue.
No, there is no known workaround for this vulnerability. Updating to the fixed version is the recommended solution.
You can find more information about this vulnerability in the CVE-2022-0572 JSON report at https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0572.json
Related vulnerabilities
Recent vulnerabilities recorded for vim.