CVE-2022-0213
published 2022-01-14CVE-2022-0213: Heap-based Buffer Overflow in vim/vim vim is vulnerable to Heap-based Buffer Overflow
medium6.6CVSS 3.1
AVLACLPRNUIRSUCLILAH
EPSS
1.24%
65.6th percentile
Heap-based Buffer Overflow in vim/vim
vim is vulnerable to Heap-based Buffer Overflow
Affected
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | vim | < vim 2:8.2.4659-1 (bookworm) | vim 2:8.2.4659-1 (bookworm) |
| 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+esm5 | 2:7.4.1689-3ubuntu1.5+esm5 |
| vim | vim_vim | >= unspecified < 8.2 | 8.2 |
CVSS provenance
nvdv3.16.6MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
nvdv3.06.8MEDIUMCVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
cvelistv56.6MEDIUM
osv7.1HIGH
cisa7.3HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.1HIGH
vendor_debian6.6LOW
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-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-06-02·CVSS 5.5
CVE-2021-4193 [MEDIUM] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim was incorrectly handling virtual column
position operations, which could result in an out-of-bounds read. An
attacker could possibly use this issue to expose sensitive
information. (CVE-2021-4193)
It was discovered that Vim was not properly performing bounds checks
when updating windows present on a screen, which could result in a
heap buffer overflow. An attacker could possibly use this issue to
cause a denial of service or execute arbitrary code. (CVE-2022-0213)
It was discovered that Vim was incorrectly handling window
exchanging operations when in Visual mode, which could result in an
out-of-bounds read. An attacker could possibly use this issue to
expose sensitive information. (CVE-2022-0319)
It was discovered that Vim was incorrectly
CVEList
Heap-based Buffer Overflow in vim/vim
cvelistv5·2022-01-14·CVSS 6.6
CVE-2022-0213 [MEDIUM] CWE-122 Heap-based Buffer Overflow in vim/vim
Heap-based Buffer Overflow in vim/vim
vim is vulnerable to Heap-based Buffer Overflow
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
Red Hat
vim: heap use-after-free in string_quote() at src/strings.c
vendor_redhat·2022-08-12·CVSS 7.8
CVE-2022-2817 [HIGH] CWE-416 vim: heap use-after-free in string_quote() at src/strings.c
vim: heap use-after-free in string_quote() at src/strings.c
Use After Free in GitHub repository vim/vim prior to 9.0.0213.
A use-after-free vulnerability was found in Vim in the string_quote function in the strings.c file. This issue occurs because an already freed memory is used when a specially crafted input is processed. This flaw allows an attacker who can trick a user into opening a specially crafted file into triggering the use-after-free, causing the application to crash, possibly executing code and corrupting memory.
Statement: Red Hat Product Security has rated this issue as having a Low security impact because the user has to run an untrusted file IN SCRIPT MODE. Someone who is running untrusted files in script mode is equivalent to someone just taking a random python script a
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2022-06-02·CVSS 5.5
CVE-2022-0361 [MEDIUM] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim was incorrectly handling virtual column
position operations, which could result in an out-of-bounds read. An
attacker could possibly use this issue to expose sensitive
information. (CVE-2021-4193)
It was discovered that Vim was not properly performing bounds checks
when updating windows present on a screen, which could result in a
heap buffer overflow. An attacker could possibly use this issue to
cause a denial of service or execute arbitrary code. (CVE-2022-0213)
It was discovered that Vim was incorrectly handling window
exchanging operations when in Visual mode, which could result in an
out-of-bounds read. An attacker could possibly use this issue to
expose sensitive information.
CISA
Microsoft Windows Privilege Escalation Vulnerability
cisa·2022-03-28·CVSS 7.3
CVE-2017-0213 [HIGH] Microsoft Windows Privilege Escalation Vulnerability
Vulnerability: Microsoft Windows Privilege Escalation Vulnerability
Affected: Microsoft Windows
Microsoft Windows COM Aggregate Marshaler allows for privilege escalation when an attacker runs a specially crafted application.
Required Action: Apply updates per vendor instructions.
Notes: https://nvd.nist.gov/vuln/detail/CVE-2017-0213
Remediation Due Date: 2022-04-18
Red Hat
vim: vim is vulnerable to out of bounds read
vendor_redhat·2022-01-12·CVSS 6.6
CVE-2022-0213 [MEDIUM] CWE-125 vim: vim is vulnerable to out of bounds read
vim: vim is vulnerable to out of bounds read
vim is vulnerable to Heap-based Buffer Overflow
A flaw was found in vim. The vulnerability occurs due to not checking the length for the NameBuff 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 8) - Not affected
Package: vim (Red Hat Enterprise Linux 9) - Fix deferred
Debian
CVE-2022-0213: vim - vim is vulnerable to Heap-based Buffer Overflow
vendor_debian·2022·CVSS 6.6
CVE-2022-0213 [MEDIUM] CVE-2022-0213: vim - vim is vulnerable to Heap-based Buffer Overflow
vim is vulnerable to Heap-based Buffer Overflow
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)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2022-01-14
Published