# CVE-2022-1785: Out-of-bounds Write in vim/vim

- Severity: High 7.3 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-05-19T00:00:00.000Z
- Modified: 2026-06-17T04:23:06.517Z
- Weaknesses: CWE-787
- Assigned by: @huntrdev

## Description

Out-of-bounds Write in GitHub repository vim/vim prior to 8.2.4977.

(As written by CVE List.)

## Affected

- vim vim/vim: from unspecified before 8.2.4977
- vim vim: before 8.2.4977
- debian debian_linux: 10.0

## Every score

- @huntrdev: CVSS:3.0 7.3 High `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://huntr.dev/bounties/8c969cba-eef2-4943-b44a-4e3089599109> (exploit, third-party-advisory)
- <https://github.com/vim/vim/commit/e2bd8600b873d2cd1f9d667c28cba8b1dba18839> (patch, third-party-advisory)
- <https://security.gentoo.org/glsa/202208-32> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00032.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202305-16> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html>

## Sources

- CVE List: [CVE-2022-1785](https://www.cve.org/CVERecord?id=CVE-2022-1785), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2022-1785](https://nvd.nist.gov/vuln/detail/CVE-2022-1785), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-1785 · Whole record: https://cve.day/CVE-2022-1785.json · Rebuilt by cve.day 2026-11-25T22:58:11.812Z
