Division by zero in Vim - CVE-2023-3896

 

Division by zero in Vim - CVE-2023-3896

Published: August 31, 2023


Vulnerability identifier: #VU80201
CSH Severity: Low
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-3896
CWE-ID: CWE-369
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to crash the application.

The vulnerability exists due to division by zero error within the scroll_cursor_bot() function. A remote attacker can trick the victim to open a specially crafted file and crash the application.


Affected software

Vim
Isolation Segment
VMware Tanzu Application Service for VMs
Redis for Pivotal Platform
Ubuntu
xxd (Ubuntu package)
vim-nox (Ubuntu package)
vim-tiny (Ubuntu package)
vim-gtk3 (Ubuntu package)
vim-athena (Ubuntu package)
vim-gtk (Ubuntu package)
vim (Ubuntu package)
VMware Tanzu Operations Manager

How to mitigate CVE-2023-3896

Install updates from vendor's website.

Vim - update to 9.0.1667
xxd (Ubuntu package) - addressed in versions Ubuntu Pro, 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
vim-nox (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
vim-tiny (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
vim-gtk3 (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
vim-athena (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
vim-gtk (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13
vim (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.1.2269-1ubuntu5.20, 2:8.2.3995-1ubuntu2.13, 2:9.0.1000-4ubuntu3.2, 2:9.0.1672-1ubuntu2.1
VMware Tanzu Operations Manager - addressed in versions 2.10.66, 3.0.19

External References

Related Security Bulletins