CVE-2022-0318
published 2022-01-21CVE-2022-0318: Heap-based Buffer Overflow in vim/vim prior to 8.2.
PriorityP348critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
2.09%
79.2th percentile
Heap-based Buffer Overflow in vim/vim prior to 8.2.
Affected
17 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apple | macos | < 13.0 | 13.0 |
| apple | macos_monterey | — | — |
| apple | macos_ventura | — | — |
| debian | debian_linux | — | — |
| 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 | cm1_vim_8.2.4151-1_on_cbl_mariner_1.0 | — | — |
| vim | vim | < 8.2.4151 | 8.2.4151 |
| 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.13 | 2:8.0.1453-1ubuntu1.13 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.14 | 2:8.1.2269-1ubuntu5.14 |
| vim | vim | >= 0 < 2:8.2.3995-1ubuntu2.7 | 2:8.2.3995-1ubuntu2.7 |
| vim | vim | >= 0 < 2:7.4.052-1ubuntu3.1+esm9 | 2:7.4.052-1ubuntu3.1+esm9 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5+esm4 | 2:7.4.1689-3ubuntu1.5+esm4 |
| vim | vim_vim | >= unspecified < 8.2 | 8.2 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv3.06.6MEDIUMCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8LOW
vendor_msrc9.8CRITICAL
vendor_redhat9.8CRITICAL
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-04-19·CVSS 7.1
CVE-2022-0729 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim was incorrectly processing Vim buffers. An
attacker could possibly use this issue to perform illegal memory access and
expose sensitive information. This issue only affected Ubuntu 20.04 LTS.
(CVE-2021-4166)
It was discovered that Vim was using freed memory when dealing with regular
expressions inside a visual selection. If a user were tricked into opening a
specially crafted file, an attacker could crash the application, leading to a
denial of service, or possibly achieve code execution with user privileges.
This issue only affected Ubuntu 14.04 ESM, Ubuntu 18.04 LTS and Ubuntu
20.04 LTS. (CVE-2021-4192)
It was discovered that Vim was incorrectly handling virtual column position
o
Apple
CVE-2022-0318: macOS Ventura 13
vendor_apple·2022-10-24·CVSS 9.8
CVE-2022-0318 [CRITICAL] CVE-2022-0318: macOS Ventura 13
Apple Security Update: About the security content of macOS Ventura 13
Product: macOS Ventura
Version: 13
CVE: CVE-2022-0318
Component: CVE-2022-0318
Apple
CVE-2022-0318: macOS Monterey 12.6
vendor_apple·2022-09-12·CVSS 9.8
CVE-2022-0318 [CRITICAL] CVE-2022-0318: macOS Monterey 12.6
Apple Security Update: About the security content of macOS Monterey 12.6
Product: macOS Monterey
Version: 12.6
CVE: CVE-2022-0318
Component: CVE-2022-0318
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2022-05-23·CVSS 7.8
CVE-2022-0261 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim incorrectly handled parsing of filenames in its
search functionality. If a user were tricked into opening a specially crafted
file, an attacker could crash the application, leading to a denial of
service. (CVE-2021-3973)
It was discovered that Vim incorrectly handled memory when opening and
searching the contents of certain files. If a user were tricked into opening
a specially crafted file, an attacker could crash the application, leading to
a denial of service, or possibly achieve code execution with user privileges.
(CVE-2021-3974)
It was discovered that Vim incorrectly handled memory when opening and editing
certain files. If a user were tricked into opening a specially crafted
Red Hat
vim: Heap-based buffer overflow in utf_head_off() in mbyte.c
vendor_redhat·2022-01-18·CVSS 9.8
CVE-2022-0318 [CRITICAL] CWE-787 vim: Heap-based buffer overflow in utf_head_off() in mbyte.c
vim: Heap-based buffer overflow in utf_head_off() in mbyte.c
Heap-based Buffer Overflow in vim/vim prior to 8.2.
A flaw was found in vim. The vulnerability occurs due to reading beyond the end of a line in the utf_head_off function, which can lead 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 9) - Not affected
Microsoft
Heap-based Buffer Overflow in vim/vim
vendor_msrc·2022-01-11·CVSS 9.8
CVE-2022-0318 [CRITICAL] CWE-787 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-0318: vim - Heap-based Buffer Overflow in vim/vim prior to 8.2.
vendor_debian·2022·CVSS 9.8
CVE-2022-0318 [CRITICAL] CVE-2022-0318: vim - Heap-based Buffer Overflow in vim/vim prior to 8.2.
Heap-based Buffer Overflow in 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-04-19·CVSS 7.1
CVE-2021-4166 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim was incorrectly processing Vim buffers. An
attacker could possibly use this issue to perform illegal memory access and
expose sensitive information. This issue only affected Ubuntu 20.04 LTS.
(CVE-2021-4166)
It was discovered that Vim was using freed memory when dealing with regular
expressions inside a visual selection. If a user were tricked into opening a
specially crafted file, an attacker could crash the application, leading to a
denial of service, or possibly achieve code execution with user privileges.
This issue only affected Ubuntu 14.04 ESM, Ubuntu 18.04 LTS and Ubuntu
20.04 LTS. (CVE-2021-4192)
It was discovered that Vim was incorrectly handling virtual column position
operations, which could result in an out-of-bounds read. An a
OSV
vim vulnerabilities
osv·2022-05-23·CVSS 7.8
CVE-2021-3973 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim incorrectly handled parsing of filenames in its
search functionality. If a user were tricked into opening a specially crafted
file, an attacker could crash the application, leading to a denial of
service. (CVE-2021-3973)
It was discovered that Vim incorrectly handled memory when opening and
searching the contents of certain files. If a user were tricked into opening
a specially crafted file, an attacker could crash the application, leading to
a denial of service, or possibly achieve code execution with user privileges.
(CVE-2021-3974)
It was discovered that Vim incorrectly handled memory when opening and editing
certain files. If a user were tricked into opening a specially crafted file,
an attacker could crash the application, leading to a
GHSA
GHSA-j89m-7g9m-fcmj: Heap-based Buffer Overflow in vim/vim prior to 8
ghsa_unreviewed·2022-01-22
CVE-2022-0318 [CRITICAL] CWE-122 GHSA-j89m-7g9m-fcmj: Heap-based Buffer Overflow in vim/vim prior to 8
Heap-based Buffer Overflow in vim/vim prior to 8.2.
OSV
CVE-2022-0318: Heap-based Buffer Overflow in vim/vim prior to 8
osv·2022-01-21·CVSS 9.8
CVE-2022-0318 [CRITICAL] CVE-2022-0318: Heap-based Buffer Overflow in vim/vim prior to 8
Heap-based Buffer Overflow in vim/vim prior to 8.2.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
http://seclists.org/fulldisclosure/2022/Oct/28http://seclists.org/fulldisclosure/2022/Oct/41http://seclists.org/fulldisclosure/2022/Oct/43https://github.com/vim/vim/commit/57df9e8a9f9ae1aafdde9b86b10ad907627a87dchttps://huntr.dev/bounties/0d10ba02-b138-4e68-a284-67f781a62d08https://lists.debian.org/debian-lts-announce/2022/11/msg00032.htmlhttps://security.gentoo.org/glsa/202208-32https://support.apple.com/kb/HT213444https://support.apple.com/kb/HT213488http://seclists.org/fulldisclosure/2022/Oct/28http://seclists.org/fulldisclosure/2022/Oct/41http://seclists.org/fulldisclosure/2022/Oct/43https://github.com/vim/vim/commit/57df9e8a9f9ae1aafdde9b86b10ad907627a87dchttps://huntr.dev/bounties/0d10ba02-b138-4e68-a284-67f781a62d08https://lists.debian.org/debian-lts-announce/2022/11/msg00032.htmlhttps://security.gentoo.org/glsa/202208-32https://security.netapp.com/advisory/ntap-20241115-0004/https://support.apple.com/kb/HT213444https://support.apple.com/kb/HT213488
2022-01-21
Published