CVE-2024-43790
published medium CVSS 3.1 · 4.5heap-buffer-overflow in do_search() in Vim < 9.1.0689
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| vim | — | vim< v9.1.0689 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | edge | vim | Fixed | 9.1.0707-r0 | Package fix record |
| SUSE / openSUSE | SLE-12-SP5 | vimx86_64 | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| Alpine Linux | v3.20 | vim | Fixed | 9.1.0707-r0 | Package fix record |
| Alpine Linux | v3.21 | vim | Fixed | 9.1.0707-r0 | Package fix record |
| Alpine Linux | v3.22 | vim | Fixed | 9.1.0707-r0 | Package fix record |
Show 45 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.23 | vim | Fixed | 9.1.0707-r0 | Package fix record |
| Alpine Linux | v3.24 | vim | Fixed | 9.1.0707-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP6 | vimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-12-SP5 | gvimx86_64 | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| SUSE / openSUSE | SLE-12-SP5 | vim-datanoarch | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| SUSE / openSUSE | SLE-12-SP5 | vim-data-commonnoarch | Advisory build | 9.1.1101-17.41.1 | SUSE-SU-2025:0722-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | gvimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-datanoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-data-commonnoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smallaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smallppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smalls390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-15-SP6 | vim-smallx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-data-commonnoarch | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-data-commonnoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smallaarch64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-smallaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smallppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smalls390x | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-smalls390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | vim-smallx86_64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | vim-smallx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | SLE-5 | xxdaarch64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | xxds390x | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | SLE-5 | xxdx86_64 | Advisory build | 9.1.1101-150000.5.69.1 | SUSE-SU-2025:0724-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvimaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvimppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvims390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gvimx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-datanoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-data-commonnoarch | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smallaarch64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smallppc64le | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smalls390x | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | vim-smallx86_64 | Advisory build | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vim | vim | < v9.1.0689 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-122 CWE-122: Heap-based Buffer Overflow
References
3Provider assertions
3GitHub_M · cna
heap-buffer-overflow in do_search() in Vim < 9.1.0689
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 45de151ac02f4876f34dd5c6fa76aa39d389f7bcbe6b170525c4a1509d3860f2
- Ingested
- 23 Sep 2026, 08:27:16 UTC
- Source record
- Official CVE record