CVE-2022-0393
Out-of-bounds Read in vim/vim
Out-of-bounds Read in GitHub repository vim/vim prior to 8.2.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.4
Out-of-bounds Read in vim/vim
Out-of-bounds Read in GitHub repository vim/vim prior to 8.2.
- Record
CVE-2022-0393- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
EUVDEUVD-2022-15541
8.4
Out-of-bounds Read in GitHub repository vim/vim prior to 8.2.
- Record
EUVD-2022-15541- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-vfmf-vjx2-868p
7.1
Out-of-bounds Read in Conda vim prior to 8.2.
Out-of-bounds Read in Conda vim prior to 8.2.
- Record
GHSA-vfmf-vjx2-868p- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
NVD
7.1
Out-of-bounds Read in GitHub repository vim/vim prior to 8.2.
- Record
CVE-2022-0393- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 5.8 Medium
AV:N/AC:M/Au:N/C:P/I:N/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-0393
7.1
Out-of-bounds Read in GitHub repository vim/vim prior to 8.2.
- Record
ALPINE-CVE-2022-0393- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Updated
- 2026-11-03
OSVAZL-8366
7.1
CVE-2022-0393 affecting package vim for versions less than 8.2.4233-1
Out-of-bounds Read in GitHub repository vim/vim prior to 8.2.
- Record
AZL-8366- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
Show 7 moreShow less
OSVBELL-CVE-2022-0393
7.1
CVE-2022-0393 does not affect BellSoft software
- Record
BELL-CVE-2022-0393- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Updated
- 2026-11-02
OSV
8.4
Out-of-bounds Read in vim/vim
Out-of-bounds Read in GitHub repository vim/vim prior to 8.2.
- Record
CVE-2022-0393- CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-0393
7.1
Out-of-bounds Read in GitHub repository vim/vim prior to 8.2.
- Record
DEBIAN-CVE-2022-0393- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - Updated
- 2026-11-03
OSVUBUNTU-CVE-2022-0393
7.1
Out-of-bounds Read in GitHub repository vim/vim prior to 8.2.
- Record
UBUNTU-CVE-2022-0393- CVSS 3.1
- 7.1 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H - CVSS 3.0
- 8.4 High
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2022-0203 No score
Updated vim packages fix security vulnerability
vim is vulnerable to out of bounds read (CVE-2022-0213) Heap-based Buffer Overflow in block_insert() in src/ops.c (CVE-2022-0261) a heap-based OOB read of size 1 (CVE-2022-0128) heap-based buffer overflow in utf_head_off() in mbyte.c (CVE-2022-0318) access of memory location before start of buffer (CVE-2022-0351) heap-based buffer overflow in init_ccline() in ex_getln.c (CVE-2022-0359) Stack-based Buffer Overflow in spellsuggest.c (CVE-2022-0408) use after free in src/ex_cmds.c (CVE-2022-0413) out-of-bounds read in delete_buff_tail() in getchar.c (CVE-2022-0393) heap-based-buffer-overflow in ex_retab() of src/indent.c (CVE-2022-0417) heap-use-after-free in enter_buffer() of src/buffer.c (CVE-2022-0443) heap overflow in ex_retab() may lead to crash (CVE-2022-0572) Stack-based Buffer Overflow in vim prior to 8.2. (CVE-2022-0629) NULL Pointer Dereference in vim prior to 8.2 (CVE-2022-0696) buffer overflow (CVE-2022-0714) Use of Out-of-range Pointer Offset (CVE-2022-0729) Use of Out-of-range Pointer Offset in vim (CVE-2022-0685) Use of Out-of-range Pointer Offset in vim (CVE-2022-0554) Heap-based Buffer Overflow occurs in vim (CVE-2022-0943) heap buffer overflow in get_one_sourceline (CVE-2022-1160) use after free in utf_ptr2char (CVE-2022-1154) global heap buffer overflow in skip_range (CVE-2022-1381) Out-of-range Pointer Offset (CVE-2022-1420) heap-buffer-overflow in append_command of src/ex_docmd.c (CVE-2022-1616) heap-buffer-overflow in cmdline_erase_chars of ex_getln.c (CVE-2022-1619) NULL Pointer Dereference in vim_regexec_string() of regexp.c (CVE-2022-1620) heap buffer overflow (CVE-2022-1621) buffer over-read (CVE-2022-1629) NULL pointer dereference in vim_regexec_string() of regexp.c (CVE-2022-1674) a buffer over-read found in scriptfile.c (CVE-2022-1769) Heap-based Buffer Overflow in cindent.c (CVE-2022-1733)
- Record
MGASA-2022-0203- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11812-1 No score
gvim-8.2.4286-1.1 on GA media
These are all security issues fixed in the gvim-8.2.4286-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11812-1- Updated
- 2026-11-02
OSVUSN-6195-1 No score
vim vulnerabilities
It was discovered that Vim contained an out-of-bounds read vulnerability. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. (CVE-2022-0128)
It was discovered that Vim did not properly manage memory when freeing allocated memory. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. (CVE-2022-0156)
It was discovered that Vim contained a heap-based buffer overflow vulnerability. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. (CVE-2022-0158)
It was discovered that Vim did not properly manage memory when recording and using select mode. An attacker could possibly use this issue to cause a denial of service. (CVE-2022-0393)
It was discovered that Vim incorrectly handled certain memory operations during a visual block yank. An attacker could possibly use this issue to cause a denial of service or execute arbitrary code. (CVE-2022-0407)
It was discovered that Vim contained a NULL pointer dereference vulnerability when switching tabpages. An attacker could possible use this issue to cause a denial of service. (CVE-2022-0696)
- Record
USN-6195-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
vimAlpine:v3.12 |
before 8.2.4619-r0 | 8.2.4619-r0 |
vimAlpine:v3.13 |
before 8.2.4619-r0 | 8.2.4619-r0 |
vimAlpine:v3.14 |
before 8.2.4619-r0 | 8.2.4619-r0 |
vimAlpine:v3.15 |
before 8.2.4619-r0 | 8.2.4619-r0 |
vimAlpine:v3.16 |
before 8.2.4350-r0 | 8.2.4350-r0 |
vimAlpine:v3.17 |
before 8.2.4350-r0 | 8.2.4350-r0 |
vimAlpine:v3.18 |
before 8.2.4350-r0 | 8.2.4350-r0 |
vimAlpine:v3.19 |
before 8.2.4350-r0 | 8.2.4350-r0 |
vimAlpine:v3.20 |
before 8.2.4350-r0 | 8.2.4350-r0 |
vimAlpine:v3.21 |
before 8.2.4350-r0 | 8.2.4350-r0 |
Show 11 moreShow less
| Package | Affected | Fixed |
|---|---|---|
vimAlpine:v3.22 |
before 8.2.4350-r0 | 8.2.4350-r0 |
vimAlpine:v3.23 |
before 8.2.4350-r0 | 8.2.4350-r0 |
vimAlpine:v3.24 |
before 8.2.4350-r0 | 8.2.4350-r0 |
vimAzure Linux:2 |
before 8.2.4233-1 | 8.2.4233-1 |
vimDebian:12 |
before 2:8.2.4659-1 | 2:8.2.4659-1 |
vimDebian:13 |
before 2:8.2.4659-1 | 2:8.2.4659-1 |
vimDebian:14 |
before 2:8.2.4659-1 | 2:8.2.4659-1 |
vimMageia:8 From an advisory covering 31 CVEs |
before 8.2.4975-1.mga8 | 8.2.4975-1.mga8 |
vimUbuntu:22.04:LTS |
before 2:8.2.3995-1ubuntu2.9, plus listed versions 2:8.2.2434-3ubuntu32:8.2.2434-3ubuntu42:8.2.3565-1ubuntu12:8.2.3565-1ubuntu22:8.2.3565-1ubuntu3 Show 9 moreShow less2:8.2.3565-1ubuntu52:8.2.3995-1ubuntu12:8.2.3995-1ubuntu22:8.2.3995-1ubuntu2.12:8.2.3995-1ubuntu2.32:8.2.3995-1ubuntu2.42:8.2.3995-1ubuntu2.52:8.2.3995-1ubuntu2.72:8.2.3995-1ubuntu2.8 |
2:8.2.3995-1ubuntu2.9 |
vimUbuntu:22.04:LTS From an advisory covering 6 CVEs |
before 2:8.2.3995-1ubuntu2.9, plus listed versions 2:8.2.2434-3ubuntu32:8.2.2434-3ubuntu42:8.2.3565-1ubuntu12:8.2.3565-1ubuntu22:8.2.3565-1ubuntu3 Show 9 moreShow less2:8.2.3565-1ubuntu52:8.2.3995-1ubuntu12:8.2.3995-1ubuntu22:8.2.3995-1ubuntu2.12:8.2.3995-1ubuntu2.32:8.2.3995-1ubuntu2.42:8.2.3995-1ubuntu2.52:8.2.3995-1ubuntu2.72:8.2.3995-1ubuntu2.8 |
2:8.2.3995-1ubuntu2.9 |
vimopenSUSE:Tumbleweed From an advisory covering 3 CVEs |
before 8.2.4286-1.1 | 8.2.4286-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| affected | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-0393 is a high vulnerability (CVSS 8.4) in Vim, published January 28, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.39%, the 72nd percentile. Fixed in vim 8.2.4619-r0.
References
huntr.dev/bounties/ecc8f488-01a0-477f-848f-e30b8e524bba
github.com/vim/vim/commit/a4bc2dd7cccf5a4a9f78b58b6f35a45d17164323
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UFXFAILMLUIK4MBUEZO4HNBNKYZRJ5AP
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7ZLEHVP4LNAGER4ZDGUDS5V5YVQD6INF
security.gentoo.org/glsa/202208-32
nvd.nist.gov/vuln/detail/CVE-2022-0393
Show 38 moreShow less
lists.fedoraproject.org/archives/list/[email protected]/message/7ZLEHVP4LNAGER4ZDGUDS5V5YVQD6INF
lists.fedoraproject.org/archives/list/[email protected]/message/UFXFAILMLUIK4MBUEZO4HNBNKYZRJ5AP
github.com/advisories/GHSA-vfmf-vjx2-868p
security.alpinelinux.org/vuln/CVE-2022-0393
docs.bell-sw.com/security/cves/CVE-2022-0393
github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0393.json
security-tracker.debian.org/tracker/CVE-2022-0393
advisories.mageia.org/MGASA-2022-0203.html
bugs.mageia.org/show_bug.cgi?id=29972
lists.fedoraproject.org/archives/list/[email protected]/thread/7JBXG3MU6EZWJGJD6UTHHONHGJBYPQQT
lists.fedoraproject.org/archives/list/[email protected]/thread/UCWG5L6CRQWACGVP7CYGESUB3G6QJ3GS
lists.fedoraproject.org/archives/list/[email protected]/thread/UFXFAILMLUIK4MBUEZO4HNBNKYZRJ5AP
lists.fedoraproject.org/archives/list/[email protected]/thread/4GOY5YWTP5QUY2EFLCL7AUWA2CV57C37
lists.fedoraproject.org/archives/list/[email protected]/thread/UURGABNDL77YR5FRQKTFBYNBDQX2KO7Q
lists.fedoraproject.org/archives/list/[email protected]/thread/7ZLEHVP4LNAGER4ZDGUDS5V5YVQD6INF
lists.fedoraproject.org/archives/list/[email protected]/thread/HBUYQBZ6GWAWJRWP7AODJ4KHW5BCKDVP
lists.opensuse.org/archives/list/[email protected]/thread/FDNZ3N5S7UGKPUUKPGOQQGPJJK3YTW37
lists.fedoraproject.org/archives/list/[email protected]/thread/C3R36VSLO4TRX72SWB6IDJOD24BQXPX2
lists.fedoraproject.org/archives/list/[email protected]/thread/C2CQXRLBIC4S7JQVEIN5QXKQPYWB5E3J
lists.fedoraproject.org/archives/list/[email protected]/thread/X6E457NYOIRWBJHKB7ON44UY5AVTG4HU
lists.fedoraproject.org/archives/list/[email protected]/thread/A6BY5P7ERZS7KXSBCGFCOXLMLGWUUJIH
debian.org/lts/security/2022/dla-3011
bugzilla.redhat.com/show_bug.cgi?id=2083924
lists.fedoraproject.org/archives/list/[email protected]/thread/HIP7KG7TVS5YF3QREAY2GOGUT3YUBZAI
lists.fedoraproject.org/archives/list/[email protected]/thread/ODXVYZC5Z4XRRZK7CK6B6IURYVYHA25U
lists.fedoraproject.org/archives/list/[email protected]/thread/QKIX5HYKWXWG6QBCPPTPQ53GNOFHSAIS
lists.fedoraproject.org/archives/list/[email protected]/thread/IUPOLEX5GXC733HL4EFYMHFU7NISJJZG
ubuntu.com/security/CVE-2022-0393
ubuntu.com/security/notices/USN-6195-1
cve.org/CVERecord?id=CVE-2022-0393
ubuntu.com/security/CVE-2022-0128
ubuntu.com/security/CVE-2022-0156
ubuntu.com/security/CVE-2022-0158
ubuntu.com/security/CVE-2022-0407
ubuntu.com/security/CVE-2022-0696
suse.com/security/cve/CVE-2022-0393
suse.com/security/cve/CVE-2022-0417
suse.com/security/cve/CVE-2022-0443