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

 

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

Published: January 5, 2023


Vulnerability identifier: #VU70722
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-0051
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 msg_puts_printf(0 function in message.c. A remote attacker can pass specially crafted data to the application, 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
Gentoo Linux
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
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
Slackware Linux
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise High Performance Computing
openSUSE Leap
openEuler
Dell EMC PowerProtect Data Protection
Dell Data Protection Central
cflinuxfs3
VMware Tanzu Application Service for VMs
Isolation Segment
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
vim-nox-py2 (Ubuntu package)
vim-athena (Ubuntu package)
vim-tiny (Ubuntu package)
vim (Ubuntu package)
vim-gtk3 (Ubuntu package)
vim-nox (Ubuntu package)
vim-gtk (Ubuntu package)
vim-athena-py2 (Ubuntu package)
vim-gtk3-py2 (Ubuntu package)
vim-gtk-py2 (Ubuntu package)
vim-debugsource
vim-enhanced
vim-X11
vim
vim-debuginfo
vim-minimal
vim-common
vim-filesystem
vim-gvim
app-editors/gvim
app-editors/vim
app-editors/vim-core
vim-data
vim-data-common
gvim
gvim-debuginfo
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-0051

Install updates from vendor's website.

Vim - update to 9.0.1144
macOS - update to 13.3 22E252
vim-nox-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
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-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 (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 (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-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-athena-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
vim-gtk3-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
vim-gtk-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
cflinuxfs3 - update to 0.357.0
VMware Tanzu Operations Manager - addressed in versions 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-debugsource - update to 9.0-6
vim-enhanced - update to 9.0-6
vim-X11 - update to 9.0-6
vim - update to 9.0-6
vim-debuginfo - update to 9.0-6
vim-minimal - update to 9.0-6
vim-common - update to 9.0-6
vim-filesystem - update to 9.0-6
vim-gvim - update to 9.0.1146
vim - update to 9.0.1146
app-editors/gvim - update to 9.0.1157
app-editors/vim - update to 9.0.1157
app-editors/vim-core - update to 9.0.1157
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-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-small - update to 9.0.1234-150000.5.34.1
vim-small-debuginfo - update to 9.0.1234-150000.5.34.1
vim - addressed in versions 9.0.1314-1, 9.0.1403-1.76

External References

Related Security Bulletins