Heap-based Buffer Overflow in GitHub repository vim/vim prior to 9.0.1873.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4781.json",
"cna_assigner": "@huntrdev",
"cwe_ids": [
"CWE-122"
]
}{
"source": [
"AFFECTED_FIELD",
"CPE_RANGE",
"REFERENCES"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "9.0.1873"
}
],
"cpe": "cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:*"
}"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-4781.json"
"2026-07-15T01:36:20Z"
[
{
"source": "https://github.com/vim/vim/commit/f6d28fe2c95c678cc3202cc5dc825a3fcc709e93",
"digest": {
"threshold": 0.9,
"line_hashes": [
"146200493773228420153804765641940418619",
"243525678663275732599672638655823763900",
"209340429583642063594758883514620137870",
"273263011289220606802298088676325320573"
]
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-4781-326e4bad",
"target": {
"file": "src/version.c"
},
"signature_type": "Line"
},
{
"source": "https://github.com/vim/vim/commit/f6d28fe2c95c678cc3202cc5dc825a3fcc709e93",
"digest": {
"length": 16472.0,
"function_hash": "124560944691353780947501433863635186524"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-4781-5baba98c",
"target": {
"function": "ex_substitute",
"file": "src/ex_cmds.c"
},
"signature_type": "Function"
},
{
"source": "https://github.com/vim/vim/commit/f6d28fe2c95c678cc3202cc5dc825a3fcc709e93",
"digest": {
"threshold": 0.9,
"line_hashes": [
"109208141474042388302794621453664309134",
"53338142268278509860428975094239241241",
"178715250539604223013812775857066443911",
"136145422670973849908575319764120007496"
]
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-4781-67516a8b",
"target": {
"file": "src/ex_cmds.c"
},
"signature_type": "Line"
},
{
"source": "https://github.com/vim/vim/commit/f6d28fe2c95c678cc3202cc5dc825a3fcc709e93",
"digest": {
"length": 1579.0,
"function_hash": "177479068821180374274743700296805811208"
},
"deprecated": false,
"signature_version": "v1",
"id": "CVE-2023-4781-7f682299",
"target": {
"function": "win_exchange",
"file": "src/window.c"
},
"signature_type": "Function"
}
]