{"id":"CVE-2024-22667","published":"2024-02-05T00:00:00Z","modified":"2025-11-04T22:05:40Z","title":"Vim before 9.0.2142 has a stack-based buffer overflow because did_set_langmap in map.c calls sprintf to write to the…","vendor":null,"product":null,"tier":"tail","description":{"text":"Vim before 9.0.2142 has a stack-based buffer overflow because did_set_langmap in map.c calls sprintf to write to the error buffer that is passed down to the option callback functions.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00568,"percentile":0.47715,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47","tags":[]},{"url":"https://gist.githubusercontent.com/henices/2467e7f22dcc2aa97a2453e197b55a0c/raw/7b54bccc9a129c604fb139266f4497ab7aaa94c7/gistfile1.txt","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UI44Y4LJLG34D4HNB6NTPLUPZREHAEL7/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UIQLVUSYHDN3644K6EFDI7PRZOTIKXM3/","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240223-0008/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIQLVUSYHDN3644K6EFDI7PRZOTIKXM3/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UI44Y4LJLG34D4HNB6NTPLUPZREHAEL7/","tags":[]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":9.54},{"name":"CVSS severity","points":5.46}]},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-05-09T23:55:43.714685Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-20200","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vim-vim-cve-2019-20807","parents":[{"from":"CVE-2021-3770","to":"CVE-2024-22667","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/option.c","src/optionstr.c"],"commits":["https://github.com/vim/vim/commit/b7081e135a16091c93f6f5f7525a5c58fb7ca9f9","https://github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47"],"basis":"shared function","functions":["did_set_string_option"]}]}],"children":[{"from":"CVE-2024-22667","to":"CVE-2024-43374","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/structs.h"],"commits":["https://github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47","https://github.com/vim/vim/commit/0a6e57b09bc8c76691b367a5babfb79b31b770e8"],"basis":"rarely changed file"}]}]}}