CVE-2022-0213: Heap-based Buffer Overflow in vim/vim

Published Jan 14, 2022
·
Updated

Last updated 24 July 2024

Other sources

vim is vulnerable to Heap-based Buffer Overflow

Affected Software

25 affected componentsFixes available
vim Vim<8.2
Debian Debian Linux=9.0
Debian Debian Linux=10.0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
alpine/vim<8.2.4173-r0
8.2.4173-r0
debian/vim<2:8.2.4659-1
2:8.2.4659-1
debian/vim<2:8.2.4659-1
2:8.2.4659-1
debian/vim<2:8.2.4659-1
2:8.2.4659-1
debian/vim
2:8.0.0197-4+deb9u52:8.1.0875-5+deb10u32:8.2.4659-1
ubuntu/vim<2:7.4.052-1ubuntu3.1+esm9
2:7.4.052-1ubuntu3.1+esm9
ubuntu/vim<2:7.4.1689-3ubuntu1.5+esm5
2:7.4.1689-3ubuntu1.5+esm5
ubuntu/vim<2:8.0.1453-1ubuntu1.13
2:8.0.1453-1ubuntu1.13
ubuntu/vim<2:8.1.2269-1ubuntu5.14
2:8.1.2269-1ubuntu5.14
ubuntu/vim<2:8.2.3995-1ubuntu2.7
2:8.2.3995-1ubuntu2.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/vim to a version that resolves this vulnerability.

    Fixed in 8.2.4173-r0
  2. Upgrade

    Upgrade debian/vim to a version that resolves this vulnerability.

    Fixed in 2:8.2.4659-1
  3. Upgrade

    Upgrade debian/vim to a version that resolves this vulnerability.

    Fixed in 2:8.0.0197-4+deb9u5Fixed in 2:8.1.0875-5+deb10u3Fixed in 2:8.2.4659-1
  4. Upgrade

    Upgrade ubuntu/vim to a version that resolves this vulnerability.

    Fixed in 2:7.4.052-1ubuntu3.1+esm9
  5. Upgrade

    Upgrade ubuntu/vim to a version that resolves this vulnerability.

    Fixed in 2:7.4.1689-3ubuntu1.5+esm5
  6. Upgrade

    Upgrade ubuntu/vim to a version that resolves this vulnerability.

    Fixed in 2:8.0.1453-1ubuntu1.13
  7. Upgrade

    Upgrade ubuntu/vim to a version that resolves this vulnerability.

    Fixed in 2:8.1.2269-1ubuntu5.14
  8. Upgrade

    Upgrade ubuntu/vim to a version that resolves this vulnerability.

    Fixed in 2:8.2.3995-1ubuntu2.7

Event History

Jan 14, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Data Sourced
via OSV·01:15 PM
DescriptionSeverityAffected Software
Nov 9, 2022
Data Sourced
03:32 AM
Weakness
Data Sourced
via NVD·03:32 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
03:32 AM
Affected Software
Nov 21, 2024
Updated
via NVD·06:38 AM
RemedyAffected Software
Event
via NVD·06:38 AM
Oct 8, 2026
Updated
via NVD·10:17 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-0213?

CVE-2022-0213 is a vulnerability in vim that allows for heap-based buffer overflow.

2

How does CVE-2022-0213 impact vim?

CVE-2022-0213 allows an attacker to execute arbitrary code or crash the application.

3

Which versions of vim are affected by CVE-2022-0213?

Versions 8.2.4074 of vim on Ubuntu, 2:7.4.1689-3ubuntu1.5+ on Ubuntu Xenial, 2:8.0.1453-1ubuntu1.13 on Ubuntu Bionic, 2:8.1.2269-1ubuntu5.14 on Ubuntu Focal, 2:8.2.3995-1ubuntu2.7 on Ubuntu Jammy, 2:7.4.052-1ubuntu3.1+ on Ubuntu Trusty, and 2:8.1.0875-5+deb10u5, 2:9.0.1378-2, and 2:9.0.1894-1 on Debian are affected by CVE-2022-0213.

4

How severe is CVE-2022-0213?

CVE-2022-0213 is a critical vulnerability with a Common Vulnerability Scoring System (CVSS) score of 9.8 out of 10.

5

How can I fix CVE-2022-0213?

To fix CVE-2022-0213, it is recommended to update to version 8.2.4074 of vim on Ubuntu, 2:7.4.1689-3ubuntu1.5+ on Ubuntu Xenial, 2:8.0.1453-1ubuntu1.13 on Ubuntu Bionic, 2:8.1.2269-1ubuntu5.14 on Ubuntu Focal, 2:8.2.3995-1ubuntu2.7 on Ubuntu Jammy, 2:7.4.052-1ubuntu3.1+ on Ubuntu Trusty, and 2:8.1.0875-5+deb10u5, 2:9.0.1378-2, or 2:9.0.1894-1 on Debian, depending on the affected version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203