Vulnerability · Published Sep 5, 2023 · Assigned by @huntrdev
CVE-2023-4781Heap-based Buffer Overflow in vim/vim
High 7.8
In plain English
A high-severity heap buffer overflow in vim/vim from vim. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)7.8High
Exploit odds (30 days)0.6%top 52.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | vim | 9.0.1888-r0 | ALPINE-CVE-2023-4781 |
| Alpine:v3.21 | vim | 9.0.1888-r0 | ALPINE-CVE-2023-4781 |
| Alpine:v3.22 | vim | 9.0.1888-r0 | ALPINE-CVE-2023-4781 |
| Alpine:v3.23 | vim | 9.0.1888-r0 | ALPINE-CVE-2023-4781 |
| Alpine:v3.24 | vim | 9.0.1888-r0 | ALPINE-CVE-2023-4781 |
| Debian:12 | vim | 2:9.0.1378-2+deb12u1 | DEBIAN-CVE-2023-4781 |
| Debian:13 | vim | 2:9.0.1894-1 | DEBIAN-CVE-2023-4781 |
| Debian:14 | vim | 2:9.0.1894-1 | DEBIAN-CVE-2023-4781 |
| Ubuntu:22.04:LTS | vim | 2:8.2.3995-1ubuntu2.13 | UBUNTU-CVE-2023-4781 |
| Ubuntu:22.04:LTS | vim | 2:8.2.3995-1ubuntu2.13 | USN-6452-1 |
Affected products (as reported)
Weakness: CWE-122 · Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://huntr.dev/bounties/c867eb0a-aa8b-4946-a621-510350673883
- https://github.com/vim/vim/commit/f6d28fe2c95c678cc3202cc5dc825a3fcc709e93
- https://lists.debian.org/debian-lts-announce/2023/09/msg00035.html
- https://support.apple.com/kb/HT213984
- http://seclists.org/fulldisclosure/2023/Oct/24
- https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html