{"schemaVersion":3,"id":"CVE-2024-22667","aliases":["MGASA-2024-0040","UBUNTU-CVE-2024-22667","USN-6698-1","DEBIAN-CVE-2024-22667"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2024-02-05T00:00:00.000Z","modified":"2025-11-04T22:05:40.794Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00563,"percentile":0.45704,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00563},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00563,"percentile":0.45704}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00563,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00563,"percentile":0.45704}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_0D5E26701F08CE68","name":"Exploit Reference (gist.githubusercontent.com)","source":"reference","url":"https://gist.githubusercontent.com/henices/2467e7f22dcc2aa97a2453e197b55a0c/raw/7b54bccc9a129c604fb139266f4497ab7aaa94c7/gistfile1.txt","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"debian","product":"vim","name":"vim","label":"vim","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/vim","purlType":"deb","versions":[{"text":"< 2:9.0.1378-2+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 2:9.0.2189-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:9.0.1378-2+deb12u1 | < 2:9.0.2189-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"vim","name":"vim","label":"vim","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/vim","purlType":"deb","versions":[{"text":"< 2:7.4.052-1ubuntu3.1+esm16","noFixRecorded":false,"fixedIn":null},{"text":"< 2:7.4.1689-3ubuntu1.5+esm23","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.0.1453-1ubuntu1.13+esm8","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.1.2269-1ubuntu5.22","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.2.3995-1ubuntu2.16","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:7.4.052-1ubuntu3.1+esm16 | < 2:7.4.1689-3ubuntu1.5+esm23 | < 2:8.0.1453-1ubuntu1.13+esm8 | < 2:8.1.2269-1ubuntu5.22 | < 2:8.2.3995-1ubuntu2.16","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"38","noFixRecorded":false,"fixedIn":null},{"text":"39","noFixRecorded":false,"fixedIn":null}],"versionsText":"38 | 39","eol":{"isEol":true,"eolDate":"2024-05-21T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"38","label":"38","eolFrom":"2024-05-21T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"mageia","product":"vim","name":"vim","label":"vim","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/vim","purlType":"rpm","versions":[{"text":"< 9.1.111-1.mga9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.1.111-1.mga9","eol":null,"hubHref":null},{"vendor":"vim","product":"vim","name":"vim","label":"vim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 9.0.2142","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.0.2142","eol":null,"hubHref":"/vendor/vim/vim"}],"affectedCount":5,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47","label":"github.com/vim/vim/commit/b39b240c386a5a29241415541f1c99e2e6b8ce47","hostname":"github.com","tags":["Patch"]},{"url":"https://gist.githubusercontent.com/henices/2467e7f22dcc2aa97a2453e197b55a0c/raw/7b54bccc9a129c604fb139266f4497ab7aaa94c7/gistfile1.txt","label":"gist.githubusercontent.com/henices/…","hostname":"gist.githubusercontent.com","tags":["REPORT","Exploit","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UI44Y4LJLG34D4HNB6NTPLUPZREHAEL7/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UIQLVUSYHDN3644K6EFDI7PRZOTIKXM3/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240223-0008/","label":"security.netapp.com/advisory/ntap-20240223-0008/","hostname":"security.netapp.com","tags":["Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00023.html","label":"lists.debian.org/debian-lts-announce/2025/03/msg00023.html","hostname":"lists.debian.org","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIQLVUSYHDN3644K6EFDI7PRZOTIKXM3/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UI44Y4LJLG34D4HNB6NTPLUPZREHAEL7/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":[]},{"url":"https://advisories.mageia.org/MGASA-2024-0040.html","label":"advisories.mageia.org/MGASA-2024-0040.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=32850","label":"bugs.mageia.org/show_bug.cgi?id=32850","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/CVE-2024-22667","label":"ubuntu.com/security/CVE-2024-22667","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6698-1","label":"ubuntu.com/security/notices/USN-6698-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-22667","label":"www.cve.org/CVERecord?id=CVE-2024-22667","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-22667","label":"security-tracker.debian.org/tracker/CVE-2024-22667","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22667","label":"nvd.nist.gov/vuln/detail/CVE-2024-22667","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-4097-1","SUSE-SU-2024:0783-1","SUSE-SU-2024:0871-1","SUSE-SU-2024:1287-1"],"duplicates":[],"related":["SUSE-SU-2024:0783-1","SUSE-SU-2024:0871-1","SUSE-SU-2024:1287-1"]},"timeline":[{"kind":"published","date":"2024-02-05T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-04T22:05:40.794Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T12:17:42.501Z","stale":false,"partial":false}}