vim is vulnerable to Heap-based Buffer Overflow
{
"cna_assigner": "@huntrdev",
"cwe_ids": [
"CWE-122"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0158.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"fixed": "8.2"
}
],
"source": "AFFECTED_FIELD"
}
]
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0158.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "272139233972602861945090450106830622782",
"length": 388
},
"id": "CVE-2022-0158-27833e2e",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/vim/vim/commit/5f25c3855071bd7e26255c68bf458b1b5cf92f39",
"target": {
"file": "src/vim9expr.c",
"function": "compile_get_env"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"210222625553068263366403843542782921018",
"287257813062336175697429441070004391951",
"9777889550562188385830508806092880327",
"325606386447957156023264780641267226873"
],
"threshold": 0.9
},
"id": "CVE-2022-0158-a2d5d536",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/vim/vim/commit/5f25c3855071bd7e26255c68bf458b1b5cf92f39",
"target": {
"file": "src/vim9expr.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"146200493773228420153804765641940418619",
"263581593800131546575125458767941739642",
"310947962179820590747794882022136564545",
"111246352525559989630990487242474312155"
],
"threshold": 0.9
},
"id": "CVE-2022-0158-bb5ce25e",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/vim/vim/commit/5f25c3855071bd7e26255c68bf458b1b5cf92f39",
"target": {
"file": "src/version.c"
}
}
]
"2026-10-20T14:11:01Z"