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 Software | Affected Version | How 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 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The vulnerability ID for this Vim vulnerability is CVE-2023-48706.
The severity rating of CVE-2023-48706 is medium.
The affected software for CVE-2023-48706 is Vim version up to exclusive 9.0.2121.
The CWE ID for CVE-2023-48706 is CWE-416.
To fix CVE-2023-48706, upgrade Vim to version 9.0.2121 or higher.