CVE-2022-1621
CVE-2022-1621 · Heap buffer overflow in vim_strncpy find_word in vim/vim
CVSS 7.3 · High · EPSS 2.4% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- vim/vimUpdate to 8.2.4919
- vim Alpine 3.16Update to 8.2.4969-r0
- vim Alpine 3.17Update to 8.2.4969-r0
- vim Alpine 3.18Update to 8.2.4969-r0
- and 14 more
Check the installed version:
apk list -I -o vimAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Heap buffer overflow in vim_strncpy find_word in GitHub repository vim/vim prior to 8.2.4919. This vulnerability is capable of crashing software, Bypass Protection Mechanism, Modify Memory, and possible remote execution
- Published
- Updated
Fixes in distributions
- RHSA-2022:5242 · Red Hat Enterprise Linux 9 appstream, Red Hat Enterprise Linux 9 baseos ·
- RHSA-2022:5319 · Red Hat Enterprise Linux 8 appstream, Red Hat Enterprise Linux 8 baseos, Red Hat rhev hypervisor 4.4 el8 ·
- openSUSE-SU-2024:12337-1 · openSUSE Tumbleweed ·
- DLA-3204-1 · Debian 10 ·
- USN-5613-2 · Ubuntu 20.04 LTS ·
- USN-5613-1 · Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu Pro 14.04 LTS ·
- ALSA-2022:5242 · AlmaLinux 9 ·
- ALSA-2022:5319 · AlmaLinux 8 ·
- RLSA-2022:5319 · Rocky Linux 8 ·
- USN-5460-1 · Ubuntu Pro 16.04 LTS ·
- DLA-3011-1 · Debian 9 ·
Stack: system
Affected products and versions
vim/vim
- Versions
- ≥ unspecified, < 8.2.4919: Affected (custom)
Update to 8.2.4919
vim Alpine 3.16
- Affected ranges
- ECOSYSTEM: < 8.2.4969-r0
Update to 8.2.4969-r0
vim Alpine 3.17
- Affected ranges
- ECOSYSTEM: < 8.2.4969-r0
Update to 8.2.4969-r0
vim Alpine 3.18
- Affected ranges
- ECOSYSTEM: < 8.2.4969-r0
Update to 8.2.4969-r0
vim Alpine 3.19
- Affected ranges
- ECOSYSTEM: < 8.2.4969-r0
Update to 8.2.4969-r0
vim Alpine 3.20
- Affected ranges
- ECOSYSTEM: < 8.2.4969-r0
Update to 8.2.4969-r0
vim Alpine 3.21
- Affected ranges
- ECOSYSTEM: < 8.2.4969-r0
Update to 8.2.4969-r0
vim Alpine 3.22
- Affected ranges
- ECOSYSTEM: < 8.2.4969-r0
Update to 8.2.4969-r0
vim Alpine 3.23
- Affected ranges
- ECOSYSTEM: < 8.2.4969-r0
Update to 8.2.4969-r0
vim Alpine 3.24
- Affected ranges
- ECOSYSTEM: < 8.2.4969-r0
Update to 8.2.4969-r0
vim Debian 12
- Affected ranges
- ECOSYSTEM: < 2:9.0.0135-1
Update to 2:9.0.0135-1
vim Debian 13
- Affected ranges
- ECOSYSTEM: < 2:9.0.0135-1
Update to 2:9.0.0135-1
vim Debian 14
- Affected ranges
- ECOSYSTEM: < 2:9.0.0135-1
Update to 2:9.0.0135-1
vim Ubuntu Pro 14.04 LTS
- Versions
- 2:7.4.000-1ubuntu2
- 2:7.4.052-1ubuntu1
- 2:7.4.052-1ubuntu2
- 2:7.4.052-1ubuntu3
- 2:7.4.052-1ubuntu3.1
- 2:7.4.052-1ubuntu3.1+esm1
All versions (8)
- 2:7.4.052-1ubuntu3.1+esm3
- 2:7.4.052-1ubuntu3.1+esm4
- Affected ranges
- ECOSYSTEM: < 2:7.4.052-1ubuntu3.1+esm5
Update to 2:7.4.052-1ubuntu3.1+esm5
vim Ubuntu Pro 16.04 LTS
- Versions
- 2:7.4.712-2ubuntu4
- 2:7.4.826-1ubuntu1
- 2:7.4.826-1ubuntu2
- 2:7.4.826-1ubuntu3
- 2:7.4.963-1ubuntu1
- 2:7.4.963-1ubuntu4
All versions (17)
- 2:7.4.963-1ubuntu5
- 2:7.4.1689-3ubuntu1
- 2:7.4.1689-3ubuntu1.1
- 2:7.4.1689-3ubuntu1.2
- 2:7.4.1689-3ubuntu1.3
- 2:7.4.1689-3ubuntu1.4
- 2:7.4.1689-3ubuntu1.5
- 2:7.4.1689-3ubuntu1.5+esm2
- 2:7.4.1689-3ubuntu1.5+esm3
- 2:7.4.1689-3ubuntu1.5+esm4
- 2:7.4.1689-3ubuntu1.5+esm5
- Affected ranges
- ECOSYSTEM: < 2:7.4.1689-3ubuntu1.5+esm6
Update to 2:7.4.1689-3ubuntu1.5+esm6
vim Ubuntu 18.04 LTS
- Versions
- 2:8.0.0197-4ubuntu5
- 2:8.0.1144-1ubuntu1
- 2:8.0.1401-1ubuntu1
- 2:8.0.1401-1ubuntu2
- 2:8.0.1401-1ubuntu3
- 2:8.0.1453-1ubuntu1
All versions (12)
- 2:8.0.1453-1ubuntu1.1
- 2:8.0.1453-1ubuntu1.3
- 2:8.0.1453-1ubuntu1.4
- 2:8.0.1453-1ubuntu1.6
- 2:8.0.1453-1ubuntu1.7
- 2:8.0.1453-1ubuntu1.8
- Affected ranges
- ECOSYSTEM: < 2:8.0.1453-1ubuntu1.9
Update to 2:8.0.1453-1ubuntu1.9
vim Ubuntu 20.04 LTS
- Versions
- 2:8.1.0875-5ubuntu2
- 2:8.1.0875-5ubuntu3
- 2:8.1.0875-5ubuntu4
- 2:8.1.2269-1ubuntu1
- 2:8.1.2269-1ubuntu4
- 2:8.1.2269-1ubuntu5
All versions (10)
- 2:8.1.2269-1ubuntu5.3
- 2:8.1.2269-1ubuntu5.4
- 2:8.1.2269-1ubuntu5.6
- 2:8.1.2269-1ubuntu5.7
- Affected ranges
- ECOSYSTEM: < 2:8.1.2269-1ubuntu5.8
Update to 2:8.1.2269-1ubuntu5.8
vim Ubuntu 22.04 LTS
- Versions
- 2:8.2.2434-3ubuntu3
- 2:8.2.2434-3ubuntu4
- 2:8.2.3565-1ubuntu1
- 2:8.2.3565-1ubuntu2
- 2:8.2.3565-1ubuntu3
- 2:8.2.3565-1ubuntu5
All versions (8)
- 2:8.2.3995-1ubuntu1
- 2:8.2.3995-1ubuntu2
- Affected ranges
- ECOSYSTEM: < 2:8.2.3995-1ubuntu2.1
Update to 2:8.2.3995-1ubuntu2.1
Original sources
- https://huntr.dev/bounties/520ce714-bfd2-4646-9458-f52cd22bb2fb
- https://github.com/vim/vim/commit/7c824682d2028432ee082703ef0ab399867a089b
- https://lists.debian.org/debian-lts-announce/2022/05/msg00022.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIP7KG7TVS5YF3QREAY2GOGUT3YUBZAI/
- https://security.gentoo.org/glsa/202208-32
- https://support.apple.com/kb/HT213488
- http://seclists.org/fulldisclosure/2022/Oct/41
- http://seclists.org/fulldisclosure/2022/Oct/28
- https://lists.debian.org/debian-lts-announce/2022/11/msg00032.html
- https://security.gentoo.org/glsa/202305-16
- https://nvd.nist.gov/vuln/detail/CVE-2022-1621