Vulnerability · Published Dec 19, 2021 · Assigned by @huntrdev
CVE-2021-4136Heap-based Buffer Overflow in vim/vim
High 7.3
In plain English
A high-severity heap buffer overflow in vim/vim from vim. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.0)7.3High
Exploit odds (30 days)2.0%top 19.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
vim is vulnerable to Heap-based Buffer Overflow
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4136 |
| Alpine:v3.21 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4136 |
| Alpine:v3.22 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4136 |
| Alpine:v3.23 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4136 |
| Alpine:v3.24 | vim | 8.2.4173-r0 | ALPINE-CVE-2021-4136 |
| Debian:12 | vim | 2:8.2.3995-1 | DEBIAN-CVE-2021-4136 |
| Debian:13 | vim | 2:8.2.3995-1 | DEBIAN-CVE-2021-4136 |
| Debian:14 | vim | 2:8.2.3995-1 | DEBIAN-CVE-2021-4136 |
| Ubuntu:22.04:LTS | vim | 2:8.2.3995-1ubuntu2 | UBUNTU-CVE-2021-4136 |
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:L
References
- https://huntr.dev/bounties/5c6b93c1-2d27-4e98-a931-147877b8c938 x_refsource_CONFIRM
- https://github.com/vim/vim/commit/605ec91e5a7330d61be313637e495fa02a6dc264 x_refsource_MISC
- FEDORA-2022-a3d70b50f0 vendor-advisory, x_refsource_FEDORA
- [oss-security] 20220114 Re: 3 new CVE's in vim mailing-list, x_refsource_MLIST
- FEDORA-2022-48b86d586f vendor-advisory, x_refsource_FEDORA
- https://support.apple.com/kb/HT213183 x_refsource_CONFIRM
- 20220314 APPLE-SA-2022-03-14-4 macOS Monterey 12.3 mailing-list, x_refsource_FULLDISC
- https://support.apple.com/kb/HT213256 x_refsource_CONFIRM
- 20220516 APPLE-SA-2022-05-16-3 macOS Big Sur 11.6.6 mailing-list, x_refsource_FULLDISC
- https://support.apple.com/kb/HT213343 x_refsource_CONFIRM
- 20220721 APPLE-SA-2022-07-20-4 Security Update 2022-005 Catalina mailing-list, x_refsource_FULLDISC
- GLSA-202208-32 vendor-advisory, x_refsource_GENTOO