CVE-2021-3770

NameCVE-2021-3770
Descriptionvim is vulnerable to Heap-based Buffer Overflow
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs994076

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
vim (PTS)jessie, jessie (lts)2:7.4.488-7+deb8u11fixed
stretch (security)2:8.0.0197-4+deb9u7fixed
stretch (lts), stretch2:8.0.0197-4+deb9u11fixed
buster2:8.1.0875-5+deb10u2fixed
buster (security)2:8.1.0875-5+deb10u6fixed
bullseye2:8.2.2434-3+deb11u1fixed
bookworm2:9.0.1378-2fixed
trixie2:9.1.0016-1fixed
sid2:9.1.0199-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
vimsourcejessie(not affected)
vimsourcestretch(not affected)
vimsourcebuster2:8.1.0875-5+deb10u1
vimsourcebullseye2:8.2.2434-3+deb11u1
vimsource(unstable)2:8.2.3455-1994076

Notes

https://huntr.dev/bounties/016ad2f2-07c1-4d14-a8ce-6eed10729365/
Fixed by: https://github.com/vim/vim/commit/b7081e135a16091c93f6f5f7525a5c58fb7ca9f9 (v8.2.3402)
Followup fix for introduced memory leak: https://github.com/vim/vim/commit/2ddb89f8a94425cda1e5491efc80c1ccccb6e08e (v8.2.3403)
https://www.openwall.com/lists/oss-security/2021/10/01/1
[stretch] - vim <not-affected> (introduced in 8.1.0105)
[jessie] - vim <not-affected> (introduced in 8.1.0105)

Search for package or bug name: Reporting problems