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

# CVE-2021-4136

Publication date 19 December 2021

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

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

## Cvss 3 Severity Score

**7.8 · High**

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

Toggle side navigation

## Description

vim is vulnerable to Heap-based Buffer Overflow

[Read the notes from the security team](https://ubuntu.com/security/CVE-2021-4136?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| vim | 22.04 LTS jammy | Not affected |
| 21.10 impish | Ignored end of life |
| 21.04 hirsute | Ignored end of life |
| 20.04 LTS focal | Not affected |
| 18.04 LTS bionic | Not affected |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2021-4136?format=md#patch-details)

## Notes

---

### [ccdm94](https://launchpad.net/~ccdm94)

introduced by commit 2949cfdbe433 (>= 8.2.2257).

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| vim | * Upstream:   [605ec91](https://github.com/vim/vim/commit/605ec91e5a7330d61be313637e495fa02a6dc264) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.8 · High

* Base metrics

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

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.8 · High |
  | Exploitability score | - |
  | Impact score | - |

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

## References

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

### Other references

* <https://huntr.dev/bounties/5c6b93c1-2d27-4e98-a931-147877b8c938>
* <https://github.com/vim/vim/commit/605ec91e5a7330d61be313637e495fa02a6dc264>
* <https://www.cve.org/CVERecord?id=CVE-2021-4136>
