Use After Free in GitHub repository vim/vim prior to 8.2.
{
"cna_assigner": "@huntrdev",
"cwe_ids": [
"CWE-416"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2042.json"
}{
"cpe": "cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "8.2.5072"
}
],
"source": [
"CPE_FIELD",
"REFERENCES"
]
}[
{
"target": {
"file": "src/version.c"
},
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/vim/vim/commit/2813f38e021c6e6581c0c88fcf107e41788bc835",
"digest": {
"threshold": 0.9,
"line_hashes": [
"146200493773228420153804765641940418619",
"108608309237857665508952724667591337607",
"42884364867841850842601988945277128088",
"96511286425446603065664159286564721164"
]
},
"id": "CVE-2022-2042-591dcc67",
"signature_type": "Line"
},
{
"target": {
"file": "src/spell.c"
},
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/vim/vim/commit/2813f38e021c6e6581c0c88fcf107e41788bc835",
"digest": {
"threshold": 0.9,
"line_hashes": [
"274594877259136931232563363467860675466",
"121220171611550566685917023734990068253",
"240642475423693113389270462462202493837",
"122988448342031477459083304738082746372",
"323450907905396851300646108612679385162",
"188111172740410311104476189669293577013",
"300349509399063222742394751327440676981",
"9352727725858673457715213099764771368",
"286131759694977866110688805382116556751",
"255613250778040059005050796394993402063",
"205332632047098154706386587008265493599",
"298557591254673848739232297622030089228",
"339598285868353009332776529747069148036",
"209583090058767989699272406205257328267",
"3664553112930714083447596962553441352"
]
},
"id": "CVE-2022-2042-96fe973a",
"signature_type": "Line"
},
{
"target": {
"function": "spell_move_to",
"file": "src/spell.c"
},
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/vim/vim/commit/2813f38e021c6e6581c0c88fcf107e41788bc835",
"digest": {
"length": 3020.0,
"function_hash": "145390389017112856796491495683143855387"
},
"id": "CVE-2022-2042-986aa93c",
"signature_type": "Function"
}
]
"2026-04-18T11:24:14Z"
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-2042.json"