{"schemaVersion":3,"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":null,"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.22149,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00: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":0.22149}],"last30":[{"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":0.22149}]},"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":"A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().","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}],"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}],"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}],"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},{"text":"< 2:9.1.0698-1","noFixRecorded":false,"fixedIn":null}],"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}],"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},{"text":"≥ 9.1.0425, < 9.1.0689","noFixRecorded":false,"fixedIn":null}],"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}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:43:36.421Z","stale":false,"partial":false}}