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

 

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

Published: January 26, 2023


Vulnerability identifier: #VU71558
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-0433
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 same_leader() and utfc_ptr2len() function. 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
Amazon Linux AMI
SUSE Manager Proxy
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Linux Enterprise Micro
openSUSE Leap Micro
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
macOS
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
Ubuntu
Slackware Linux
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Desktop
openSUSE Leap
openEuler
Fedora
Dell EMC PowerProtect Data Protection
Dell Data Protection Central
ObjectScale
cflinuxfs3
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-gtk (Ubuntu package)
vim-nox (Ubuntu package)
vim-nox-py2 (Ubuntu package)
vim-gtk3 (Ubuntu package)
vim-athena-py2 (Ubuntu package)
vim (Ubuntu package)
vim-gtk3-py2 (Ubuntu package)
vim-tiny (Ubuntu package)
vim-athena (Ubuntu package)
vim
vim-minimal
vim-debuginfo
vim-filesystem
vim-debugsource
vim-enhanced
vim-common
vim-X11
gvim-debuginfo
gvim
vim-data-common
vim-data
vim-small-debuginfo
vim-small
vim-gvim
VMware Tanzu Operations Manager
EMC ViPR SRM
Dell EMC Storage Monitoring and Reporting (SMR)
RecoverPoint for VMs

How to mitigate CVE-2023-0433

Install updates from vendor's website.

Vim - update to 9.0.1225
ObjectScale - update to 1.3.0
macOS - addressed in versions 11.7.5 20G1225, 12.6.4 21G526, 13.3 22E252
vim-gtk-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
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 (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-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-athena-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
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-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
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 - addressed in versions stable-3720230209142410.1, 9.0.1293-1.fc36, 9.0.1293-1.fc37, 9.0.1307-1.fc36
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-8
vim-minimal - update to 9.0-8
vim-debuginfo - update to 9.0-8
vim-filesystem - update to 9.0-8
vim-debugsource - update to 9.0-8
vim-enhanced - update to 9.0-8
vim-common - update to 9.0-8
vim-X11 - update to 9.0-8
vim-debugsource - 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 - 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
gvim - addressed in versions 9.0.1234-17.12.1, 9.0.1234-150000.5.34.1
vim-data-common - 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-debuginfo - update to 9.0.1234-150000.5.34.1
vim-small - update to 9.0.1234-150000.5.34.1
vim - update to 9.0.1241
vim-gvim - update to 9.0.1241
vim - addressed in versions 9.0.1314-1, 9.0.1367-1.73

External References

Related Security Bulletins