CVE-2022-0407
published 2022-01-30CVE-2022-0407: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
PriorityP434high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
1.16%
63.2th percentile
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
Affected
13 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | vim | < vim 2:8.2.4659-1 (bookworm) | vim 2:8.2.4659-1 (bookworm) |
| msrc | cbl2_vim_8.2.4233-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_1.0_arm | — | — |
| msrc | cbl_mariner_1.0_x64 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| msrc | cm1_vim_8.2.4281-1_on_cbl_mariner_1.0 | — | — |
| vim | vim | < 8.2.4219 | 8.2.4219 |
| vim | vim | >= 0 < 2:8.2.4659-1 | 2:8.2.4659-1 |
| vim | vim | >= 0 < 2:8.2.4659-1 | 2:8.2.4659-1 |
| vim | vim | >= 0 < 2:8.2.4659-1 | 2:8.2.4659-1 |
| vim | vim | >= 0 < 2:8.2.3995-1ubuntu2.9 | 2:8.2.3995-1ubuntu2.9 |
| vim | vim_vim | >= unspecified < 8.2 | 8.2 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv3.05.7MEDIUMCVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8LOW
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2023-07-03·CVSS 7.8
CVE-2022-0696 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim contained an out-of-bounds read vulnerability.
An attacker could possibly use this issue to cause a denial of service or
execute arbitrary code. (CVE-2022-0128)
It was discovered that Vim did not properly manage memory when freeing
allocated memory. An attacker could possibly use this issue to cause a
denial of service or execute arbitrary code. (CVE-2022-0156)
It was discovered that Vim contained a heap-based buffer overflow
vulnerability. An attacker could possibly use this issue to cause a denial
of service or execute arbitrary code. (CVE-2022-0158)
It was discovered that Vim did not properly manage memory when recording
and using select mode. An attacker could possibly use thi
Red Hat
vim: heap-based buffer overflow on read in yank_copy_line
vendor_redhat·2022-01-30·CVSS 7.8
CVE-2022-0407 [HIGH] CWE-787 vim: heap-based buffer overflow on read in yank_copy_line
vim: heap-based buffer overflow on read in yank_copy_line
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
A flaw was found in vim. The vulnerability occurs due to the read operation before the start of the line and leads to a heap buffer overflow. This flaw allows an attacker to input a specially crafted file, leading to a crash or code execution.
Mitigation: Untrusted vim scripts with -s [scriptin] are not recommended to run.
Package: vim (Red Hat Enterprise Linux 6) - Not affected
Package: vim (Red Hat Enterprise Linux 7) - Not affected
Package: vim (Red Hat Enterprise Linux 8) - Not affected
Package: vim (Red Hat Enterprise Linux 9) - Not affected
Microsoft
Heap-based Buffer Overflow in vim/vim
vendor_msrc·2022-01-11·CVSS 7.8
CVE-2022-0407 [HIGH] CWE-122 Heap-based Buffer Overflow in vim/vim
Heap-based Buffer Overflow in vim/vim
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
@huntrdev: @huntrdev
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft
Debian
CVE-2022-0407: vim - Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
vendor_debian·2022·CVSS 7.8
CVE-2022-0407 [HIGH] CVE-2022-0407: vim - Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
Scope: local
bookworm: resolved (fixed in 2:8.2.4659-1)
bullseye: open
forky: resolved (fixed in 2:8.2.4659-1)
sid: resolved (fixed in 2:8.2.4659-1)
trixie: resolved (fixed in 2:8.2.4659-1)
OSV
vim vulnerabilities
osv·2023-07-03·CVSS 7.8
CVE-2022-0128 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim contained an out-of-bounds read vulnerability.
An attacker could possibly use this issue to cause a denial of service or
execute arbitrary code. (CVE-2022-0128)
It was discovered that Vim did not properly manage memory when freeing
allocated memory. An attacker could possibly use this issue to cause a
denial of service or execute arbitrary code. (CVE-2022-0156)
It was discovered that Vim contained a heap-based buffer overflow
vulnerability. An attacker could possibly use this issue to cause a denial
of service or execute arbitrary code. (CVE-2022-0158)
It was discovered that Vim did not properly manage memory when recording
and using select mode. An attacker could possibly use this issue to cause
a denial of service. (CVE-2022-0393)
It wa
GHSA
GHSA-7qcx-j2px-v82h: Heap-based Buffer Overflow in Conda vim prior to 8
ghsa_unreviewed·2022-02-15
CVE-2022-0407 [HIGH] CWE-122 GHSA-7qcx-j2px-v82h: Heap-based Buffer Overflow in Conda vim prior to 8
Heap-based Buffer Overflow in Conda vim prior to 8.2.
OSV
CVE-2022-0407: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8
osv·2022-01-30·CVSS 7.8
CVE-2022-0407 [HIGH] CVE-2022-0407: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/vim/vim/commit/44db8213d38c39877d2148eff6a72f4beccfb94ehttps://huntr.dev/bounties/81822bf7-aafe-4d37-b836-1255d46e572chttps://security.gentoo.org/glsa/202208-32https://github.com/vim/vim/commit/44db8213d38c39877d2148eff6a72f4beccfb94ehttps://huntr.dev/bounties/81822bf7-aafe-4d37-b836-1255d46e572chttps://security.gentoo.org/glsa/202208-32
2022-01-30
Published