CVE-2021-3872: debian debian_linux Heap-based Buffer Overflow
CVSS: 7.8v3.0HighModified
AliasesUBUNTU-CVE-2021-3872DEBIAN-CVE-2021-3872
Published 19-10-2021Last modified 03-11-2025
Vulnerability summary
CVE-2021-3872 is a high (CVSS 7.8) Heap-based Buffer Overflow vulnerability in debian debian_linux. EPSS estimates a 1.49% chance of exploitation in the next 30 days, higher than 73.7% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
7.8/10
010
High · v3.0 (CVE.org)EPSS score
1.49%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference
Advisory lineage
Upstream 0 · Downstream 11 · Related 6Timeline
- 19-10-2021PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
vim is vulnerable to Heap-based Buffer Overflow
CVSS metrics
7 scores · 4 sources · 3 versionsHigh 7.8Preferred score · OSV · Ubuntu (Ecosystem advisory) · calculated from vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HSourcesAll 3 agree
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
High 7.8Preferred score · CVE.org (CNA)
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HSourcesAll 3 agree
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Medium 6.8Preferred score · NVD (NIST)
AV:N/AC:M/Au:N/C:P/I:P/A:PSourcesSingle source
EPSS trend
Probability
1.49%
Chance of exploitation in the next 30 days
Percentile
74%
Versus all other CVEs
30-day change
0.00 pp
From 1.49% on 19-09-2026
19-09-202619-10-2026
EPSS score1.49%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (huntr.dev)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-122Heap-based Buffer OverflowA heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Debian2 products
- vim< 2:8.2.3565-1
- debian_linuxEOL9.0
Fedoraproject1 product
- fedoraEOL33 | 35
Ubuntu1 product
- vim< 2:8.1.2269-1ubuntu5.4 | < 2:8.2.3565-1ubuntu2
4 vendors · 6 products
References
12 links- huntr.dev/bounties/c958013b-1c09-4939-92ca-92f50aa169e8X Refsource CONFIRMREPORTExploitPatchThird Party Advisory
- github.com/vim/vim/commit/826bfe4bbd7594188e3d74d2539d9707b1c6a14bX Refsource MISCREPORTPatchThird Party Advisory
- lists.debian.org/debian-lts-announce/2022/03/msg00018.htmlMailing ListX Refsource MLISTThird Party Advisory