CWE
416
Advisory Published
CVE Published
Updated

CVE-2023-48706: Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite

First published: Wed Nov 22 2023(Updated: )

Vim is a UNIX editor that, prior to version 9.0.2121, has a heap-use-after-free vulnerability. When executing a `:s` command for the very first time and using a sub-replace-special atom inside the substitution part, it is possible that the recursive `:s` call causes free-ing of memory which may later then be accessed by the initial `:s` command. The user must intentionally execute the payload and the whole process is a bit tricky to do since it seems to work only reliably for the very first :s command. It may also cause a crash of Vim. Version 9.0.2121 contains a fix for this issue.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Vim Vim<9.0.2121
debian/vim<=2:8.1.0875-5+deb10u2<=2:8.1.0875-5+deb10u6<=2:8.2.2434-3+deb11u1<=2:9.0.1378-2
2:9.1.0016-1
2:9.1.0377-1
ubuntu/vim<2:8.2.3995-1ubuntu2.15
2:8.2.3995-1ubuntu2.15
ubuntu/vim<2:9.0.1000-4ubuntu3.3
2:9.0.1000-4ubuntu3.3
ubuntu/vim<2:9.0.1672-1ubuntu2.2
2:9.0.1672-1ubuntu2.2
ubuntu/vim<2:9.0.2116-1ubuntu2
2:9.0.2116-1ubuntu2
ubuntu/vim<9.0.2121
9.0.2121

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the vulnerability ID for this Vim vulnerability?

    The vulnerability ID for this Vim vulnerability is CVE-2023-48706.

  • What is the severity rating of CVE-2023-48706?

    The severity rating of CVE-2023-48706 is medium.

  • What is the affected software for CVE-2023-48706?

    The affected software for CVE-2023-48706 is Vim version up to exclusive 9.0.2121.

  • What is the CWE ID for CVE-2023-48706?

    The CWE ID for CVE-2023-48706 is CWE-416.

  • How do I fix CVE-2023-48706?

    To fix CVE-2023-48706, upgrade Vim to version 9.0.2121 or higher.

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203