5.5

CVE-2023-46246: vim Integer Overflow or Wraparound

CVSS: 5.5v3.1MediumModified
AliasesMGASA-2023-0314UBUNTU-CVE-2023-46246DEBIAN-CVE-2023-46246
Published 27-10-2023Last modified 23-06-2026

Vulnerability summary

CVE-2023-46246 is a medium (CVSS 5.5) Integer Overflow or Wraparound vulnerability in vim. EPSS estimates a 0.37% chance of exploitation in the next 30 days, higher than 29% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
32/100
0100
Medium · default modelHow is this calculated?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.37%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 4 · Related 4

Timeline

  1. 27-10-2023
    PublishedVulnerability first disclosed.
  2. 23-06-2026
    Last modifiedVulnerability information updated.

Description

Vim is an improved version of the good old UNIX editor Vi. Heap-use-after-free in memory allocated in the function `ga_grow_inner` in in the file `src/alloc.c` at line 748, which is freed in the file `src/ex_docmd.c` in the function `do_cmdline` at line 1010 and then used again in `src/cmdhist.c` at line 759. When using the `:history` command, it's possible that the provided argument overflows the accepted value. Causing an Integer Overflow and potentially later an use-after-free. This vulnerability has been patched in version 9.0.2068.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.37%

Chance of exploitation in the next 30 days

Percentile

29%

Versus all other CVEs

30-day change

0.00 pp

From 0.37% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.37%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Vim

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Mageia2 products
  • vim< 9.0.2087-1.mga8
  • vim< 9.0.2087-1.mga9
Debian1 product
  • vimAll versions (No fix recorded) | < 2:9.0.2087-1
Ubuntu1 product
  • vim< 2:7.4.052-1ubuntu3.1+esm15 | < 2:7.4.1689-3ubuntu1.5+esm22 | < 2:8.0.1453-1ubuntu1.13+esm7 | < 2:8.1.2269-1ubuntu5.21 | < 2:8.2.3995-1ubuntu2.15
Vim1 product
  • vim≤ 9.0.2067 | < 9.0.2068

4 vendors · 5 products

References

13 links
Show all 13 references