Stack-based Buffer Overflow in vim/vim
Summary
CVE-2022-0408: Stack-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 supports a wide range of features. However, prior to version 8.2, vim is vulnerable to a stack-based buffer overflow.
Vulnerability Detail
The vulnerability (CVE-2022-0408) originates from a stack-based buffer overflow in the GitHub repository vim/vim. This vulnerability can be exploited by an attacker to execute arbitrary code or crash the application. The impact of this vulnerability is severe, as it allows an attacker to gain control over the affected system or cause a denial of service. The CVSS score for this vulnerability is 7.8.
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 crucial to update to the fixed version as soon as possible.
Conclusion
In conclusion, the stack-based buffer overflow vulnerability in vim/vim (CVE-2022-0408) poses a significant risk to systems running vulnerable versions. It is crucial to update to version 8.2.4619-r0 or later to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for vim →
FAQ
This vulnerability allows an attacker to execute arbitrary code or crash the application, potentially leading to a complete compromise of the affected system or denial of service.
You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and Vulert will provide real-time alerts for open-source vulnerabilities.
No, there is no known workaround for this vulnerability. It is crucial to update to the fixed version as soon as possible.
The CVSS score for this vulnerability is 7.8, indicating a high severity.
You can find more information about this vulnerability in the CVE-2022-0408 JSON report available at https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0408.json.
Related vulnerabilities
Recent vulnerabilities recorded for vim.