# CVE-2022-0318: Heap-based Buffer Overflow in vim/vim

- Priority: **Routine**
- Reason: Not severe (CVSS 6.6, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-01-21 · Modified: 2024-11-15
- Aliases: UBUNTU-CVE-2022-0318, DEBIAN-CVE-2022-0318
- Record: https://cvemate.com/vulnerability/CVE-2022-0318 · JSON: https://cvemate.com/vulnerability/CVE-2022-0318/json

## Description

```text
Heap-based Buffer Overflow in vim/vim prior to 8.2.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.201%, percentile 83.122%, 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

- apple macos: \< 13.0
- debian vim (Debian): \< 2:8.2.4659-1
- ubuntu vim (Ubuntu): All versions (No fix recorded) \| \< 2:7.4.1689-3ubuntu1.5+esm4 \| \< 2:8.0.1453-1ubuntu1.13 \| \< 2:8.1.2269-1ubuntu5.14 \| \< 2:8.2.3995-1ubuntu2.7
- debian debian\_linux: 10.0
- vim vim: \< 8.2.4151
- vim vim/vim: ≥ unspecified, \< 8.2

## References

- <https://huntr.dev/bounties/0d10ba02-b138-4e68-a284-67f781a62d08>
- <https://github.com/vim/vim/commit/57df9e8a9f9ae1aafdde9b86b10ad907627a87dc>
- <https://security.gentoo.org/glsa/202208-32>
- <https://support.apple.com/kb/HT213444>
- <https://support.apple.com/kb/HT213488>
- <http://seclists.org/fulldisclosure/2022/Oct/41>
- <http://seclists.org/fulldisclosure/2022/Oct/28>
- <http://seclists.org/fulldisclosure/2022/Oct/43>
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00032.html>
- <https://security.netapp.com/advisory/ntap-20241115-0004/>
- <https://ubuntu.com/security/CVE-2022-0318>
- <https://ubuntu.com/security/notices/USN-5433-1>
- <https://ubuntu.com/security/notices/USN-6026-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-0318>
- <https://security-tracker.debian.org/tracker/CVE-2022-0318>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-0318>

---

Data as of 2026-12-05T03:31:10.506Z. 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
