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

# CVE-2022-1897

Publication date 27 May 2022

Last updated 25 August 2025

---

Ubuntu priority

**Low**

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

## Cvss 3 Severity Score

**7.8 · High**

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

Toggle side navigation

## Description

Out-of-bounds Write in GitHub repository vim/vim prior to 8.2.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| vim | 23.10 mantic | Not affected |
| 23.04 lunar | Not affected |
| 22.10 kinetic | Ignored end of life, was needs-triage |
| 22.04 LTS jammy | Fixed 2:8.2.3995-1ubuntu2.15 |
| 21.10 impish | Ignored end of life |
| 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+esm10  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**

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-2022-1897)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-1897)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2022-1897)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2022-1897)

### Related Ubuntu Security Notices (USN)

+ [USN-5507-1](https://usn.ubuntu.com/USN-5507-1)
+ Vim vulnerabilities
+ 8 July 2022

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

### Other references

* <https://huntr.dev/bounties/82c12151-c283-40cf-aa05-2e39efa89118>
* <https://github.com/vim/vim/commit/338f1fc0ee3ca929387448fe464579d6113fa76a (v8.2.5023)>
* <https://github.com/vim/vim/commit/338f1fc0ee3ca929387448fe464579d6113fa76a>
* <https://www.cve.org/CVERecord?id=CVE-2022-1897>
