{"schemaVersion":3,"id":"CVE-2024-43802","aliases":["ALPINE-CVE-2024-43802","UBUNTU-CVE-2024-43802","USN-7048-1","USN-7048-2","DEBIAN-CVE-2024-43802","CGA-449f-hgw2-j2h2","CGA-mf6j-ccr3-vhxf"],"status":"published","duplicateOf":null,"title":null,"description":"Vim is an improved version of the unix vi text editor. When flushing the typeahead buffer, Vim moves the current position in the typeahead buffer but does not check whether there is enough space left in the buffer to handle the next characters.  So this may lead to the tb_off position within the typebuf variable to point outside of the valid buffer size, which can then later lead to a heap-buffer overflow in e.g. ins_typebuf(). Therefore, when flushing the typeahead buffer, check if there is enough space left before advancing the off position. If not, fall back to flush current typebuf contents. It's not quite clear yet, what can lead to this situation. It seems to happen when error messages occur (which will cause Vim to flush the typeahead buffer) in comnination with several long mappgins and so it may eventually move the off position out of a valid buffer size. Impact is low since it is not easily reproducible and requires to have several mappings active and run into some error condition. But when this happens, this will cause a crash. The issue has been fixed as of Vim patch v9.1.0697. Users are advised to upgrade. There are no known workarounds for this issue.","dates":{"published":"2024-08-26T18:48:11.979Z","modified":"2025-11-03T20:38:52.392Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L","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":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 · Ubuntu","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 · Debian","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 · 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":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}]},"epss":{"probability":0.00296,"percentile":0.20969,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00296},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00296,"percentile":0.20969}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00296,"percentile":0.20969}]},"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.0707-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 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.0698-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.1.0698-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.0698-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.1.0698-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":"< 2:9.0.1378-2+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 2:9.1.0698-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:9.0.1378-2+deb12u1 | < 2:9.1.0698-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.1689-3ubuntu1.5+esm25","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.0.1453-1ubuntu1.13+esm10","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.1.2269-1ubuntu5.25","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.2.3995-1ubuntu2.19","noFixRecorded":false,"fixedIn":null},{"text":"< 2:9.1.0016-1ubuntu7.3","noFixRecorded":false,"fixedIn":null},{"text":"< 2:7.4.052-1ubuntu3.1+esm19","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:7.4.1689-3ubuntu1.5+esm25 | < 2:8.0.1453-1ubuntu1.13+esm10 | < 2:8.1.2269-1ubuntu5.25 | < 2:8.2.3995-1ubuntu2.19 | < 2:9.1.0016-1ubuntu7.3 | < 2:7.4.052-1ubuntu3.1+esm19","eol":null,"hubHref":null},{"vendor":"vim","product":"vim","name":"vim","label":"vim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 9.1.0697","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.1.0697","eol":null,"hubHref":"/vendor/vim/vim"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-4ghr-c62x-cqfh","label":"github.com/vim/vim/security/advisories/GHSA-4ghr-c62x-cqfh","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Advisory"]},{"url":"https://github.com/vim/vim/commit/322ba9108612bead5eb","label":"github.com/vim/vim/commit/322ba9108612bead5eb","hostname":"github.com","tags":["X Refsource MISC","REPORT","FIX"]},{"url":"https://security.netapp.com/advisory/ntap-20241004-0008/","label":"security.netapp.com/advisory/ntap-20241004-0008/","hostname":"security.netapp.com","tags":["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":["WEB"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-43802","label":"security.alpinelinux.org/vuln/CVE-2024-43802","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-43802","label":"ubuntu.com/security/CVE-2024-43802","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-43802","label":"www.cve.org/CVERecord?id=CVE-2024-43802","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/vim/vim/commit/322ba9108612bead5eb7731ccb66763dec69ef1b","label":"github.com/vim/vim/commit/322ba9108612bead5eb7731ccb66763dec69ef1b","hostname":"github.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7048-1","label":"ubuntu.com/security/notices/USN-7048-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-7048-2","label":"ubuntu.com/security/notices/USN-7048-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-43802","label":"security-tracker.debian.org/tracker/CVE-2024-43802","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43802.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43802.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43802","label":"nvd.nist.gov/vuln/detail/CVE-2024-43802","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]}],"lineage":{"upstream":[],"downstream":["DLA-4097-1","SUSE-SU-2025:0722-1","SUSE-SU-2025:0723-1","SUSE-SU-2025:0724-1","SUSE-SU-2025:20128-1"],"duplicates":[],"related":["CGA-79X4-P5XH-XXP6","CGA-Q766-4RG9-JG6Q","SUSE-SU-2025:0722-1","SUSE-SU-2025:0723-1","SUSE-SU-2025:0724-1","SUSE-SU-2025:20128-1"]},"timeline":[{"kind":"published","date":"2024-08-26T18:48:11.979Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-03T20:38:52.392Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":18,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:08:59.269Z","stale":false,"partial":false}}