Heap-based buffer overflow in Vim - CVE-2023-0288

 

Heap-based buffer overflow in Vim - CVE-2023-0288

Published: January 26, 2023


Vulnerability identifier: #VU71560
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-0288
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the ml_append_int() function in memline.c. A remote attacker can trick the victim to open a specially crafted file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Vim
Dell EMC PowerProtect Data Protection
Dell Data Protection Central
cflinuxfs3
Amazon Linux AMI
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Linux Enterprise Micro
openSUSE Leap Micro
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
Oracle Solaris
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
macOS
Ubuntu
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Server for SAP Applications
openSUSE Leap
openEuler
Fedora
Isolation Segment
VMware Tanzu Application Service for VMs
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
vim-gtk-py2 (Ubuntu package)
vim-gtk3 (Ubuntu package)
vim (Ubuntu package)
vim-nox (Ubuntu package)
vim-athena (Ubuntu package)
vim-gtk (Ubuntu package)
vim-nox-py2 (Ubuntu package)
vim-athena-py2 (Ubuntu package)
vim-gtk3-py2 (Ubuntu package)
vim-tiny (Ubuntu package)
vim
vim-debugsource
vim-minimal
vim-enhanced
vim-X11
vim-common
vim-filesystem
vim-debuginfo
vim-data-common
gvim
gvim-debuginfo
vim-data
vim-small
vim-small-debuginfo
VMware Tanzu Operations Manager
EMC ViPR SRM
Dell EMC Storage Monitoring and Reporting (SMR)
RecoverPoint for VMs

How to mitigate CVE-2023-0288

Install updates from vendor's website.

Vim - update to 9.0.1189
macOS - update to 13.3 22E252
vim-gtk-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
vim-gtk3 (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.0.1453-1ubuntu1.11, 2:8.1.2269-1ubuntu5.12, 2:8.2.3995-1ubuntu2.4, 2:9.0.0242-1ubuntu1.2
vim (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.0.1453-1ubuntu1.11, 2:8.1.2269-1ubuntu5.12, 2:8.2.3995-1ubuntu2.4, 2:9.0.0242-1ubuntu1.2
vim-nox (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.0.1453-1ubuntu1.11, 2:8.1.2269-1ubuntu5.12, 2:8.2.3995-1ubuntu2.4, 2:9.0.0242-1ubuntu1.2
vim-athena (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.0.1453-1ubuntu1.11, 2:8.1.2269-1ubuntu5.12, 2:8.2.3995-1ubuntu2.4, 2:9.0.0242-1ubuntu1.2
vim-gtk (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.0.1453-1ubuntu1.11, 2:8.1.2269-1ubuntu5.12, 2:8.2.3995-1ubuntu2.4
vim-nox-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
vim-athena-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
vim-gtk3-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
vim-tiny (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 2:8.0.1453-1ubuntu1.11, 2:8.1.2269-1ubuntu5.12, 2:8.2.3995-1ubuntu2.4, 2:9.0.0242-1ubuntu1.2
cflinuxfs3 - update to 0.357.0
VMware Tanzu Operations Manager - addressed in versions 2.10.53, 2.10.57, 3.0.6
EMC ViPR SRM - update to 4.9.0.0
Dell EMC Storage Monitoring and Reporting (SMR) - update to 4.9.0.0
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 5.0.1
RecoverPoint for VMs - update to 6.0.SP1.P1
vim - update to 9.0-7
vim-debugsource - update to 9.0-7
vim-minimal - update to 9.0-7
vim-enhanced - update to 9.0-7
vim-X11 - update to 9.0-7
vim-common - update to 9.0-7
vim-filesystem - update to 9.0-7
vim-debuginfo - update to 9.0-7
vim-data-common - addressed in versions 9.0.1234-17.12.1, 9.0.1234-150000.5.34.1
gvim - addressed in versions 9.0.1234-17.12.1, 9.0.1234-150000.5.34.1
gvim-debuginfo - addressed in versions 9.0.1234-17.12.1, 9.0.1234-150000.5.34.1
vim - addressed in versions 9.0.1234-17.12.1, 9.0.1234-150000.5.34.1
vim-debuginfo - addressed in versions 9.0.1234-17.12.1, 9.0.1234-150000.5.34.1
vim-debugsource - addressed in versions 9.0.1234-17.12.1, 9.0.1234-150000.5.34.1
vim-data - addressed in versions 9.0.1234-17.12.1, 9.0.1234-150000.5.34.1
vim-small - update to 9.0.1234-150000.5.34.1
vim-small-debuginfo - update to 9.0.1234-150000.5.34.1
vim - update to 9.0.1262-1.fc36
vim - addressed in versions 9.0.1314-1, 9.0.1367-1.73

External References

Related Security Bulletins