---
title: "CVE-2023-46246"
canonical_url: "https://pkgseek.com/security/CVE-2023-46246"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2023-46246

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.

CVE-2023-46246 is rated MEDIUM (5.5), with 12 indexed affected package builds across 1 distributions.

- **Severity / Score**: MEDIUM (5.5)
- **Affected builds**: 12
- **Affected distros**: 1
- **Distros with fixed_in**: Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Ubuntu | focal | vim | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | focal | vim-common | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | focal | vim-doc | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | focal | vim-runtime | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | focal | vim-tiny | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | focal | xxd | 2:8.1.2269-1ubuntu5 | 2:8.1.2269-1ubuntu5.21 |
| Ubuntu | jammy | vim | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
| Ubuntu | jammy | vim-common | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
| Ubuntu | jammy | vim-doc | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
| Ubuntu | jammy | vim-runtime | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
| Ubuntu | jammy | vim-tiny | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
| Ubuntu | jammy | xxd | 2:8.2.3995-1ubuntu2 | 2:8.2.3995-1ubuntu2.15 |
