| Name | CVE-2021-4136 | 
| Description | vim is vulnerable to Heap-based Buffer Overflow | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| Debian Bugs | 1002534 | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| vim (PTS) | bullseye | 2:8.2.2434-3+deb11u1 | vulnerable | 
|  | bullseye (security) | 2:8.2.2434-3+deb11u3 | vulnerable | 
|  | bookworm | 2:9.0.1378-2+deb12u2 | fixed | 
|  | forky, trixie | 2:9.1.1230-2 | fixed | 
|  | sid | 2:9.1.1882-1 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|
| vim | source | stretch | (not affected) |  |  |  | 
| vim | source | buster | (not affected) |  |  |  | 
| vim | source | (unstable) | 2:8.2.3995-1 | unimportant |  | 1002534 | 
Notes
[buster] - vim <not-affected> (Vulnerable code introduced later)
[stretch] - vim <not-affected> (Vulnerable code introduced later)
https://huntr.dev/bounties/5c6b93c1-2d27-4e98-a931-147877b8c938
Introduced by: https://github.com/vim/vim/commit/2949cfdbe4335b9abcfeda1be4dfc52090ee1df6 (v8.2.2257)
Fixed by: https://github.com/vim/vim/commit/605ec91e5a7330d61be313637e495fa02a6dc264 (v8.2.3847)
Crash in CLI tool, no security impact