CVE-2022-1160
heap buffer overflow in get_one_sourceline in vim/vim
heap buffer overflow in get_one_sourceline in GitHub repository vim/vim prior to 8.2.4647.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
7.3
heap buffer overflow in get_one_sourceline in vim/vim
heap buffer overflow in get_one_sourceline in GitHub repository vim/vim prior to 8.2.4647.
- Record
CVE-2022-1160- CVSS 3.0
- 7.3 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L - Weakness
- CWE-122
- Updated
- 2026-11-02
EUVDEUVD-2022-24502
7.3
heap buffer overflow in get_one_sourceline in GitHub repository vim/vim prior to 8.2.4647.
- Record
EUVD-2022-24502- CVSS 3.0
- 7.3 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-rv49-vpf7-3h48
7.8
heap buffer overflow in get_one_sourceline in GitHub repository vim/vim prior to 8.2.
heap buffer overflow in get_one_sourceline in GitHub repository vim/vim prior to 8.2.
- Record
GHSA-rv49-vpf7-3h48- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-122, CWE-787
- Updated
- 2026-11-02
NVD
7.8
heap buffer overflow in get_one_sourceline in GitHub repository vim/vim prior to 8.2.4647.
- Record
CVE-2022-1160- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 7.3 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-122, CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-1160
7.8
heap buffer overflow in get_one_sourceline in GitHub repository vim/vim prior to 8.2.4647.
- Record
ALPINE-CVE-2022-1160- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSVAZL-9211
7.8
CVE-2022-1160 affecting package vim for versions less than 8.2.4743-1
heap buffer overflow in get_one_sourceline in GitHub repository vim/vim prior to 8.2.4647.
- Record
AZL-9211- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVBELL-CVE-2022-1160
7.8
CVE-2022-1160 does not affect BellSoft software
- Record
BELL-CVE-2022-1160- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
7.3
heap buffer overflow in get_one_sourceline in vim/vim
heap buffer overflow in get_one_sourceline in GitHub repository vim/vim prior to 8.2.4647.
- Record
CVE-2022-1160- CVSS 3.0
- 7.3 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:L - Weakness
- CWE-122
- 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:12337-1 No score
gvim-9.0.0453-2.1 on GA media
These are all security issues fixed in the gvim-9.0.0453-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:12337-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
vimAlpine:v3.12 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAlpine:v3.13 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAlpine:v3.14 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAlpine:v3.15 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAlpine:v3.16 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAlpine:v3.17 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAlpine:v3.18 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAlpine:v3.19 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAlpine:v3.20 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAlpine:v3.21 |
before 8.2.4708-r0 | 8.2.4708-r0 |
Show 6 moreShow less
| Package | Affected | Fixed |
|---|---|---|
vimAlpine:v3.22 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAlpine:v3.23 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAlpine:v3.24 |
before 8.2.4708-r0 | 8.2.4708-r0 |
vimAzure Linux:2 |
before 8.2.4743-1 | 8.2.4743-1 |
vimMageia:8 From an advisory covering 31 CVEs |
before 8.2.4975-1.mga8 | 8.2.4975-1.mga8 |
vimopenSUSE:Tumbleweed From an advisory covering 84 CVEs |
before 9.0.0453-2.1 | 9.0.0453-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| 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-1160 is a high vulnerability (CVSS 7.3) in Vim, published March 30, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.31%, the 70th percentile. Fixed in vim 8.2.4708-r0.
References
huntr.dev/bounties/a6f3222d-2472-439d-8881-111138a5694c
github.com/vim/vim/commit/2bdad6126778f907c0b98002bfebf0e611a3f5db
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C2CQXRLBIC4S7JQVEIN5QXKQPYWB5E3J
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAIQTUO35U5WO2NYMY47637EMCVDJRSL
security.gentoo.org/glsa/202208-32
security.gentoo.org/glsa/202305-16
Show 111 moreShow less
nvd.nist.gov/vuln/detail/CVE-2022-1160
lists.fedoraproject.org/archives/list/[email protected]/message/C2CQXRLBIC4S7JQVEIN5QXKQPYWB5E3J
lists.fedoraproject.org/archives/list/[email protected]/message/RAIQTUO35U5WO2NYMY47637EMCVDJRSL
github.com/advisories/GHSA-rv49-vpf7-3h48
security.alpinelinux.org/vuln/CVE-2022-1160
docs.bell-sw.com/security/cves/CVE-2022-1160
github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1160.json
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
suse.com/security/cve/CVE-2021-46059
suse.com/security/cve/CVE-2022-0213
suse.com/security/cve/CVE-2022-0261
suse.com/security/cve/CVE-2022-0318
suse.com/security/cve/CVE-2022-0319
suse.com/security/cve/CVE-2022-0351
suse.com/security/cve/CVE-2022-0359
suse.com/security/cve/CVE-2022-0361
suse.com/security/cve/CVE-2022-0368
suse.com/security/cve/CVE-2022-0392
suse.com/security/cve/CVE-2022-0407
suse.com/security/cve/CVE-2022-0408
suse.com/security/cve/CVE-2022-0413
suse.com/security/cve/CVE-2022-0554
suse.com/security/cve/CVE-2022-0572
suse.com/security/cve/CVE-2022-0629
suse.com/security/cve/CVE-2022-0685
suse.com/security/cve/CVE-2022-0729
suse.com/security/cve/CVE-2022-0943
suse.com/security/cve/CVE-2022-1154
suse.com/security/cve/CVE-2022-1160
suse.com/security/cve/CVE-2022-1420
suse.com/security/cve/CVE-2022-1616
suse.com/security/cve/CVE-2022-1619
suse.com/security/cve/CVE-2022-1620
suse.com/security/cve/CVE-2022-1621
suse.com/security/cve/CVE-2022-1629
suse.com/security/cve/CVE-2022-1674
suse.com/security/cve/CVE-2022-1720
suse.com/security/cve/CVE-2022-1733
suse.com/security/cve/CVE-2022-1735
suse.com/security/cve/CVE-2022-1769
suse.com/security/cve/CVE-2022-1771
suse.com/security/cve/CVE-2022-1785
suse.com/security/cve/CVE-2022-1796
suse.com/security/cve/CVE-2022-1851
suse.com/security/cve/CVE-2022-1886
suse.com/security/cve/CVE-2022-1897
suse.com/security/cve/CVE-2022-1898
suse.com/security/cve/CVE-2022-1927
suse.com/security/cve/CVE-2022-1942
suse.com/security/cve/CVE-2022-1968
suse.com/security/cve/CVE-2022-2000
suse.com/security/cve/CVE-2022-2042
suse.com/security/cve/CVE-2022-2124
suse.com/security/cve/CVE-2022-2125
suse.com/security/cve/CVE-2022-2126
suse.com/security/cve/CVE-2022-2129
suse.com/security/cve/CVE-2022-2175
suse.com/security/cve/CVE-2022-2182
suse.com/security/cve/CVE-2022-2183
suse.com/security/cve/CVE-2022-2206
suse.com/security/cve/CVE-2022-2207
suse.com/security/cve/CVE-2022-2208
suse.com/security/cve/CVE-2022-2210
suse.com/security/cve/CVE-2022-2231
suse.com/security/cve/CVE-2022-2264
suse.com/security/cve/CVE-2022-2284
suse.com/security/cve/CVE-2022-2286
suse.com/security/cve/CVE-2022-2287
suse.com/security/cve/CVE-2022-2288
suse.com/security/cve/CVE-2022-2289
suse.com/security/cve/CVE-2022-2304
suse.com/security/cve/CVE-2022-2343
suse.com/security/cve/CVE-2022-2344
suse.com/security/cve/CVE-2022-2345
suse.com/security/cve/CVE-2022-2571
suse.com/security/cve/CVE-2022-2580
suse.com/security/cve/CVE-2022-2581
suse.com/security/cve/CVE-2022-2598
suse.com/security/cve/CVE-2022-2816
suse.com/security/cve/CVE-2022-2817
suse.com/security/cve/CVE-2022-2819
suse.com/security/cve/CVE-2022-2849
suse.com/security/cve/CVE-2022-2862
suse.com/security/cve/CVE-2022-2874
suse.com/security/cve/CVE-2022-2889
suse.com/security/cve/CVE-2022-2923
suse.com/security/cve/CVE-2022-2946
suse.com/security/cve/CVE-2022-2980
suse.com/security/cve/CVE-2022-2982
suse.com/security/cve/CVE-2022-3016
suse.com/security/cve/CVE-2022-3037
suse.com/security/cve/CVE-2022-3153