CVE-2022-0417
published 2022-02-01CVE-2022-0417: Heap-based Buffer Overflow GitHub repository vim/vim prior to 8.2.
PriorityP335high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
1.54%
71.8th percentile
Heap-based Buffer Overflow GitHub repository vim/vim prior to 8.2.
Affected
16 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | vim | < vim 2:8.2.4659-1 (bookworm) | vim 2:8.2.4659-1 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| msrc | cbl2_vim_8.2.4743-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_vim_8.2.4281-1_on_cbl_mariner_1.0 | — | — |
| vim | vim | < 8.2.4245 | 8.2.4245 |
| vim | vim | >= 0 < 2:8.2.2434-3+deb11u2 | 2:8.2.2434-3+deb11u2 |
| 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.0.1453-1ubuntu1.10 | 2:8.0.1453-1ubuntu1.10 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.11 | 2:8.1.2269-1ubuntu5.11 |
| vim | vim | >= 0 < 2:8.2.3995-1ubuntu2.3 | 2:8.2.3995-1ubuntu2.3 |
| 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.08.4HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8HIGH
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.
OSV
vim vulnerabilities
osv·2023-01-12·CVSS 7.8
CVE-2022-0392 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim makes illegal memory calls when pasting
brackets in Ex mode. An attacker could possibly use this to crash Vim,
access or modify memory, or execute arbitrary commands. This issue
affected only Ubuntu 20.04 and 22.04 (CVE-2022-0392)
It was discovered that Vim makes illegal memory calls when making
certain retab calls. An attacker could possibly use this to crash Vim,
access or modify memory, or execute arbitrary commands. (CVE-2022-0417)
GHSA
GHSA-cj93-q2w3-fjxc: Heap-based Buffer Overflow in Conda vim prior to 8
ghsa_unreviewed·2022-02-12
CVE-2022-0417 [HIGH] CWE-122 GHSA-cj93-q2w3-fjxc: Heap-based Buffer Overflow in Conda vim prior to 8
Heap-based Buffer Overflow in Conda vim prior to 8.2.
OSV
CVE-2022-0417: Heap-based Buffer Overflow GitHub repository vim/vim prior to 8
osv·2022-02-01·CVSS 7.8
CVE-2022-0417 [HIGH] CVE-2022-0417: Heap-based Buffer Overflow GitHub repository vim/vim prior to 8
Heap-based Buffer Overflow GitHub repository vim/vim prior to 8.2.
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2023-01-12·CVSS 7.8
CVE-2022-0392 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim makes illegal memory calls when pasting
brackets in Ex mode. An attacker could possibly use this to crash Vim,
access or modify memory, or execute arbitrary commands. This issue
affected only Ubuntu 20.04 and 22.04 (CVE-2022-0392)
It was discovered that Vim makes illegal memory calls when making
certain retab calls. An attacker could possibly use this to crash Vim,
access or modify memory, or execute arbitrary commands. (CVE-2022-0417)
Instructions: In general, a standard system update will make all the necessary changes.
Microsoft
Heap-based Buffer Overflow in vim/vim
vendor_msrc·2022-02-08·CVSS 7.8
CVE-2022-0417 [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
Red Hat
vim: heap-based-buffer-overflow in ex_retab() of src/indent.c
vendor_redhat·2022-02-01·CVSS 7.8
CVE-2022-0417 [HIGH] CWE-787 vim: heap-based-buffer-overflow in ex_retab() of src/indent.c
vim: heap-based-buffer-overflow in ex_retab() of src/indent.c
Heap-based Buffer Overflow GitHub repository vim/vim prior to 8.2.
A flaw was found in vim. The vulnerability occurs due to illegal memory access 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
Debian
CVE-2022-0417: vim - Heap-based Buffer Overflow GitHub repository vim/vim prior to 8.2.
vendor_debian·2022·CVSS 7.8
CVE-2022-0417 [HIGH] CVE-2022-0417: vim - Heap-based Buffer Overflow GitHub repository vim/vim prior to 8.2.
Heap-based Buffer Overflow GitHub repository vim/vim prior to 8.2.
Scope: local
bookworm: resolved (fixed in 2:8.2.4659-1)
bullseye: resolved (fixed in 2:8.2.2434-3+deb11u2)
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)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/vim/vim/commit/652dee448618589de5528a9e9a36995803f5557ahttps://huntr.dev/bounties/fc86bc8d-c866-4ade-8b7f-e49cec306d1ahttps://lists.debian.org/debian-lts-announce/2022/06/msg00014.htmlhttps://lists.debian.org/debian-lts-announce/2022/11/msg00009.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7ZLEHVP4LNAGER4ZDGUDS5V5YVQD6INF/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UFXFAILMLUIK4MBUEZO4HNBNKYZRJ5AP/https://security.gentoo.org/glsa/202208-32https://github.com/vim/vim/commit/652dee448618589de5528a9e9a36995803f5557ahttps://huntr.dev/bounties/fc86bc8d-c866-4ade-8b7f-e49cec306d1ahttps://lists.debian.org/debian-lts-announce/2022/06/msg00014.htmlhttps://lists.debian.org/debian-lts-announce/2022/11/msg00009.htmlhttps://lists.debian.org/debian-lts-announce/2025/03/msg00023.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7ZLEHVP4LNAGER4ZDGUDS5V5YVQD6INF/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UFXFAILMLUIK4MBUEZO4HNBNKYZRJ5AP/https://security.gentoo.org/glsa/202208-32
2022-02-01
Published