CVE-2021-3872
vim is vulnerable to Heap-based Buffer Overflow
Affects 3 products across 3 vendors.
Buffer overflow corrupting dynamically allocated heap memory, exploitable for arbitrary code execution.
Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.
Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.
vim is vulnerable to a Heap-based Buffer Overflow, which could allow an attacker to execute arbitrary code with the privileges of the user running vim.
BSID: BS-2021-GLOBAL-010763-H • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: HIGH
Is this CVE in your environment?
BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.
Check My Environment →What is CVE-2021-3872?
What is the CVSS score for CVE-2021-3872?
Is CVE-2021-3872 actively exploited?
How do I remediate CVE-2021-3872?
What systems are affected by CVE-2021-3872?
| CVE ID | CVE-2021-3872 |
|---|---|
| BSID | BS-2021-GLOBAL-010763-H BreachSpider Global ID |
| CVSS Vector | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2021-10-19 |
| Last Modified | 2025-11-03 |
| ICS Relevance | 15% |
| Weakness (CWE) | |
| Source | NVD |
vim is vulnerable to Heap-based Buffer Overflow
Source: NIST NVD / MITRE CVE Database
An attacker can exploit this vulnerability by crafting a specially crafted file that, when opened with vim, triggers the buffer overflow. This can lead to arbitrary code execution.
Exploitation Likelihood: MEDIUM
| Vendor | Product | Affected Versions |
|---|---|---|
| Debian | Debian Linux | 9.0 |
| Fedoraproject | Fedora | 33 35 |
| Vim | Vim | < 8.2.3487 |
No official vendor advisory link on record. See the CVE record →
| CISA known-exploited | Not in KEV catalog |
|---|---|
| Public Exploit | Not confirmed |
| PoC Code | Not confirmed |
AI Enrichment Record — provenance & audit hash
| Model | /workspace/models/qwen2.5-coder-32b-instruct-bf16 |
|---|---|
| Confidence | HIGH |
| Enriched At | 2026-05-24 |
| SHA-512 Audit Hash | f0ce4164223452c5ae8bc454008c82937ea70a5fed24d56b307df1935b22edaa7ee28b5fba74893b1450c88666caf39c5c2771bbd08343a12137e79b22434470 |
ICS/OT Vulnerability Intelligence for Your Environment
BreachSpider tracks 384,000+ CVEs and matches them to your ICS/OT assets by exact version, with AI analysis, NERC CIP mapping, and vendor PSIRT contacts.
Create a free account →