CVE-2023-48706

vim: Vim is a UNIX editor that, prior to version 9.0.2121, has a heap-use-after-free vulnerability

CVE-2023-48706 is fixed in 21 products on 1 platform, first by vim 2:8.2.3995-1ubuntu2.15, released November 22, 2023. It is not reported as exploited. Patch Radar priority: Routine.

Routine
CVSS
4.7
medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0054
45th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
vim · Debian 13.5 (trixie) 2:9.0.2189-1 DEBIAN-CVE-2023-48706 Nov 22, 2023
vim · Debian 14 2:9.0.2189-1 DEBIAN-CVE-2023-48706 Nov 22, 2023
vim · Ubuntu 22.04.1 LTS (jammy) 2:8.2.3995-1ubuntu2.15 vim 2:8.2.3995-1ubuntu2.15 Nov 22, 2023
vim · Ubuntu 24.04.5 LTS (noble) 2:9.0.2116-1ubuntu2 vim 2:9.0.2116-1ubuntu2 Nov 22, 2023
vim-athena · Ubuntu 22.04.1 LTS (jammy) 2:8.2.3995-1ubuntu2.15 vim-athena 2:8.2.3995-1ubuntu2.15 Nov 22, 2023
vim-athena · Ubuntu 24.04.5 LTS (noble) 2:9.0.2116-1ubuntu2 vim-athena 2:9.0.2116-1ubuntu2 Nov 22, 2023
vim-common · Ubuntu 22.04.1 LTS (jammy) 2:8.2.3995-1ubuntu2.15 vim-common 2:8.2.3995-1ubuntu2.15 Nov 22, 2023
vim-common · Ubuntu 24.04.5 LTS (noble) 2:9.0.2116-1ubuntu2 vim-common 2:9.0.2116-1ubuntu2 Nov 22, 2023
vim-common · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024
vim-data · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024
vim-debuginfo · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024
vim-debugsource · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024
vim-default-editor · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024
vim-enhanced · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024
vim-enhanced-debuginfo · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024
vim-filesystem · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024
vim-gtk · Ubuntu 22.04.1 LTS (jammy) 2:8.2.3995-1ubuntu2.15 vim-gtk 2:8.2.3995-1ubuntu2.15 Nov 22, 2023
vim-gtk3 · Ubuntu 22.04.1 LTS (jammy) 2:8.2.3995-1ubuntu2.15 vim-gtk3 2:8.2.3995-1ubuntu2.15 Nov 22, 2023
vim-gtk3 · Ubuntu 24.04.5 LTS (noble) 2:9.0.2116-1ubuntu2 vim-gtk3 2:9.0.2116-1ubuntu2 Nov 22, 2023
vim-gui-common · Ubuntu 22.04.1 LTS (jammy) 2:8.2.3995-1ubuntu2.15 vim-gui-common 2:8.2.3995-1ubuntu2.15 Nov 22, 2023
vim-gui-common · Ubuntu 24.04.5 LTS (noble) 2:9.0.2116-1ubuntu2 vim-gui-common 2:9.0.2116-1ubuntu2 Nov 22, 2023
vim-minimal · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024
vim-minimal-debuginfo · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024
vim-motif · Ubuntu 24.04.5 LTS (noble) 2:9.0.2116-1ubuntu2 vim-motif 2:9.0.2116-1ubuntu2 Nov 22, 2023
vim-nox · Ubuntu 22.04.1 LTS (jammy) 2:8.2.3995-1ubuntu2.15 vim-nox 2:8.2.3995-1ubuntu2.15 Nov 22, 2023
vim-nox · Ubuntu 24.04.5 LTS (noble) 2:9.0.2116-1ubuntu2 vim-nox 2:9.0.2116-1ubuntu2 Nov 22, 2023
vim-runtime · Ubuntu 22.04.1 LTS (jammy) 2:8.2.3995-1ubuntu2.15 vim-runtime 2:8.2.3995-1ubuntu2.15 Nov 22, 2023
vim-runtime · Ubuntu 24.04.5 LTS (noble) 2:9.0.2116-1ubuntu2 vim-runtime 2:9.0.2116-1ubuntu2 Nov 22, 2023
vim-tiny · Ubuntu 22.04.1 LTS (jammy) 2:8.2.3995-1ubuntu2.15 vim-tiny 2:8.2.3995-1ubuntu2.15 Nov 22, 2023
vim-tiny · Ubuntu 24.04.5 LTS (noble) 2:9.0.2116-1ubuntu2 vim-tiny 2:9.0.2116-1ubuntu2 Nov 22, 2023
xxd · Ubuntu 22.04.1 LTS (jammy) 2:8.2.3995-1ubuntu2.15 xxd 2:8.2.3995-1ubuntu2.15 Nov 22, 2023
xxd · Ubuntu 24.04.5 LTS (noble) 2:9.0.2116-1ubuntu2 xxd 2:9.0.2116-1ubuntu2 Nov 22, 2023
xxd · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024
xxd-debuginfo · amzn 2023 2:9.0.2153-1.amzn2023 ALAS2023-2024-518 Feb 15, 2024

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.