---
title: "CVE-2024-43374\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-2024-43374?format=md
keywords: index, follow
---

# CVE-2024-43374

Publication date 16 August 2024

Last updated 26 August 2025

---

Ubuntu priority

**Medium**

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

## Cvss 3 Severity Score

**4.5 · Medium**

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

Toggle side navigation

## Description

The UNIX editor Vim prior to version 9.1.0678 has a use-after-free error in
argument list handling. When adding a new file to the argument list, this
triggers `Buf\*` autocommands. If in such an autocommand the buffer that was
just opened is closed (including the window where it is shown), this causes
the window structure to be freed which contains a reference to the argument
list that we are actually modifying. Once the autocommands are completed,
the references to the window and argument list are no longer valid and as
such cause an use-after-free. Impact is low since the user must either
intentionally add some unusual autocommands that wipe a buffer during
creation (either manually or by sourcing a malicious plugin), but it will
crash Vim. The issue has been fixed as of Vim patch v9.1.0678.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| vim | 24.04 LTS noble | Fixed 2:9.1.0016-1ubuntu7.2 |
| 22.04 LTS jammy | Fixed 2:8.2.3995-1ubuntu2.18 |
| 20.04 LTS focal | Fixed 2:8.1.2269-1ubuntu5.24 |
| 18.04 LTS bionic | Fixed 2:8.0.1453-1ubuntu1.13+esm9  Ubuntu Pro |
| 16.04 LTS xenial | Fixed 2:7.4.1689-3ubuntu1.5+esm24  Ubuntu Pro |
| 14.04 LTS trusty | Fixed 2:7.4.052-1ubuntu3.1+esm18  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**

4.5 · Medium

* Base metrics

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

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

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

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-6993-1](https://usn.ubuntu.com/USN-6993-1)
+ Vim vulnerabilities
+ 5 September 2024

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2024-43374>
* <https://github.com/vim/vim/security/GHSA-2w8m-443v-cgvw>
* <https://github.com/vim/vim/commit/0a6e57b09bc8c76691b367a5babfb79b31b770e8 (v9.1.0678)>
