CVE-2021-4019 | Heap-based Buffer Overflow in vim/vim

Exp

vim is vulnerable to Heap-based Buffer Overflow

Published: 2021-12-01 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2021-4019 is rated High Exploit Risk (74.3/100): CVSS High severity, with medium exploitation likelihood (EPSS 1.80%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +1.66% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2021-4019

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2021-4019

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.14% 1.80% +1.66%
2 2026-05-30 0.27% 0.14% -0.13%
3 2026-05-08 0.27%

Full EPSS history (18 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2021-4019

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 5.9 [email protected]
7.1 3.0 HIGH
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.5 4.0 [email protected]
6.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.6 6.4 [email protected]

Weakness enumeration for CVE-2021-4019

OS Trackers for CVE-2021-4019

vendor priority summary link
alpine CVE-2021-4019: 1 source package rows (vim); 50 state rows across 9 repos (3.11-main, 3.12-main, 3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 8, open 42. https://security.alpinelinux.org/vuln/CVE-2021-4019
debian not yet assigned CVE-2021-4019 not yet assigned priority: Debian including 1 source packages (vim), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2021-4019
gentoo low CVE-2021-4019: 1 GLSA(s) (202208-32), 3 atom(s) (app-editors/gvim, app-editors/vim, app-editors/vim-core); latest impact low. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2021-4019
redhat medium https://access.redhat.com/security/cve/CVE-2021-4019
suse medium CVE-2021-4019 severity moderate: SUSE including 289 source package names (0.49.0.18.8:vim-8.0.1568-5.17.1, 0.49.0.18.8:vim-data-common-8.0.1568-5.17.1, …), 725 product×package rows across 207 product lines (Container ses/7.1/ceph/haproxy, Container suse/sle-micro-rancher/5.2, … (207 product lines)): Fixed 536, Known Affected 178, Known Not Affected 11. https://www.suse.com/security/cve/CVE-2021-4019/
ubuntu medium CVE-2021-4019 medium priority: Ubuntu including 1 source packages (vim), 13 status rows across 13 suites (bionic, focal, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, trusty, upstream, xenial): not-affected 6, released 6, ignored 1. https://ubuntu.com/security/CVE-2021-4019

Affected software / configurations for CVE-2021-4019

Vendor Product Version Raw CPE
neovim neovim < 0.7.0 cpe:2.3:a:neovim:neovim:*:*:*:*:*:*:*:*
vim vim < 8.2.3669 cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*
fedoraproject fedora 34 cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
fedoraproject fedora 35 cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
debian debian_linux 10.0 cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
debian debian_linux 11.0 cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

References for CVE-2021-4019

URL Tags
http://www.openwall.com/lists/oss-security/2022/01/15/1 Mailing List Third Party Advisory
https://github.com/vim/vim/commit/bd228fd097b41a798f90944b5d1245eddd484142 Patch Third Party Advisory
https://huntr.dev/bounties/d8798584-a6c9-4619-b18f-001b9a6fca92 Exploit Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/03/msg00018.html Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2022/11/msg00009.html Mailing List Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DRPAI5JVZLI7WHWSBR6NWAPBQAYUQREW/ Broken Link Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FNXY7T5OORA7UJIMGSJBGHFMU6UZWS6P/ Broken Link Third Party Advisory
https://security.gentoo.org/glsa/202208-32 Third Party Advisory
https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html Third Party Advisory
cvelogic Threat Intelligence