vim: Vim is an open source command line text editor
CVE-2024-43790 is fixed in vim on 1 platform, first by DEBIAN-CVE-2024-43790, released August 22, 2024. It is not reported as exploited. Patch Radar priority: Routine.
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.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| vim · Debian 13.5 (trixie) | 2:9.1.0698-1 | DEBIAN-CVE-2024-43790 | Aug 22, 2024 |
| vim · Debian 14 | 2:9.1.0698-1 | DEBIAN-CVE-2024-43790 | Aug 22, 2024 |
| vim · opensuse-leap 15.6 | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 | Feb 26, 2025 |
| vim · sles 15.6 | 9.1.1101-150500.20.21.1 | SUSE-SU-2025:0723-1 | Feb 26, 2025 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.