Out-of-bounds write in Vim - CVE-2023-0054

 

Out-of-bounds write in Vim - CVE-2023-0054

Published: January 5, 2023


Vulnerability identifier: #VU70723
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-0054
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing untrusted input within the do_string_sub() function in eval.c. A remote attacker can create a specially crafted file, trick the victim into opening it using the affected software, trigger out-of-bounds write and execute arbitrary code on the target system.


Affected software

Vim
Dell Data Protection Central
Dell EMC PowerProtect Data Protection
cflinuxfs3
Enterprise SONiC
Amazon Linux AMI
Gentoo Linux
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
Isolation Segment
VMware Tanzu Application Service for VMs
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
vim-gtk3-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-nox-py2 (Ubuntu package)
vim-athena-py2 (Ubuntu package)
vim-gtk-py2 (Ubuntu package)
vim-common
vim-filesystem
vim-enhanced
vim-X11
vim-debugsource
vim-debuginfo
vim-minimal
vim
app-editors/gvim
app-editors/vim
app-editors/vim-core
gvim-debuginfo
gvim
vim-data
vim-data-common
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-0054

Install updates from vendor's website.

Vim - update to 9.0.1145
macOS - update to 13.3 22E252
vim-gtk3-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-nox-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
vim-athena-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.53, 2.10.57, 3.0.6
Enterprise SONiC - update to 4.1.2
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-common - update to 9.0-6
vim-filesystem - update to 9.0-6
vim-enhanced - update to 9.0-6
vim-X11 - update to 9.0-6
vim-debugsource - update to 9.0-6
vim-debuginfo - update to 9.0-6
vim-minimal - update to 9.0-6
vim - update to 9.0-6
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
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
gvim - 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
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-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