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.
Platform | Package | Release Date | Advisory |
---|---|---|---|
Amazon Linux 2 - Core | vim | 2024-01-03 21:04 | ALAS2-2024-2384 |
Amazon Linux 2 - Core | vim | 2024-02-15 03:52 | ALAS2-2024-2452 |
Amazon Linux 2023 | vim | 2024-02-15 02:51 | ALAS2023-2024-518 |
Amazon Linux 2023 | vim | 2024-01-03 23:20 | ALAS2023-2024-469 |
Score Type | Score | Vector | |
---|---|---|---|
Amazon Linux | CVSSv3 | 3.6 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L |
NVD | CVSSv3 | 3.6 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L |