CVE-2022-2522
published 2022-07-25CVE-2022-2522: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0061.
PriorityP433high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
0.55%
41.9th percentile
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0061.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | vim | < vim 2:9.0.0135-1 (bookworm) | vim 2:9.0.0135-1 (bookworm) |
| msrc | cbl2_vim_9.0.0325-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_vim_9.0.0181-1_on_cbl_mariner_1.0 | — | — |
| vim | vim | < 9.0.0061 | 9.0.0061 |
| vim | vim | >= 0 < 2:9.0.0135-1 | 2:9.0.0135-1 |
| vim | vim | >= 0 < 2:9.0.0135-1 | 2:9.0.0135-1 |
| vim | vim | >= 0 < 2:9.0.0135-1 | 2:9.0.0135-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:8.0.1453-1ubuntu1.13+esm4 | 2:8.0.1453-1ubuntu1.13+esm4 |
| vim | vim_vim | >= unspecified < 9.0.0061 | 9.0.0061 |
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.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.
VulDB
vim up to 9.0.0046 heap-based overflow (EUVD-2022-34779)
vuldb·2026-05-26·CVSS 7.8
CVE-2022-2522 [HIGH] vim up to 9.0.0046 heap-based overflow (EUVD-2022-34779)
A vulnerability was found in vim. It has been classified as critical. The affected element is an unknown function. Performing a manipulation results in heap-based buffer overflow.
This vulnerability is known as CVE-2022-2522. Remote exploitation of the attack is possible. No exploit is available.
Upgrading the affected component is recommended.
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
GHSA
GHSA-3c2j-x8m7-hrhp: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9
ghsa_unreviewed·2022-07-26
CVE-2022-2522 [HIGH] CWE-122 GHSA-3c2j-x8m7-hrhp: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0060.
OSV
CVE-2022-2522: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9
osv·2022-07-25·CVSS 7.8
CVE-2022-2522 [HIGH] CVE-2022-2522: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0061.
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
Red Hat
vim: heap-based buffer overflow in ins_compl_infercase_gettext() at src/insexpand.c
vendor_redhat·2022-07-25·CVSS 7.8
CVE-2022-2522 [HIGH] CWE-122 vim: heap-based buffer overflow in ins_compl_infercase_gettext() at src/insexpand.c
vim: heap-based buffer overflow in ins_compl_infercase_gettext() at src/insexpand.c
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0061.
A heap buffer overflow vulnerability was found in vim's ins_compl_infercase_gettext() function of the src/insexpand.c file. This flaw occurs when vim tries to access uninitialized memory when completing a long line. This flaw allows an attacker to trick a user into opening a specially crafted file, triggering a heap-based buffer overflow 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 eq
Microsoft
Heap-based Buffer Overflow in vim/vim
vendor_msrc·2022-07-12·CVSS 7.8
CVE-2022-2522 [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
libtiff: Invalid pointer free operation in TIFFClose() at tif_close.c
vendor_redhat·2022-05-22·CVSS 6.5
CVE-2022-2521 [MEDIUM] CWE-763 libtiff: Invalid pointer free operation in TIFFClose() at tif_close.c
libtiff: Invalid pointer free operation in TIFFClose() at tif_close.c
It was found in libtiff 4.4.0rc1 that there is an invalid pointer free operation in TIFFClose() at tif_close.c:131 called by tiffcrop.c:2522 that can cause a program crash and denial of service while processing crafted input.
Package: libtiff (Red Hat Enterprise Linux 6) - Out of support scope
Package: compat-libtiff3 (Red Hat Enterprise Linux 7) - Out of support scope
Package: libtiff (Red Hat Enterprise Linux 7) - Out of support scope
Package: compat-libtiff3 (Red Hat Enterprise Linux 8) - Fix deferred
Debian
CVE-2022-2522: vim - Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0061.
vendor_debian·2022·CVSS 7.8
CVE-2022-2522 [HIGH] CVE-2022-2522: vim - Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0061.
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.0061.
Scope: local
bookworm: resolved (fixed in 2:9.0.0135-1)
bullseye: open
forky: resolved (fixed in 2:9.0.0135-1)
sid: resolved (fixed in 2:9.0.0135-1)
trixie: resolved (fixed in 2:9.0.0135-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/vim/vim/commit/5fa9f23a63651a8abdb074b4fc2ec9b1adc6b089https://github.com/vim/vim/commit/b9e717367c395490149495cf375911b5d9de889ehttps://huntr.dev/bounties/3a2d83af-9542-4d93-8784-98b115135a22https://huntr.dev/bounties/3a2d83af-9542-4d93-8784-98b115135a22/https://security.gentoo.org/glsa/202305-16https://github.com/vim/vim/commit/5fa9f23a63651a8abdb074b4fc2ec9b1adc6b089https://github.com/vim/vim/commit/b9e717367c395490149495cf375911b5d9de889ehttps://huntr.dev/bounties/3a2d83af-9542-4d93-8784-98b115135a22https://huntr.dev/bounties/3a2d83af-9542-4d93-8784-98b115135a22/https://security.gentoo.org/glsa/202305-16
2022-07-25
Published