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

 

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

Published: March 8, 2023


Vulnerability identifier: #VU73170
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-1170
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 utf_ptr2char() function in mbyte.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
Amazon Linux AMI
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
openSUSE Leap Micro
SUSE Enterprise Storage
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
Oracle Solaris
SUSE Linux Enterprise Server 12 SP2 BCL
SUSE Linux Enterprise Server 12 SP4 LTSS
SUSE Linux Enterprise Server 12 SP4 ESPOS
Ubuntu
Slackware Linux
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS
SUSE Linux Enterprise Server 15 SP1 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
Basesystem Module
Desktop Applications Module
openSUSE Leap
openEuler
Fedora
Isolation Segment
VMware Tanzu Application Service for VMs
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
ObjectScale
cflinuxfs3
EMC Cloud Tiering Appliance
vim-tiny (Ubuntu package)
vim (Ubuntu package)
vim-athena (Ubuntu package)
vim-gtk3 (Ubuntu package)
vim-gtk-py2 (Ubuntu package)
vim-gtk3-py2 (Ubuntu package)
vim-athena-py2 (Ubuntu package)
vim-nox-py2 (Ubuntu package)
vim-gtk (Ubuntu package)
vim-nox (Ubuntu package)
vim
vim-common
vim-minimal
vim-enhanced
vim-debugsource
vim-X11
vim-filesystem
vim-debuginfo
gvim-debuginfo
vim-data-common
gvim
vim-data
vim-small
vim-small-debuginfo
vim-gvim
VMware Tanzu Operations Manager

How to mitigate CVE-2023-1170

Install updates from vendor's website.

Vim - update to 9.0.1376
ObjectScale - update to 1.3.0
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-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-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-gtk-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
vim-gtk3-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
vim-athena-py2 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
vim-nox-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 - addressed in versions stable-3720230316171323.1, 9.0.1407-1.fc36, 9.0.1407-1.fc37, 9.0.1407-1.fc38
cflinuxfs3 - update to 0.357.0
VMware Tanzu Operations Manager - addressed in versions 2.10.57, 3.0.6
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 5.0.1
vim-common - update to 9.0-10
vim - update to 9.0-10
vim-minimal - update to 9.0-10
vim-enhanced - update to 9.0-10
vim-debugsource - update to 9.0-10
vim-X11 - update to 9.0-10
vim-filesystem - update to 9.0-10
vim-debuginfo - update to 9.0-10
gvim-debuginfo - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim-data-common - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim-debuginfo - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim-debugsource - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
gvim - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim-data - addressed in versions 9.0.1386-17.15.4, 9.0.1386-150000.5.37.1
vim-small - update to 9.0.1386-150000.5.37.1
vim-small-debuginfo - update to 9.0.1386-150000.5.37.1
vim - update to 9.0.1403-1.76
vim - update to 9.0.1418
vim-gvim - update to 9.0.1418
EMC Cloud Tiering Appliance - update to 13.2.0.2.22

External References

Related Security Bulletins