CVE-2022-1898: Use After Free in vim/vim

Published May 27, 2022
·
Updated

Accelerate Framework. A memory consumption issue was addressed with improved memory handling.

Other sources

APFS. An access issue was addressed with improved access restrictions.

— Apple

Apple Neural Engine. The issue was addressed with improved memory handling.

— Apple

AppleAVD. A memory corruption issue was addressed with improved state management.

— Apple

AppleAVD. This issue was addressed with improved checks.

— Apple

AppleMobileFileIntegrity. A configuration issue was addressed with additional restrictions.

— Apple

Credit

CVE-2022-0261, CVE-2022-0318, CVE-2022-0319, CVE-2022-0351, CVE-2022-0359, CVE-2022-0361, CVE-2022-0368, CVE-2022-0392, CVE-2022-0554, CVE-2022-0572, CVE-2022-0629, CVE-2022-0685, CVE-2022-0696, CVE-2022-0714, CVE-2022-0729, CVE-2022-0943, CVE-2022-1381, CVE-2022-1420, CVE-2022-1725, CVE-2022-1616, CVE-2022-1619, CVE-2022-1620, CVE-2022-1621, CVE-2022-1629, CVE-2022-1674, CVE-2022-1733, CVE-2022-1735, CVE-2022-1769, CVE-2022-1927, CVE-2022-1942, CVE-2022-1968, CVE-2022-1851, CVE-2022-1897, CVE-2022-1898, CVE-2022-1720, CVE-2022-2000, CVE-2022-2042, CVE-2022-2124, CVE-2022-2125, CVE-2022-2126, Mohamed Ghannam@@_simo36, Yinyi Wu(Google Project Zero), ABC Research s.r.o(Google Project Zero), Natalie Silvanovich(Google Project Zero), Tommaso Bianco@@cutesmilee__, Antonio Zekic@@antoniozekic, John Aakerblom@@jaakerblom, Antonio Zekic@@antoniozekic(Google Project Zero), an anonymous researcher, Wojciech Reguła@@_r3ggi(SecuRing), Koh M. Nakagawa(FFRI Security Inc), Mickey Jin@@patch1t, Anonymous(Trend Micro Zero Day Initiative), ABC Research s.r.o., Jonathan Bar Or(Microsoft), Mickey Jin@@patch1t(Trend Micro), Jonathan Zhang(Open Computing Facility), David Hoyt(Hoyt LLC), Guilherme Rambo(Best Buddy Apps), Halle Winkler@@hallewinkler(Politepix), Thijs Alkemade(Computest Sector 7), Arsenii Kostromin, Arsenii Kostromin (0x3c3e), Kshitij Kumar(Crowdstrike), Jai Musunuri(Crowdstrike), CVE-2022-32205, CVE-2022-32206, CVE-2022-32207, CVE-2022-32208, Sergii Kryvoblotskyi(MacPaw Inc), Linus Henze(Pinauten GmbH), Tommy Muir@@Muirey03, Jiří Vinopal@@vinopaljiri(Check Point Research), Sonali Luthar(the University of Virginia), Michael Liao(the University of Illinois at Urbana), Rohan Pahwa(Rutgers University), (University of Florida), Bao Nguyen(University of Florida), Bistrit Dahal, Csaba Fitzl@@theevilbit(Offensive Security), Wojciech Reguła(SecuRing), Ron Masas (breakpoint.sh)(BreakPoint Technologies LTD), Pan ZhenPeng@@Peterpan0927, Asahi Lina@@LinaAsahi, Yutao Wang@@Jack, Yu Zhou@@yuzhou6666, Evgeny Legerov(Intevydis), Joshua Jones, Yiğit Can YILMAZ@@yilmazcanyigit, CVE-2022-1622, Peter Pan ZhenPeng(STAR Labs), Tingting Yin(Tsinghua University), Zweig(Kunlun Lab), Ian Beer(Google Project Zero), Tim Michaud@@TimGMichaud(Moveworks), Xinru Chi(Pangu Lab), Ron Masas(breakpointhq), Xingwei Lin@@xwlin_roy(Ant Security Light), Yinyi Wu(Ant Security Light), CVE-2021-39537, CVE-2022-29458, Gustav Hansen(WithSecure), Ubeydullah Sümer, Ezekiel Elin, Ashwani Rajput(Nagarro Software Pvt), Srijan Shivam Mishra(The Hack Report), Jugal Goradia(Aastha Technologies), Evan Ricafort (evanricafort.com)(Invalid Web Security), Shesha Sai C (linkedin.com/in/shesha-sai-c-18585b125)(Pune), (Pune), Amod Raghunath Patwardhan(Pune), India, CVE-2022-28739, Rohit Chatterjee(University of Illinois Urbana), Justin Bui@@slyd0g(Snowflake), Cristian Dinca(Tudor Vianu National High School of Computer Science of), Om kothawade(Zaprico Digital), Andrew Goldberg(The McCombs School of Business), The University(Texas at Austin), Felix Poulin-Belanger, CVE-2021-36690, Adam Chester(TrustedSec), Thijs Alkemade@@xnyhps(Computest Sector 7), Francisco Alonso@@revskills, P1umer@@p1umer, afang@@afang5472, xmzyshypnc@@xmzyshypnc1, Jeonghoon Shin at Theori@@singi21a(Trend Micro Zero Day Initiative), Jihwan Kim@@gPayl0ad, Dohyun Lee@@l33d0hyun, Dohyun Lee@@l33d0hyun(SSD Labs), Abdulrahman Alqabandi(Microsoft Browser Vulnerability Research), Ryan Shin(IAAI SecLab at Korea University), Dohyun Lee@@l33d0hyun(DNSLab at Korea University), Wonyoung Jung@@nonetype_pwn(KAIST Hacking Lab), Yonghwi Jin at Theori@@jinmo123(Trend Micro Zero Day Initiative), 楼梦想改造家@@18(DBAppSecurity's WeBin lab), @@jq0904(DBAppSecurity's WeBin lab), Jeff Johnson, Wang Yu(Cyberserval), Evgeny Legerov, ryuzaki

Affected Software

20 affected componentsFixes available
Apple macOS Ventura<13
13
vim Vim<8.2.5024
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Apple macOS<13.0
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:9.0.1378-2+deb12u22:9.1.1230-22:9.1.1230-2+deb13u12:9.2.0858-1
alpine/vim<8.2.5055-r0
8.2.5055-r0
alpine/vim<8.2.5055-r0
8.2.5055-r0
alpine/vim<8.2.5055-r0
8.2.5055-r0
alpine/vim<8.2.5055-r0
8.2.5055-r0
alpine/vim<8.2.5055-r0
8.2.5055-r0
alpine/vim<8.2.5055-r0
8.2.5055-r0
alpine/vim<8.2.5055-r0
8.2.5055-r0
alpine/vim<8.2.5055-r0
8.2.5055-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade macOS Ventura to a version that resolves this vulnerability.

    Fixed in 13
  2. Upgrade

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

    Fixed in 2:9.0.1378-2+deb12u2Fixed in 2:9.1.1230-2Fixed in 2:9.1.1230-2+deb13u1Fixed in 2:9.2.0858-1
  3. Upgrade

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

    Fixed in 8.2.5055-r0
  4. Upgrade

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

    Fixed in 2:9.0.0135-1
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 13
  6. Upgrade

    Upgrade Ruby to a version that resolves this vulnerability.

    Fixed in 2.6.10
  7. Upgrade

    Upgrade curl to a version that resolves this vulnerability.

    Fixed in 7.84.0
  8. Upgrade

    Upgrade Vim to a version that resolves this vulnerability.

    Fixed in 8.2

Event History

May 27, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·09:15 AM
DescriptionSeverityAffected Software
Oct 24, 2022
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-1898?

CVE-2022-1898 is a vulnerability in the GitHub repository vim/vim that allows for Use After Free.

2

Which software versions are affected by CVE-2022-1898?

The macOS Ventura version up to 13 and the Ubuntu vim package versions up to 8.2.5024, 2:8.0.1453-1ubuntu1.12, 2:8.1.2269-1ubuntu5.13, and 2:8.2.3995-1ubuntu2.5 are affected by CVE-2022-1898.

3

How do I fix CVE-2022-1898 on macOS Ventura?

To fix CVE-2022-1898 on macOS Ventura, update to version 13 of Apple macOS Ventura.

4

How do I fix CVE-2022-1898 on Ubuntu?

To fix CVE-2022-1898 on Ubuntu, update the vim package to version 8.2.5024, 2:8.0.1453-1ubuntu1.12, 2:8.1.2269-1ubuntu5.13, or 2:8.2.3995-1ubuntu2.5.

5

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

You can find more information about CVE-2022-1898 on the following references: [Apple Support](https://support.apple.com/en-us/HT213488), [CVE Mitre](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1898), [Huntr](https://huntr.dev/bounties/45aad635-c2f1-47ca-a4f9-db5b25979cea).

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