CVE-2023-48706
published 2023-11-22CVE-2023-48706: 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…
PriorityP417medium4.7CVSS 3.1
AVLACHPRNUIRSUCNINAH
EPSS
0.44%
35.8th 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.
Affected
10 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | vim | < vim 2:9.0.2189-1 (forky) | vim 2:9.0.2189-1 (forky) |
| msrc | cbl2_vim_9.0.2121-1_on_cbl_mariner_2.0 | — | — |
| vim | vim | < 9.0.2121 | 9.0.2121 |
| vim | vim | >= 0 < 2:9.0.2189-1 | 2:9.0.2189-1 |
| vim | vim | >= 0 < 2:9.0.2189-1 | 2:9.0.2189-1 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.21 | 2:8.1.2269-1ubuntu5.21 |
| vim | vim | >= 0 < 2:8.2.3995-1ubuntu2.15 | 2:8.2.3995-1ubuntu2.15 |
| vim | vim | >= 0 < 2:7.4.052-1ubuntu3.1+esm15 | 2:7.4.052-1ubuntu3.1+esm15 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5+esm22 | 2:7.4.1689-3ubuntu1.5+esm22 |
| vim | vim | >= 0 < 2:8.0.1453-1ubuntu1.13+esm7 | 2:8.0.1453-1ubuntu1.13+esm7 |
CVSS provenance
nvdv3.14.7MEDIUMCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_ubuntu5.5MEDIUM
vendor_msrc4.7MEDIUM
vendor_debian3.6LOW
vendor_redhat3.6LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
VulDB
vim up to 9.0.2120 s Command use after free (GHSA-c8qm-x72m-q53q / Nessus ID 238005)
vuldb·2026-06-24·CVSS 4.7
CVE-2023-48706 [MEDIUM] vim up to 9.0.2120 s Command use after free (GHSA-c8qm-x72m-q53q / Nessus ID 238005)
A vulnerability described as critical has been identified in vim up to 9.0.2120. This affects an unknown function of the component s Command Handler. Executing a manipulation can lead to use after free.
The identification of this vulnerability is CVE-2023-48706. The attack may be launched remotely. There is no exploit available.
Upgrading the affected component is recommended.
OSV
vim vulnerabilities
osv·2023-12-14·CVSS 5.5
CVE-2022-1725 [MEDIUM] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim could be made to dereference invalid memory. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04
LTS. (CVE-2022-1725)
It was discovered that Vim could be made to recurse infinitely. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS,
Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2022-1771)
It was discovered that Vim could be made to write out of bounds with a put
command. An attacker could possibly use this issue to cause a denial of
service or execute arbitrary code. This issue only affected Ubuntu 22.04
LTS. (CVE-2022-1886)
It was discovered tha
OSV
CVE-2023-48706: Vim is a UNIX editor that, prior to version 9
osv·2023-11-22·CVSS 4.7
CVE-2023-48706 [MEDIUM] CVE-2023-48706: Vim is a UNIX editor that, prior to version 9
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.
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2023-12-14·CVSS 5.5
CVE-2023-48706 [MEDIUM] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim could be made to dereference invalid memory. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, and Ubuntu 22.04
LTS. (CVE-2022-1725)
It was discovered that Vim could be made to recurse infinitely. An
attacker could possibly use this issue to cause a denial of service. This
issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS,
Ubuntu 20.04 LTS, and Ubuntu 22.04 LTS. (CVE-2022-1771)
It was discovered that Vim could be made to write out of bounds with a put
command. An attacker could possibly use this issue to cause a denial of
service or execute arbitrary code. This issue only affec
Red Hat
vim: use-after-free in ex_substitute in Vim
vendor_redhat·2023-11-22·CVSS 3.6
CVE-2023-48706 [LOW] CWE-416 vim: use-after-free in ex_substitute in Vim
vim: use-after-free in ex_substitute in Vim
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.
A heap use-after-free flaw was found in the vim package. When executing a `:s` command for the first time and using a sub-replace-special atom inside the substituti
Microsoft
Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite
vendor_msrc·2023-11-14·CVSS 4.7
CVE-2023-48706 [LOW] CWE-416 Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite
Vim has heap-use-after-free at /src/charset.c:1770:12 in skipwhite
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
GitHub_M: GitHub_M
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Referen
Debian
CVE-2023-48706: vim - Vim is a UNIX editor that, prior to version 9.0.2121, has a heap-use-after-free ...
vendor_debian·2023·CVSS 3.6
CVE-2023-48706 [LOW] CVE-2023-48706: vim - Vim is a UNIX editor that, prior to version 9.0.2121, has a heap-use-after-free ...
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.
Scope: local
bookworm: open
bullseye: open
forky: resolved (fixed in 2:9.0.2189-1)
sid: resolved (fixed in 2:9.0.2189-1)
trixie: resolved (fixed in 2:9.0.2189-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
http://www.openwall.com/lists/oss-security/2023/11/22/3https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huafhttps://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bbhttps://github.com/vim/vim/pull/13552https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53qhttps://lists.fedoraproject.org/archives/list/[email protected]/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/https://lists.fedoraproject.org/archives/list/[email protected]/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/https://security.netapp.com/advisory/ntap-20240105-0001/http://www.openwall.com/lists/oss-security/2023/11/22/3https://github.com/gandalf4a/crash_report/blob/main/vim/vim_huafhttps://github.com/vim/vim/commit/26c11c56888d01e298cd8044caf860f3c26f57bbhttps://github.com/vim/vim/pull/13552https://github.com/vim/vim/security/advisories/GHSA-c8qm-x72m-q53qhttps://lists.fedoraproject.org/archives/list/[email protected]/message/DNMFS3IH74KEMMESOA3EOB6MZ56TWGFF/https://lists.fedoraproject.org/archives/list/[email protected]/message/IVA7K73WHQH4KVFDJQ7ELIUD2WK5ZT5E/https://security.netapp.com/advisory/ntap-20240105-0001/
2023-11-22
Published