ALPINE-CVE-2024-43790
Record from OSV · Published August 22, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim | Alpine:v3.23 | 9.1.0707-r0 |
| vim | Alpine:v3.21 | 9.1.0707-r0 |
| vim | Alpine:v3.20 | 9.1.0707-r0 |
| vim | Alpine:v3.22 | 9.1.0707-r0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Alpine:v3.23 | vim | 7.2.284-r0, 9.1.0425, 8.2.3500-r0 |
| Alpine:v3.21 | vim | 8.2.2677-r1, 7.2.284-r0, 7.2.394-r0 |
| Alpine:v3.20 | vim | 9.1.0425, 9.0.1506-r0, 7.3.659-r0 |
| Alpine:v3.22 | vim | 7.2.394-r0, 7.2.411-r0, 7.3-r0 |
Timeline
- Aug 22, 2024 CVE Published
- Jul 8, 2026 CVE Updated
- Aug 8, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln ALPINE-CVE-2024-43790
vulnetix vdb fixes ALPINE-CVE-2024-43790
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/ALPINE-CVE-2024-43790/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart