CVE-2023-46246
Published: 27 October 2023
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.
Priority
Status
Package | Release | Status |
---|---|---|
vim Launchpad, Ubuntu, Debian |
bionic |
Released
(2:8.0.1453-1ubuntu1.13+esm7)
Available with Ubuntu Pro or Ubuntu Pro (Infra-only) |
focal |
Released
(2:8.1.2269-1ubuntu5.21)
|
|
jammy |
Released
(2:8.2.3995-1ubuntu2.15)
|
|
lunar |
Released
(2:9.0.1000-4ubuntu3.3)
|
|
mantic |
Released
(2:9.0.1672-1ubuntu2.2)
|
|
noble |
Not vulnerable
(2:9.1.0-1ubuntu1)
|
|
trusty |
Released
(2:7.4.052-1ubuntu3.1+esm15)
Available with Ubuntu Pro or Ubuntu Pro (Infra-only) |
|
upstream |
Needs triage
|
|
xenial |
Released
(2:7.4.1689-3ubuntu1.5+esm22)
Available with Ubuntu Pro or Ubuntu Pro (Infra-only) |
Severity score breakdown
Parameter | Value |
---|---|
Base score | 5.5 |
Attack vector | Local |
Attack complexity | Low |
Privileges required | Low |
User interaction | None |
Scope | Unchanged |
Confidentiality | None |
Integrity impact | None |
Availability impact | High |
Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
References
- https://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgm
- https://github.com/vim/vim/commit/9198c1f2b1ddecde22af918541e0de2a32f0f45a (v9.0.2068)
- https://github.com/vim/vim/commit/9198c1f2b1ddecde22af918541e0de2a32f0f45a
- https://ubuntu.com/security/notices/USN-6557-1
- https://www.cve.org/CVERecord?id=CVE-2023-46246
- NVD
- Launchpad
- Debian