CVE-2023-4781
published 2023-09-05CVE-2023-4781: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.
PriorityP334high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
0.61%
44.5th percentile
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.
Affected
16 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apple | macos | < 14.1 | 14.1 |
| apple | macos_sonoma | — | — |
| debian | debian_linux | — | — |
| debian | vim | < vim 2:9.0.1378-2+deb12u1 (bookworm) | vim 2:9.0.1378-2+deb12u1 (bookworm) |
| msrc | cbl2_vim_9.0.1897-1_on_cbl_mariner_2.0 | — | — |
| vim | vim | < 9.0.1873 | 9.0.1873 |
| vim | vim | >= 0 < 2:8.2.2434-3+deb11u2 | 2:8.2.2434-3+deb11u2 |
| vim | vim | >= 0 < 2:9.0.1378-2+deb12u1 | 2:9.0.1378-2+deb12u1 |
| vim | vim | >= 0 < 2:9.0.1894-1 | 2:9.0.1894-1 |
| vim | vim | >= 0 < 2:9.0.1894-1 | 2:9.0.1894-1 |
| vim | vim | >= 0 < 2:8.1.2269-1ubuntu5.20 | 2:8.1.2269-1ubuntu5.20 |
| vim | vim | >= 0 < 2:8.2.3995-1ubuntu2.13 | 2:8.2.3995-1ubuntu2.13 |
| vim | vim | >= 0 < 2:7.4.052-1ubuntu3.1+esm14 | 2:7.4.052-1ubuntu3.1+esm14 |
| vim | vim | >= 0 < 2:7.4.1689-3ubuntu1.5+esm20 | 2:7.4.1689-3ubuntu1.5+esm20 |
| vim | vim | >= 0 < 2:8.0.1453-1ubuntu1.13+esm6 | 2:8.0.1453-1ubuntu1.13+esm6 |
| vim | vim_vim | >= unspecified < 9.0.1873 | 9.0.1873 |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv3.07.8HIGHCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_debian7.8HIGH
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.8HIGH
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.1858 heap-based overflow (Nessus ID 233548)
vuldb·2026-06-23·CVSS 7.8
CVE-2023-4781 [HIGH] vim up to 9.0.1858 heap-based overflow (Nessus ID 233548)
A vulnerability was found in vim. It has been rated as critical. Affected by this vulnerability is an unknown functionality. The manipulation leads to heap-based buffer overflow.
This vulnerability is documented as CVE-2023-4781. The attack can be initiated remotely. There is not any exploit available.
Upgrading the affected component is advised.
OSV
vim vulnerabilities
osv·2023-10-25·CVSS 7.8
CVE-2023-3896 [HIGH] vim vulnerabilities
vim vulnerabilities
It was discovered that Vim could be made to divide by zero. An attacker
could possibly use this issue to cause a denial of service. This issue
only affected Ubuntu 23.04. (CVE-2023-3896)
It was discovered that Vim did not properly manage memory. An attacker
could possibly use this issue to cause a denial of service or execute
arbitrary code. (CVE-2023-4733, CVE-2023-4750)
It was discovered that Vim contained an arithmetic overflow. An attacker
could possibly use this issue to cause a denial of service. This issue
only affected Ubuntu 22.04 LTS, Ubuntu 23.04, and Ubuntu 23.10.
(CVE-2023-4734)
It was discovered that Vim could be made to write out of bounds. An
attacker could possibly use this issue to cause a denial of service or
execute arbitrary code. (CVE-2023-4735
GHSA
GHSA-hvfg-rr99-vxgg: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9
ghsa_unreviewed·2023-09-05
CVE-2023-4781 [HIGH] CWE-122 GHSA-hvfg-rr99-vxgg: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.
OSV
CVE-2023-4781: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9
osv·2023-09-05·CVSS 7.8
CVE-2023-4781 [HIGH] CVE-2023-4781: Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.
Ubuntu
Vim vulnerabilities
vendor_ubuntu·2023-10-25·CVSS 7.8
CVE-2023-4752 [HIGH] Vim vulnerabilities
Title: Vim vulnerabilities
Summary: Several security issues were fixed in Vim.
It was discovered that Vim could be made to divide by zero. An attacker
could possibly use this issue to cause a denial of service. This issue
only affected Ubuntu 23.04. (CVE-2023-3896)
It was discovered that Vim did not properly manage memory. An attacker
could possibly use this issue to cause a denial of service or execute
arbitrary code. (CVE-2023-4733, CVE-2023-4750)
It was discovered that Vim contained an arithmetic overflow. An attacker
could possibly use this issue to cause a denial of service. This issue
only affected Ubuntu 22.04 LTS, Ubuntu 23.04, and Ubuntu 23.10.
(CVE-2023-4734)
It was discovered that Vim could be made to write out of bounds. An
attacker could possibly use this issue to cause a
Apple
CVE-2023-4781: macOS Sonoma 14.1
vendor_apple·2023-10-25·CVSS 7.8
CVE-2023-4781 [HIGH] CVE-2023-4781: macOS Sonoma 14.1
Apple Security Update: About the security content of macOS Sonoma 14.1
Product: macOS Sonoma
Version: 14.1
CVE: CVE-2023-4781
Component: CVE-2023-4781
Microsoft
Heap-based Buffer Overflow in vim/vim
vendor_msrc·2023-09-12·CVSS 7.8
CVE-2023-4781 [HIGH] CWE-122 Heap-based Buffer Overflow in vim/vim
Heap-based Buffer Overflow in vim/vim
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
@huntrdev: @huntrdev
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft
Red Hat
vim: heap-buffer-overflow in function vim_regsub_both in vim/vim
vendor_redhat·2023-09-05·CVSS 7.8
CVE-2023-4781 [HIGH] CWE-122 vim: heap-buffer-overflow in function vim_regsub_both in vim/vim
vim: heap-buffer-overflow in function vim_regsub_both in vim/vim
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.
Statement: Red Hat Product Security has rated this issue as having a Low security impact because the "victim" has to run an untrusted file IN SCRIPT MODE. Someone who is running untrusted files in script mode is equivalent to someone just taking a random Python script and running it.
For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/
Package: vim (Red Hat Enterprise Linux 8) - Fix deferred
Package: vim (Red Hat Enterprise Linux 9) - Fix deferred
Debian
CVE-2023-4781: vim - Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.
vendor_debian·2023·CVSS 7.8
CVE-2023-4781 [HIGH] CVE-2023-4781: vim - Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.
Scope: local
bookworm: resolved (fixed in 2:9.0.1378-2+deb12u1)
bullseye: resolved (fixed in 2:8.2.2434-3+deb11u2)
forky: resolved (fixed in 2:9.0.1894-1)
sid: resolved (fixed in 2:9.0.1894-1)
trixie: resolved (fixed in 2:9.0.1894-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
http://seclists.org/fulldisclosure/2023/Oct/24https://github.com/vim/vim/commit/f6d28fe2c95c678cc3202cc5dc825a3fcc709e93https://huntr.dev/bounties/c867eb0a-aa8b-4946-a621-510350673883https://lists.debian.org/debian-lts-announce/2023/09/msg00035.htmlhttps://support.apple.com/kb/HT213984http://seclists.org/fulldisclosure/2023/Oct/24https://github.com/vim/vim/commit/f6d28fe2c95c678cc3202cc5dc825a3fcc709e93https://huntr.dev/bounties/c867eb0a-aa8b-4946-a621-510350673883https://lists.debian.org/debian-lts-announce/2023/09/msg00035.htmlhttps://lists.debian.org/debian-lts-announce/2025/03/msg00023.htmlhttps://support.apple.com/kb/HT213984
2023-09-05
Published