CVE-2022-1785: Out-of-bounds Write in vim/vim

Published May 19, 2022
·
Updated

Last updated 24 July 2024

Other sources

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

https://huntr.dev/bounties/8c969cba-eef2-4943-b44a-4e3089599109 https://github.com/vim/vim/commit/e2bd8600b873d2cd1f9d667c28cba8b1dba18839

— Red Hat

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

— Launchpad

Affected Software

7 affected componentsFixes available
vim Vim<8.2.4977
Debian Debian Linux=10.0
redhat/vim<8.2.4977
8.2.4977
debian/vim<2:9.0.0135-1
2:9.0.0135-1
debian/vim<2:9.0.0135-1
2:9.0.0135-1
debian/vim<2:9.0.0135-1
2:9.0.0135-1
debian/vim
2:8.1.0875-5+deb10u42:8.2.2434-3+deb11u22:9.0.0135-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 8.2.4977
  2. Upgrade

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

    Fixed in 2:9.0.0135-1
  3. Upgrade

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

    Fixed in 2:8.1.0875-5+deb10u4Fixed in 2:8.2.2434-3+deb11u2Fixed in 2:9.0.0135-1
  4. Upgrade

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

    Fixed in 8.2.4977

Event History

May 19, 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
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Data Sourced
via OSV·01:15 PM
DescriptionAffected Software
May 20, 2022
Data Sourced
via Red Hat·05:30 AM
DescriptionSeverityAffected Software
May 3, 2023
Data Sourced
12:15 PM
Weakness
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
12:15 PM
Affected Software
Nov 21, 2024
Updated
via NVD·06:41 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·04:23 AM
Affected Software
Nov 3, 2026
Data Sourced
via OSV·08:02 AM
Severity

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-1785?

CVE-2022-1785 is an out-of-bounds write vulnerability in the GitHub repository vim/vim prior to version 8.2.4977.

2

How does CVE-2022-1785 affect Vim?

CVE-2022-1785 affects Vim versions prior to 8.2.4977.

3

What is the severity of CVE-2022-1785?

The severity of CVE-2022-1785 is not specified in the provided information.

4

How can I fix CVE-2022-1785?

To fix CVE-2022-1785, update Vim to version 8.2.4977 or later.

5

Where can I find more information about CVE-2022-1785?

You can find more information about CVE-2022-1785 on the MITRE website (https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1785) and the Ubuntu security notices (https://ubuntu.com/security/notices/USN-5498-1).

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