---
title: "CVE-2023-46246\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2023-46246?format=md
keywords: index, follow
---

# CVE-2023-46246

Publication date 27 October 2023

Last updated 26 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**5.5 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2023-46246?format=md#impact-score)

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| vim | 24.04 LTS noble | Not affected |
| 23.10 mantic | Fixed 2:9.0.1672-1ubuntu2.2 |
| 23.04 lunar | Fixed 2:9.0.1000-4ubuntu3.3 |
| 22.04 LTS jammy | Fixed 2:8.2.3995-1ubuntu2.15 |
| 20.04 LTS focal | Fixed 2:8.1.2269-1ubuntu5.21 |
| 18.04 LTS bionic | Fixed 2:8.0.1453-1ubuntu1.13+esm7  Ubuntu Pro |
| 16.04 LTS xenial | Fixed 2:7.4.1689-3ubuntu1.5+esm22  Ubuntu Pro |
| 14.04 LTS trusty | Fixed 2:7.4.052-1ubuntu3.1+esm15  Ubuntu Pro |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

5.5 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Local |
  | Attack complexity | Low |
  | Privileges required | Low |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | None |
  | Integrity impact | None |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 5.5 · Medium |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-46246)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2023-46246)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2023-46246)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2023-46246)

### Related Ubuntu Security Notices (USN)

+ [USN-6557-1](https://usn.ubuntu.com/USN-6557-1)
+ Vim vulnerabilities
+ 14 December 2023

### Other 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://www.cve.org/CVERecord?id=CVE-2023-46246>
