CVE-2022-3099
published 2022-09-03CVE-2022-3099: Use After Free in GitHub repository vim/vim prior to 9.0.0360.
PriorityP433high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
0.46%
36.8th percentile
Use After Free in GitHub repository vim/vim prior to 9.0.0360.
Affected
18 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | vim | < vim 2:9.0.0626-1 (bookworm) | vim 2:9.0.0626-1 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| msrc | cbl2_vim_9.0.0490-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_vim_9.0.0360-1_on_cbl_mariner_1.0 | — | — |
| vim | vim | < 9.0.0360 | 9.0.0360 |
| vim | vim | >= 0 < 2:8.2.2434-3+deb11u2 | 2:8.2.2434-3+deb11u2 |
| vim | vim | >= 0 < 2:9.0.0626-1 | 2:9.0.0626-1 |
| vim | vim | >= 0 < 2:9.0.0626-1 | 2:9.0.0626-1 |
| vim | vim | >= 0 < 2:9.0.0626-1 | 2:9.0.0626-1 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.17 | 2:8.1.2269-1ubuntu5.17 |
| vim | vim | >= 0 < 2:8.2.3995-1ubuntu2.11 | 2:8.2.3995-1ubuntu2.11 |
| vim | vim | >= 0 < 2:7.4.052-1ubuntu3.1+esm12 | 2:7.4.052-1ubuntu3.1+esm12 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5+esm14 | 2:7.4.1689-3ubuntu1.5+esm14 |
| vim | vim | >= 0 < 2:8.0.1453-1ubuntu1.13+esm4 | 2:8.0.1453-1ubuntu1.13+esm4 |
| vim | vim_vim | >= unspecified < 9.0.0360 | 9.0.0360 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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.
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2023-08-21·CVSS 7.8
CVE-2022-2580 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim incorrectly handled memory when opening certain
files. If an attacker could trick a user into opening a specially crafted
file, it could cause Vim to crash, or possibly execute arbitrary code. This
issue only affected Ubuntu 22.04 LTS. (CVE-2022-2522, CVE-2022-2580,
CVE-2022-2817, CVE-2022-2819, CVE-2022-2862, CVE-2022-2889, CVE-2022-2982,
CVE-2022-3134)
It was discovered that Vim did not properly perform bounds checks in the
diff mode in certain situations. An attacker could possibly use this issue
to cause a denial of service. This issue only affected Ubuntu 18.04 LTS,
Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-2598)
It was discovered that Vim did not properly perform bound
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2022-12-12·CVSS 7.8
CVE-2022-3591 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim uses freed memory in recurisve substitution of
specially crafted patterns. An attacker could possbly use this to crash Vim
and cause denial of service. (CVE-2022-2345)
It was discovered that Vim makes illegal memory calls when patterns start
with an illegal byte. An attacker could possibly use this to crash Vim,
access or modify memory, or execute arbitrary commands. (CVE-2022-2581)
It was discovered that Vim could be made to crash when parsing invalid line
numbers. An attacker could possbly use this to crash Vim and cause denial
of service. (CVE-2022-3099)
It was discovered that Vim uses freed memory when autocmd changes a mark.
An attacker could possbly use this to crash Vim and
Microsoft
Use After Free in vim/vim
vendor_msrc·2022-09-13·CVSS 7.8
CVE-2022-3099 [HIGH] CWE-416 Use After Free in vim/vim
Use After Free 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.com/en-us/a
Red Hat
vim: Use After Free in do_cmdline() in ex_docmd.c
vendor_redhat·2022-09-03·CVSS 7.8
CVE-2022-3099 [HIGH] CWE-416 vim: Use After Free in do_cmdline() in ex_docmd.c
vim: Use After Free in do_cmdline() in ex_docmd.c
Use After Free in GitHub repository vim/vim prior to 9.0.0360.
A use-after-free vulnerability was found in vim's do_cmdline() function of the src/ex_docmd.c file. The issue triggers when an invalid line number on :for is ignored. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering use-after-free that causes an 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 "victim" 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 and running it.
For additional information, refer to
Debian
CVE-2022-3099: vim - Use After Free in GitHub repository vim/vim prior to 9.0.0360.
vendor_debian·2022·CVSS 7.8
CVE-2022-3099 [HIGH] CVE-2022-3099: vim - Use After Free in GitHub repository vim/vim prior to 9.0.0360.
Use After Free in GitHub repository vim/vim prior to 9.0.0360.
Scope: local
bookworm: resolved (fixed in 2:9.0.0626-1)
bullseye: resolved (fixed in 2:8.2.2434-3+deb11u2)
forky: resolved (fixed in 2:9.0.0626-1)
sid: resolved (fixed in 2:9.0.0626-1)
trixie: resolved (fixed in 2:9.0.0626-1)
OSV
vim vulnerabilities
osv·2023-08-21·CVSS 7.8
CVE-2022-2522 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim incorrectly handled memory when opening certain
files. If an attacker could trick a user into opening a specially crafted
file, it could cause Vim to crash, or possibly execute arbitrary code. This
issue only affected Ubuntu 22.04 LTS. (CVE-2022-2522, CVE-2022-2580,
CVE-2022-2817, CVE-2022-2819, CVE-2022-2862, CVE-2022-2889, CVE-2022-2982,
CVE-2022-3134)
It was discovered that Vim did not properly perform bounds checks in the
diff mode in certain situations. An attacker could possibly use this issue
to cause a denial of service. This issue only affected Ubuntu 18.04 LTS,
Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-2598)
It was discovered that Vim did not properly perform bounds checks in
certain situations. An attacker could possibly u
OSV
vim vulnerabilities
osv·2022-12-12·CVSS 7.8
CVE-2022-2345 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim uses freed memory in recurisve substitution of
specially crafted patterns. An attacker could possbly use this to crash Vim
and cause denial of service. (CVE-2022-2345)
It was discovered that Vim makes illegal memory calls when patterns start
with an illegal byte. An attacker could possibly use this to crash Vim,
access or modify memory, or execute arbitrary commands. (CVE-2022-2581)
It was discovered that Vim could be made to crash when parsing invalid line
numbers. An attacker could possbly use this to crash Vim and cause denial
of service. (CVE-2022-3099)
It was discovered that Vim uses freed memory when autocmd changes a mark.
An attacker could possbly use this to crash Vim and cause denial of
service. (CVE-2022-3256)
It was discovered
GHSA
GHSA-c33c-6hj9-gf9j: Use After Free in GitHub repository vim/vim prior to 9
ghsa_unreviewed·2022-09-04
CVE-2022-3099 [HIGH] CWE-416 GHSA-c33c-6hj9-gf9j: Use After Free in GitHub repository vim/vim prior to 9
Use After Free in GitHub repository vim/vim prior to 9.0.0359.
OSV
CVE-2022-3099: Use After Free in GitHub repository vim/vim prior to 9
osv·2022-09-03·CVSS 7.8
CVE-2022-3099 [HIGH] CVE-2022-3099: Use After Free in GitHub repository vim/vim prior to 9
Use After Free in GitHub repository vim/vim prior to 9.0.0360.
No detection rules found.
No public exploits indexed.
https://github.com/vim/vim/commit/35d21c6830fc2d68aca838424a0e786821c5891chttps://huntr.dev/bounties/403210c7-6cc7-4874-8934-b57f88bd4f5ehttps://lists.debian.org/debian-lts-announce/2022/11/msg00009.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DVWBI4BVTBUMNW4NMB3WZZDQJBKIGXI3/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LLK2RMZEECKKWUQK7J46D2FQZOXFQLTC/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/https://security.gentoo.org/glsa/202305-16https://github.com/vim/vim/commit/35d21c6830fc2d68aca838424a0e786821c5891chttps://huntr.dev/bounties/403210c7-6cc7-4874-8934-b57f88bd4f5ehttps://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/DVWBI4BVTBUMNW4NMB3WZZDQJBKIGXI3/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LLK2RMZEECKKWUQK7J46D2FQZOXFQLTC/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/https://security.gentoo.org/glsa/202305-16
2022-09-03
Published