# CVE-2022-1785: Out-of-bounds Write 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-19 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2022-1785, DEBIAN-CVE-2022-1785
- Record: https://cvemate.com/vulnerability/CVE-2022-1785 · JSON: https://cvemate.com/vulnerability/CVE-2022-1785/json

## Description

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

## Signals

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

- debian vim (Debian): \< 2:9.0.0135-1
- ubuntu vim (Ubuntu): \< 2:7.4.052-1ubuntu3.1+esm8 \| \< 2:7.4.1689-3ubuntu1.5+esm8 \| \< 2:8.0.1453-1ubuntu1.12 \| \< 2:8.1.2269-1ubuntu5.13 \| \< 2:8.2.3995-1ubuntu2.5
- debian debian\_linux: 10.0
- vim vim: \< 8.2.4977
- vim vim/vim: ≥ unspecified, \< 8.2.4977

## References

- <https://huntr.dev/bounties/8c969cba-eef2-4943-b44a-4e3089599109>
- <https://github.com/vim/vim/commit/e2bd8600b873d2cd1f9d667c28cba8b1dba18839>
- <https://security.gentoo.org/glsa/202208-32>
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00032.html>
- <https://security.gentoo.org/glsa/202305-16>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html>
- <https://ubuntu.com/security/CVE-2022-1785>
- <https://ubuntu.com/security/notices/USN-5498-1>
- <https://ubuntu.com/security/notices/USN-5995-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-1785>
- <https://security-tracker.debian.org/tracker/CVE-2022-1785>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1785>

---

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