Heap-based Buffer Overflow in vim/vim prior to 8.2.
{
"cna_assigner": "@huntrdev",
"cwe_ids": [
"CWE-122"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0318.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "8.2.4151"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "57df9e8a9f9ae1aafdde9b86b10ad907627a87dc"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0318.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "185609456401256808749557342718600302532",
"length": 2055
},
"id": "CVE-2022-0318-15a45b73",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/vim/vim/commit/57df9e8a9f9ae1aafdde9b86b10ad907627a87dc",
"target": {
"file": "src/ops.c",
"function": "block_insert"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"146200493773228420153804765641940418619",
"41798750948356645296895828374400672185",
"249071568100977596529943358076663781354",
"42074104476779211782062219246975541076"
],
"threshold": 0.9
},
"id": "CVE-2022-0318-48892485",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/vim/vim/commit/57df9e8a9f9ae1aafdde9b86b10ad907627a87dc",
"target": {
"file": "src/version.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"30611656252976531030968605290174757545",
"79215017267049410677040835988535171856",
"40616642968006461493646822850436515186",
"104681169114383353734575286103238782813",
"56905480528267094965810875054962773362",
"217534672876192074346957841018930049641",
"136077788907578440208623652201099562831",
"130393735207992051635286806256925678169",
"154576114361957644803049941487402575647",
"91055586033602701622665629167778669553",
"4135251459301818880010027857199334675",
"149753071482292862995414857297902645030",
"273484803810832582298323500964171325407",
"60996769287742278189613558677247344896",
"136321368573343264886946243828473243806",
"212564335023250373360532484346805302927",
"302950275746372609166102219034765192498"
],
"threshold": 0.9
},
"id": "CVE-2022-0318-eb3d3de8",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/vim/vim/commit/57df9e8a9f9ae1aafdde9b86b10ad907627a87dc",
"target": {
"file": "src/ops.c"
}
}
]
"2026-10-21T08:15:16Z"