NULL Pointer Dereference in function vim_regexec_string at regexp.c:2733 in vim/vim
Summary
| CVE | CVE-2022-1674 |
|---|---|
| State | PUBLISHED |
| Assigner | @huntrdev |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-05-12 11:15:07 UTC |
| Updated | 2026-10-08 22:17:15 UTC |
| Description | NULL Pointer Dereference in function vim_regexec_string at regexp.c:2733 in GitHub repository vim/vim prior to 8.2.4938. NULL Pointer Dereference in function vim_regexec_string at regexp.c:2733 allows attackers to cause a denial of service (application crash) via a crafted input. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS: 0.015460000 probability, percentile 0.746560000 (date 2026-10-20)
Problem Types: CWE-476 | CWE-476 CWE-476 NULL Pointer Dereference
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 5.5 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| 3.0 | [email protected] | Secondary | 6.6 | MEDIUM | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H |
| 3.0 | CNA | DECLARED | 6.6 | MEDIUM | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H |
| 2.0 | [email protected] | Primary | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS v3.0 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
LowIntegrity
LowAvailability
HighCVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
MediumAuthentication
NoneConfidentiality
NoneIntegrity
NoneAvailability
PartialAV:N/AC:M/Au:N/C:N/I:N/A:P
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Apple | Macos | All | All | All | All |
| Operating System | Fedoraproject | Fedora | 34 | All | All | All |
| Operating System | Fedoraproject | Fedora | 35 | All | All | All |
| Operating System | Fedoraproject | Fedora | 36 | All | All | All |
| Application | Vim | Vim | All | All | All | All |
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| huntr – Security Bounties for any GitHub repository | af854a3a-2127-422b-91ae-364da2661108 | huntr.dev | Exploit, Patch, Third Party Advisory |
| [SECURITY] Fedora 35 Update: vim-8.2.4975-1.fc35 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| Vim, gVim: Multiple Vulnerabilities (GLSA 202305-16) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | |
| Full Disclosure: APPLE-SA-2022-10-24-2 macOS Ventura 13 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | |
| patch 8.2.4938: crash when matching buffer with invalid pattern · vim/vim@a59f2df · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch, Third Party Advisory |
| [SECURITY] Fedora 34 Update: vim-8.2.4975-1.fc34 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| Vim, gVim: Multiple Vulnerabilities (GLSA 202208-32) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | Third Party Advisory |
| Full Disclosure: APPLE-SA-2022-10-27-5 Additional information for APPLE-SA-2022-10-24-2 macOS Ventura 13 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | Mailing List, Release Notes, Third Party Advisory |
| [SECURITY] Fedora 36 Update: vim-8.2.4969-1.fc36 - package-announce - Fedora Mailing-Lists | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| About the security content of macOS Ventura 13 - Apple Support | af854a3a-2127-422b-91ae-364da2661108 | support.apple.com | Release Notes, Third Party Advisory |
| [SECURITY] Fedora 35 Update: vim-8.2.4975-1.fc35 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| [SECURITY] Fedora 34 Update: vim-8.2.4975-1.fc34 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| [SECURITY] Fedora 36 Update: vim-8.2.4969-1.fc36 - package-announce - Fedora Mailing-Lists | MITRE | lists.fedoraproject.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 182738 Debian Security Update for vim (CVE-2022-1674)
- 199271 Ubuntu Security Notification for Vim Vulnerabilities (USN-5995-1)
- 282733 Fedora Security Update for vim (FEDORA-2022-d20b51de9c)
- 282744 Fedora Security Update for vim (FEDORA-2022-74b9e404c1)
- 282752 Fedora Security Update for vim (FEDORA-2022-d044e7e0b4)
- 296082 Oracle Solaris 11.4 Support Repository Update (SRU) 48.126.1 Missing (CPUJUL2022)
- 354009 Amazon Linux Security Advisory for vim : ALAS2-2022-1829
- 354033 Amazon Linux Security Advisory for vim : ALAS-2022-1628
- 354356 Amazon Linux Security Advisory for vim : ALAS2022-2022-116
- 354497 Amazon Linux Security Advisory for vim : ALAS2022-2022-155
- 354585 Amazon Linux Security Advisory for vim : ALAS-2022-155
- 355135 Amazon Linux Security Advisory for vim : ALAS2023-2023-098
- 671907 EulerOS Security Update for vim (EulerOS-SA-2022-1984)
- 671935 EulerOS Security Update for vim (EulerOS-SA-2022-2014)
- 671979 EulerOS Security Update for vim (EulerOS-SA-2022-2173)
- 671980 EulerOS Security Update for vim (EulerOS-SA-2022-2148)
- 672048 EulerOS Security Update for vim (EulerOS-SA-2022-2282)
- 672076 EulerOS Security Update for vim (EulerOS-SA-2022-2237)
- 710607 Gentoo Linux Vim, gVim Multiple Vulnerabilities (GLSA 202208-32)
- 710718 Gentoo Linux Vim, gVim Multiple Vulnerabilities (GLSA 202305-16)
- 901987 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (9751)
- 901988 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (9749)
- 902187 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (9751-1)
- 902319 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (9749-1)