CVE-2022-1154: Use after free in utf_ptr2char in vim/vim

Published Mar 30, 2022
·
Updated

Last updated 24 July 2024

Other sources

Use after free in utfptr2char capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution.

Reference:

https://huntr.dev/bounties/7f0ec6bc-ea0e-45b0-8128-caac72d23425 https://github.com/vim/vim/commit/b55986c52d4cd88a22d0b0b0e8a79547ba13e1d5

— Red Hat

Use after free in utfptr2char in GitHub repository vim/vim prior to 8.2.4646.

— Launchpad

Affected Software

24 affected componentsFixes available
vim Vim<8.2.4646
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Oracle Communications Cloud Native Core Network Exposure Function=22.1.1
redhat/vim<8.2.4646
8.2.4646
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-r0
alpine/vim<8.2.4708-r0
8.2.4708-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+deb9u62:8.1.0875-5+deb10u32:8.2.4659-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.4646
  2. Upgrade

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

    Fixed in 8.2.4708-r0
  3. Upgrade

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

    Fixed in 2:8.2.4659-1
  4. Upgrade

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

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

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

    Fixed in 8.2.4646

Event History

Mar 30, 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·12:15 PM
DescriptionAffected Software
Apr 7, 2022
Data Sourced
via Red Hat·01:17 PM
DescriptionSeverityAffected Software
May 3, 2023
Data Sourced
12:15 PM
Weakness
Nov 7, 2023
Data Sourced
via NVD·03:41 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
03:41 AM
Affected Software
Nov 21, 2024
Updated
via NVD·06:40 AM
RemedyAffected Software
Jun 17, 2026
Updated
via NVD·04:21 AM
Affected Software
Nov 3, 2026
Data Sourced
via OSV·08:01 AM
Severity

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-1154?

CVE-2022-1154 is a vulnerability in the utf_ptr2char function in the GitHub repository vim/vim. It is a use after free vulnerability that exists in versions prior to 8.2.4646.

2

How does CVE-2022-1154 affect Vim?

CVE-2022-1154 affects Vim versions prior to 8.2.4646. It allows an attacker to cause a use after free condition in the utf_ptr2char function, potentially leading to arbitrary code execution.

3

What is the severity of CVE-2022-1154?

CVE-2022-1154 has a severity rating of high.

4

How can I fix CVE-2022-1154?

To fix CVE-2022-1154, update Vim to version 8.2.4646 or later.

5

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

You can find more information about CVE-2022-1154 in the references provided: https://huntr.dev/bounties/7f0ec6bc-ea0e-45b0-8128-caac72d23425, https://github.com/vim/vim/commit/b55986c52d4cd88a22d0b0b0e8a79547ba13e1d5, https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C2CQXRLBIC4S7JQVEIN5QXKQPYWB5E3J/

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