CVE-2022-2874
published 2022-08-18CVE-2022-2874: NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0224.
PriorityP416medium5.5CVSS 3.1
AVLACLPRNUIRSUCNINAH
EPSS
0.45%
36.3th percentile
NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0224.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | vim | < vim 2:9.0.0229-1 (bookworm) | vim 2:9.0.0229-1 (bookworm) |
| msrc | cbl2_vim_9.0.0325-1_on_cbl_mariner_2.0 | — | — |
| msrc | cm1_vim_9.0.0360-1_on_cbl_mariner_1.0 | — | — |
| vim | vim | < 9.0.0224 | 9.0.0224 |
| vim | vim | >= 0 < 2:9.0.0229-1 | 2:9.0.0229-1 |
| vim | vim | >= 0 < 2:9.0.0229-1 | 2:9.0.0229-1 |
| vim | vim | >= 0 < 2:9.0.0229-1 | 2:9.0.0229-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.0224 | 9.0.0224 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvdv3.06.6MEDIUMCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
osv7.8HIGH
vendor_ubuntu7.8HIGH
vendor_debian5.5LOW
vendor_msrc5.5MEDIUM
vendor_redhat5.5MEDIUM
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
Red Hat
vim: NULL pointer dereference in generate_loadvar() in vim9compile.c
vendor_redhat·2022-08-16·CVSS 5.5
CVE-2022-2874 [MEDIUM] CWE-476 vim: NULL pointer dereference in generate_loadvar() in vim9compile.c
vim: NULL pointer dereference in generate_loadvar() in vim9compile.c
NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0224.
A NULL pointer dereference vulnerability was found in Vim in the generate_loadvar function in the vim9compile.c file. This flaw allows an attacker who can trick a user into processing a specially crafted file to trigger the NULL pointer dereference, causing the application to crash.
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 and running it.
For additional information, refer to the Issue Severity Classification: https://access.red
Microsoft
NULL Pointer Dereference in vim/vim
vendor_msrc·2022-08-09·CVSS 5.5
CVE-2022-2874 [MEDIUM] CWE-476 NULL Pointer Dereference in vim/vim
NULL Pointer Dereference 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.c
Debian
CVE-2022-2874: vim - NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0224.
vendor_debian·2022·CVSS 5.5
CVE-2022-2874 [MEDIUM] CVE-2022-2874: vim - NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0224.
NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0224.
Scope: local
bookworm: resolved (fixed in 2:9.0.0229-1)
bullseye: open
forky: resolved (fixed in 2:9.0.0229-1)
sid: resolved (fixed in 2:9.0.0229-1)
trixie: resolved (fixed in 2:9.0.0229-1)
VulDB
vim up to 9.0.0220 null pointer dereference (EUVD-2022-35106 / Nessus ID 224714)
vuldb·2026-05-28·CVSS 5.5
CVE-2022-2874 [MEDIUM] vim up to 9.0.0220 null pointer dereference (EUVD-2022-35106 / Nessus ID 224714)
A vulnerability classified as problematic has been found in vim. Affected by this vulnerability is an unknown functionality. The manipulation leads to null pointer dereference.
This vulnerability is listed as CVE-2022-2874. The attack may be initiated remotely. There is no available exploit.
It is recommended to upgrade the affected component.
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-jq8p-424g-ch9j: NULL Pointer Dereference in GitHub repository vim/vim prior to 9
ghsa_unreviewed·2022-08-19
CVE-2022-2874 [MEDIUM] CWE-476 GHSA-jq8p-424g-ch9j: NULL Pointer Dereference in GitHub repository vim/vim prior to 9
NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0223.
OSV
CVE-2022-2874: NULL Pointer Dereference in GitHub repository vim/vim prior to 9
osv·2022-08-18·CVSS 5.5
CVE-2022-2874 [MEDIUM] CVE-2022-2874: NULL Pointer Dereference in GitHub repository vim/vim prior to 9
NULL Pointer Dereference in GitHub repository vim/vim prior to 9.0.0224.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/vim/vim/commit/4875d6ab068f09df88d24d81de40dcd8d56e243dhttps://huntr.dev/bounties/95f97dfe-247d-475d-9740-b7adc71f4c79https://security.gentoo.org/glsa/202305-16https://github.com/vim/vim/commit/4875d6ab068f09df88d24d81de40dcd8d56e243dhttps://huntr.dev/bounties/95f97dfe-247d-475d-9740-b7adc71f4c79https://security.gentoo.org/glsa/202305-16
2022-08-18
Published