# CVE-2022-1621: Heap buffer overflow in vim\_strncpy find\_word 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-05-09 · Modified: 2024-08-03
- Aliases: ALPINE-CVE-2022-1621, UBUNTU-CVE-2022-1621, DEBIAN-CVE-2022-1621
- Record: https://cvemate.com/vulnerability/CVE-2022-1621 · JSON: https://cvemate.com/vulnerability/CVE-2022-1621/json

## Description

```text
Heap buffer overflow in vim_strncpy find_word in GitHub repository vim/vim prior to 8.2.4919. This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution
```

## 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: 2.381%, percentile 84.445%, 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.4969-r0
- apple macos: \< 13.0
- debian vim (Debian): \< 2:9.0.0135-1
- ubuntu vim (Ubuntu): \< 2:7.4.052-1ubuntu3.1+esm5 \| \< 2:7.4.1689-3ubuntu1.5+esm6 \| \< 2:8.0.1453-1ubuntu1.9 \| \< 2:8.1.2269-1ubuntu5.8 \| \< 2:8.2.3995-1ubuntu2.1
- debian debian\_linux: 9.0 \| 10.0
- fedoraproject fedora: 34 \| 35
- vim vim: \< 8.2.4919
- vim vim/vim: ≥ unspecified, \< 8.2.4919

## References

- <https://huntr.dev/bounties/520ce714-bfd2-4646-9458-f52cd22bb2fb>
- <https://github.com/vim/vim/commit/7c824682d2028432ee082703ef0ab399867a089b>
- <https://lists.debian.org/debian-lts-announce/2022/05/msg00022.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIP7KG7TVS5YF3QREAY2GOGUT3YUBZAI/>
- <https://security.gentoo.org/glsa/202208-32>
- <https://support.apple.com/kb/HT213488>
- <http://seclists.org/fulldisclosure/2022/Oct/41>
- <http://seclists.org/fulldisclosure/2022/Oct/28>
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00032.html>
- <https://security.gentoo.org/glsa/202305-16>
- <https://security.alpinelinux.org/vuln/CVE-2022-1621>
- <https://ubuntu.com/security/CVE-2022-1621>
- <https://ubuntu.com/security/notices/USN-5460-1>
- <https://ubuntu.com/security/notices/USN-5613-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-1621>
- <https://ubuntu.com/security/notices/USN-5613-2>
- <https://security-tracker.debian.org/tracker/CVE-2022-1621>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1621>

---

Data as of 2026-12-05T04:46:42.235Z. 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
