{"schemaVersion":4,"id":"CVE-2024-43790","aliases":["ALPINE-CVE-2024-43790","DEBIAN-CVE-2024-43790","CGA-5g2v-rp22-w37h","CGA-fx2w-hrjp-fg49"],"status":"published","duplicateOf":null,"title":"heap-buffer-overflow in do_search() in Vim < 9.1.0689","description":"Vim is an open source command line text editor. When performing a search and displaying the search-count message is disabled (:set shm+=S), the search pattern is displayed at the bottom of the screen in a buffer (msgbuf). When right-left mode (:set rl) is enabled, the search pattern is reversed. This happens by allocating a new buffer. If the search pattern contains some ASCII NUL characters, the buffer allocated will be smaller than the original allocated buffer (because for allocating the reversed buffer, the strlen() function is called, which only counts until it notices an ASCII NUL byte ) and thus the original length indicator is wrong. This causes an overflow when accessing characters inside the msgbuf by the previously (now wrong) length of the msgbuf. The issue has been fixed as of Vim patch v9.1.0689.","dates":{"published":"2024-08-22T21:23:07.797Z","modified":"2024-09-20T16:03:12.105Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":4.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":2.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":4.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","exploitability":2.6,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00307,"percentile":0.2534,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00307},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00307,"percentile":0.2534}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00307,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00307,"percentile":0.2534}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-122","name":"Heap-based Buffer Overflow","description":"The product writes past the end of a buffer that was allocated on the heap.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/122.html"}],"affected":[{"vendor":"alpine","product":"vim","name":"vim","label":"vim","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/vim","purlType":"apk","versions":[{"text":"≥ 9.1.0425, < 9.1.0707-r0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"9.1.0425","startInclusive":true,"end":"9.1.0707-r0","endInclusive":false}}],"versionsText":"≥ 9.1.0425, < 9.1.0707-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"vim","name":"vim","label":"vim","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/vim","purlType":"apk","versions":[{"text":"< 9.1.0689-r0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"9.1.0689-r0","endInclusive":false}}],"versionsText":"< 9.1.0689-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"vim","name":"vim","label":"vim","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/vim","purlType":"apk","versions":[{"text":"< 9.1.0689-r0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"9.1.0689-r0","endInclusive":false}}],"versionsText":"< 9.1.0689-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"vim","name":"vim","label":"vim","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/vim","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 2:9.1.0698-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"2:9.1.0698-1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 2:9.1.0698-1","eol":null,"hubHref":null},{"vendor":"netapp","product":"bootstrap_os","name":"bootstrap os","label":"bootstrap_os","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"unspecified"}}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/bootstrap_os"},{"vendor":"vim","product":"vim","name":"Vim","label":"vim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< v9.1.0689","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"v9.1.0689","endInclusive":false}},{"text":"≥ 9.1.0425, < 9.1.0689","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"9.1.0425","startInclusive":true,"end":"9.1.0689","endInclusive":false}}],"versionsText":"< v9.1.0689 | ≥ 9.1.0425, < 9.1.0689","eol":null,"hubHref":"/vendor/vim/vim"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-v2x2-cjcg-f9jm","label":"github.com/vim/vim/security/advisories/GHSA-v2x2-cjcg-f9jm","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","Vendor Advisory"]},{"url":"https://github.com/vim/vim/commit/cacb6693c10bb19f28a50eca47bc","label":"github.com/vim/vim/commit/cacb6693c10bb19f28a50eca47bc","hostname":"github.com","tags":["X Refsource MISC","FIX","Patch"]},{"url":"https://security.netapp.com/advisory/ntap-20240920-0005/","label":"security.netapp.com/advisory/ntap-20240920-0005/","hostname":"security.netapp.com","tags":["Advisory","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-43790","label":"security.alpinelinux.org/vuln/CVE-2024-43790","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-43790","label":"security-tracker.debian.org/tracker/CVE-2024-43790","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43790.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43790.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43790","label":"nvd.nist.gov/vuln/detail/CVE-2024-43790","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["SUSE-SU-2025:0722-1","SUSE-SU-2025:0723-1","SUSE-SU-2025:0724-1","SUSE-SU-2025:20128-1"],"duplicates":[],"related":["CGA-47XR-X3CG-V673","CGA-6637-3982-GH5V","SUSE-SU-2025:0722-1","SUSE-SU-2025:0723-1","SUSE-SU-2025:0724-1","SUSE-SU-2025:20128-1","UBUNTU-CVE-2024-43790"]},"timeline":[{"kind":"published","date":"2024-08-22T21:23:07.797Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-20T16:03:12.105Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 4.5, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,45],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00307,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2024-09-20T16:03:12.105Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1","headline":true},{"type":"cvss","source":"osv_alpine","date":"2024-09-20T16:03:12.105Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2024-09-20T16:03:12.105Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"osv_wolfi","date":"2024-09-20T16:03:12.105Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},{"type":"cvss","source":"osv_chainguard","date":"2024-09-20T16:03:12.105Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":4.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","version":"3.1"},{"type":"cvss","source":"nvd","date":"2024-09-20T16:03:12.105Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2024-08-23T16:42:30.460Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00307,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:13:43.441Z","stale":false,"partial":false}}