Heap-based Buffer Overflow in vim/vim
Summary
| CVE | CVE-2023-4781 |
|---|---|
| State | PUBLISHED |
| Assigner | @huntrdev |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-09-05 19:15:49 UTC |
| Updated | 2026-06-23 18:17:36 UTC |
| Description | Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873. |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS: 0.006060000 probability, percentile 0.445590000 (date 2026-06-28)
Problem Types: CWE-122 | CWE-122 CWE-122 Heap-based Buffer Overflow
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.0 | [email protected] | Secondary | 7.8 | HIGH | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.0 | CNA | DECLARED | 7.8 | HIGH | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v3.0 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| About the security content of macOS Sonoma 14.1 - Apple Support | af854a3a-2127-422b-91ae-364da2661108 | support.apple.com | Release Notes, Third Party Advisory |
| huntr – Security Bounties for any GitHub repository | af854a3a-2127-422b-91ae-364da2661108 | huntr.dev | Exploit, Issue Tracking, Patch, Third Party Advisory |
| lists.debian.org/debian-lts-announce/2025/03/msg00023.html | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | |
| [SECURITY] [DLA 3588-1] vim security update | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | Mailing List, Third Party Advisory |
| Full Disclosure: APPLE-SA-10-25-2023-4 macOS Sonoma 14.1 | af854a3a-2127-422b-91ae-364da2661108 | seclists.org | Mailing List, Third Party Advisory |
| patch 9.0.1873: [security] heap-buffer-overflow in vim_regsub_both · vim/vim@f6d28fe · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch |
| 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
- 199867 Ubuntu Security Notification for Vim Vulnerabilities (USN-6452-1)
- 296107 Oracle Solaris 11.4 Support Repository Update (SRU) 65.157.1 Missing (CPUJAN2024)
- 356160 Amazon Linux Security Advisory for vim : ALAS-2023-1826
- 356389 Amazon Linux Security Advisory for vim : ALAS2023-2023-360
- 356392 Amazon Linux Security Advisory for vim : ALAS2-2023-2266
- 356971 Amazon Linux Security Advisory for vim : AL2012-2023-455
- 378975 Apple MacOS Sonoma 14.1 Not Installed (HT213984)
- 503545 Alpine Linux Security Update for vim
- 505958 Alpine Linux Security Update for vim
- 6000124 Debian Security Update for vim (DLA 3588-1)
- 673483 EulerOS Security Update for vim (EulerOS-SA-2023-3198)
- 673491 EulerOS Security Update for vim (EulerOS-SA-2023-3233)
- 673558 EulerOS Security Update for vim (EulerOS-SA-2023-3288)
- 673745 EulerOS Security Update for vim (EulerOS-SA-2023-3320)
- 673779 EulerOS Security Update for vim (EulerOS-SA-2023-3260)
- 673841 EulerOS Security Update for vim (EulerOS-SA-2023-3352)
- 755011 SUSE Enterprise Linux Security Update for vim (SUSE-SU-2023:3942-1)
- 755014 SUSE Enterprise Linux Security Update for vim (SUSE-SU-2023:3955-1)
- 907281 Common Base Linux Mariner (CBL-Mariner) Security Update for vim (28659-1)