CVE-2025-22134: heap-buffer-overflow with visual mode in Vim < 9.1.1003

Published Jan 13, 2025
·
Updated

heap-buffer-overflow with visual mode in Vim < 9.1.1003

Other sources

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

Debian

Affected Software

10 affected componentsFixes available
debian/vim<=2:8.2.2434-3+deb11u1, <=2:9.0.1378-2, <=2:9.1.0967-2
vim Vim<9.1.1003
Microsoft azl3 vim 9.1.0791-4
Microsoft cbl2 vim 9.1.0791-4
Microsoft cbl2 vim 9.1.0791-2
Microsoft azl3 vim 9.1.0791-2
Neovim Neovim<=0.10.4
vim Vim<=9.1.1003
All of the following
NetApp Bootstrap Os
NetApp Hci Compute Node

Event History

Jan 13, 2025
CVE Published
via MITRE·08:41 PM
Data Sourced
via MITRE·08:41 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyAffected Software
Jan 18, 2025
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity
Jan 25, 2025
Data Sourced
via Ubuntu·06:37 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-22134?

CVE-2025-22134 has a high severity due to the potential heap-buffer overflow that can lead to security exploits.

2

How do I fix CVE-2025-22134?

To fix CVE-2025-22134, update Vim to a version that is higher than 9.1.1003.

3

What are the affected versions of Vim for CVE-2025-22134?

Affected versions for CVE-2025-22134 include Vim versions up to 9.1.1003.

4

Can CVE-2025-22134 affect my system if I use Debian?

Yes, if you use Vim on Debian, versions up to 2:9.1.0967-2 are vulnerable to CVE-2025-22134.

5

What is the cause of CVE-2025-22134?

CVE-2025-22134 is caused by Vim not properly ending visual mode when switching buffers, leading to a heap-buffer overflow.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203