---
id: CVE-2022-2285
title: Integer Overflow or Wraparound in GitHub repository vim/vim prior to 9.0.
summary: Integer Overflow or Wraparound in GitHub repository vim/vim prior to 9.0.
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-190
  - CWE-190
vendor: vim
product: vim
affected:
  - vim < 9.0.0018
  - fedora = 35
  - fedora = 36
  - debian_linux = 10.0
patched:
  - vim 9.0.0018
published: '2022-07-02'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T21:17:47.487'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2022-2285'
references:
  - url: 'https://github.com/vim/vim/commit/27efc62f5d86afcb2ecb7565587fe8dea4b036fe'
    label: security@huntr.dev
  - url: 'https://huntr.dev/bounties/64574b28-1779-458d-a221-06c434042736'
    label: security@huntr.dev
  - url: 'https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html'
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/43Y3VJPOTTY3NTREDIFUPITM2POG4ZLP/
    label: security@huntr.dev
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UXPO5EHDV6J4B27E65DOQGZFELUFPRSK/
    label: security@huntr.dev
  - url: 'https://security.gentoo.org/glsa/202208-32'
    label: security@huntr.dev
  - url: 'https://security.gentoo.org/glsa/202305-16'
    label: security@huntr.dev
  - url: 'https://github.com/vim/vim/commit/27efc62f5d86afcb2ecb7565587fe8dea4b036fe'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://huntr.dev/bounties/64574b28-1779-458d-a221-06c434042736'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/43Y3VJPOTTY3NTREDIFUPITM2POG4ZLP/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UXPO5EHDV6J4B27E65DOQGZFELUFPRSK/
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202208-32'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202305-16'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.0142
epssPercentile: 0.72009
ingestedAt: '2026-10-08T22:11:53.756Z'
---

## Overview

Integer Overflow or Wraparound in GitHub repository vim/vim prior to 9.0.

## Affected

- `vim < 9.0.0018`
- `fedora = 35`
- `fedora = 36`
- `debian_linux = 10.0`

## Remediation

Upgrade past the affected range:

- `vim 9.0.0018`
