# CVE-2022-1160: heap buffer overflow in get\_one\_sourceline in vim/vim

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-03-30 · Modified: 2024-08-02
- Aliases: ALPINE-CVE-2022-1160
- Record: https://cvemate.com/vulnerability/CVE-2022-1160 · JSON: https://cvemate.com/vulnerability/CVE-2022-1160/json

## Description

```text
heap buffer overflow in get_one_sourceline in GitHub repository vim/vim prior to 8.2.4647.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.314%, percentile 71.697%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- alpine vim (Alpine Linux): \< 8.2.4708-r0
- fedoraproject fedora: 34 \| 35 \| 36
- vim vim: \< 8.2.4647
- vim vim/vim: ≥ unspecified, \< 8.2.4647

## References

- <https://huntr.dev/bounties/a6f3222d-2472-439d-8881-111138a5694c>
- <https://github.com/vim/vim/commit/2bdad6126778f907c0b98002bfebf0e611a3f5db>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C2CQXRLBIC4S7JQVEIN5QXKQPYWB5E3J/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAIQTUO35U5WO2NYMY47637EMCVDJRSL/>
- <https://security.gentoo.org/glsa/202208-32>
- <https://security.gentoo.org/glsa/202305-16>
- <https://security.alpinelinux.org/vuln/CVE-2022-1160>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1160>

---

Data as of 2026-12-05T08:24:10.820Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
