# CVE-2022-2845: Improper Validation of Specified Quantity in Input 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-08-17 · Modified: 2026-10-09
- Aliases: UBUNTU-CVE-2022-2845, DEBIAN-CVE-2022-2845, openSUSE-SU-2024:12275-1
- Record: https://cvemate.com/vulnerability/CVE-2022-2845 · JSON: https://cvemate.com/vulnerability/CVE-2022-2845/json

## Description

```text
Improper Validation of Specified Quantity in Input in GitHub repository vim/vim prior to 9.0.0218.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.534%, percentile 46.612%, 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.0229-1
- ubuntu vim (Ubuntu): All versions (No fix recorded) \| \< 2:8.0.1453-1ubuntu1.12 \| \< 2:8.1.2269-1ubuntu5.13 \| \< 2:8.2.3995-1ubuntu2.5
- fedoraproject fedora: 35 \| 37
- opensuse vim&distro=openSUSE Tumbleweed (openSUSE): \< 9.0.0224-1.1
- vim vim: \< 9.0.0218
- vim vim/vim: ≥ unspecified, \< 9.0.0218

## References

- <https://huntr.dev/bounties/3e1d31ac-1cfd-4a9f-bc5c-213376b69445>
- <https://github.com/vim/vim/commit/e98c88c44c308edaea5994b8ad4363e65030968c>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C72HDIMR3KTTAO7QGTXWUMPBNFUFIBRD/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XWOJOA7PZZAMBI5GFTL6PWHXMWSDLUXL/>
- <https://security.gentoo.org/glsa/202305-16>
- <https://ubuntu.com/security/CVE-2022-2845>
- <https://ubuntu.com/security/notices/USN-5995-1>
- <https://www.cve.org/CVERecord?id=CVE-2022-2845>
- <https://security-tracker.debian.org/tracker/CVE-2022-2845>
- <https://www.suse.com/security/cve/CVE-2022-2845>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-2845>

---

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