{"schemaVersion":3,"id":"CVE-2025-22134","aliases":["ALPINE-CVE-2025-22134","MGASA-2025-0014","UBUNTU-CVE-2025-22134","USN-7220-1","DEBIAN-CVE-2025-22134"],"status":"published","duplicateOf":null,"title":null,"description":"When switching to other buffers using the :all command and visual mode still being active, this may cause a heap-buffer overflow, because Vim does not properly end visual mode and therefore may try to access beyond the end of a line in a buffer. In Patch 9.1.1003 Vim will correctly reset the visual mode before opening other windows and buffers and therefore fix this bug. In addition it does verify that it won't try to access a position if the position is greater than the corresponding buffer line. Impact is medium since the user must have switched on visual mode when executing the :all ex command. The Vim project would like to thank github user gandalf4a for reporting this issue. The issue has been fixed as of Vim patch v9.1.1003","dates":{"published":"2025-01-13T20:41:08.144Z","modified":"2025-03-14T10:03:08.447Z","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:N/UI:R/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.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/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:N/UI:R/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/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:N/UI:R/S:U/C:N/I:N/A:H","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00374,"percentile":0.29907,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00374},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00374,"percentile":0.29907}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00374,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00374,"percentile":0.29907}]},"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.1003-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.1.1003-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.1113-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2:9.1.1113-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":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2:8.1.2269-1ubuntu5.30","noFixRecorded":false,"fixedIn":null},{"text":"< 2:8.2.3995-1ubuntu2.22","noFixRecorded":false,"fixedIn":null},{"text":"< 2:9.1.0016-1ubuntu7.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2:8.1.2269-1ubuntu5.30 | < 2:8.2.3995-1ubuntu2.22 | < 2:9.1.0016-1ubuntu7.6","eol":null,"hubHref":null},{"vendor":"mageia","product":"vim","name":"vim","label":"vim","ecosystem":"Mageia","cpePart":null,"purl":"pkg:rpm/mageia/vim","purlType":"rpm","versions":[{"text":"< 9.1.1012-1.mga9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 9.1.1012-1.mga9","eol":null,"hubHref":null},{"vendor":"neovim","product":"neovim","name":"neovim","label":"neovim","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.10.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 0.10.4","eol":null,"hubHref":"/vendor/neovim/neovim"},{"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.1003","noFixRecorded":false,"fixedIn":null},{"text":"≤ 9.1.1003","noFixRecorded":false,"fixedIn":null}],"versionsText":"< v9.1.1003 | ≤ 9.1.1003","eol":null,"hubHref":"/vendor/vim/vim"}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8","label":"github.com/vim/vim/security/advisories/GHSA-5rgf-26wj-48v8","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Vendor Advisory"]},{"url":"https://github.com/vim/vim/commit/c9a1e257f1630a0866447e53a564f7ff96a80ead","label":"github.com/vim/vim/commit/c9a1e257f1630a0866447e53a564f7ff96a80ead","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch"]},{"url":"http://www.openwall.com/lists/oss-security/2025/01/11/1","label":"www.openwall.com/lists/oss-security/2025/01/11/1","hostname":"www.openwall.com","tags":["REPORT","Mailing List","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20250314-0004/","label":"security.netapp.com/advisory/ntap-20250314-0004/","hostname":"security.netapp.com","tags":["Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2025-22134","label":"security.alpinelinux.org/vuln/CVE-2025-22134","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://advisories.mageia.org/MGASA-2025-0014.html","label":"advisories.mageia.org/MGASA-2025-0014.html","hostname":"advisories.mageia.org","tags":["Advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=33911","label":"bugs.mageia.org/show_bug.cgi?id=33911","hostname":"bugs.mageia.org","tags":["REPORT"]},{"url":"https://openwall.com/lists/oss-security/2025/01/11/1","label":"openwall.com/lists/oss-security/2025/01/11/1","hostname":"openwall.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2025-22134","label":"ubuntu.com/security/CVE-2025-22134","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-22134","label":"www.cve.org/CVERecord?id=CVE-2025-22134","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7220-1","label":"ubuntu.com/security/notices/USN-7220-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-22134","label":"security-tracker.debian.org/tracker/CVE-2025-22134","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22134","label":"nvd.nist.gov/vuln/detail/CVE-2025-22134","hostname":"nvd.nist.gov","tags":["Oval","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":["SUSE-SU-2025:0722-1","SUSE-SU-2025:0723-1","SUSE-SU-2025:0724-1","SUSE-SU-2025:20128-1"]},"timeline":[{"kind":"published","date":"2025-01-13T20:41:08.144Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-03-14T10:03:08.447Z","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-20T03:39:58.667Z","stale":false,"partial":false}}