PT-2023-4995 · Vim+8 · Vim+8

Published

2023-09-05

·

Updated

2025-03-30

·

CVE-2023-4781

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Vim versions prior to 9.0.1873
Description The issue is related to a heap-based buffer overflow in the vim regsub both() function of the Vim text editor, which can be exploited to impact the confidentiality, integrity, and availability of protected information. This is a result of a buffer overflow in dynamic memory.
Recommendations For versions prior to 9.0.1873, update to version 9.0.1873 or later to resolve the issue. As a temporary workaround, consider restricting the use of the vim regsub both() function until a patch is available.

Exploit

Fix

Heap Based Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2023-5538
ALT-PU-2023-5553
ALT-PU-2023-5877
ALT-PU-2023-5879
AZL-28659
BDU:2023-05534
CVE-2023-4781
DLA-3588-1
DLA-4097-1
OESA-2023-1653
OPENSUSE-SU-2023_3955-1
OPENSUSE-SU-2023_4557-1
SUSE-SU-2023:3942-1
SUSE-SU-2023:3955-1
SUSE-SU-2023:4557-1
USN-6452-1

Affected Products

Alt Linux
Astra Linux
Debian
Linuxmint
Apple Macos
Red Os
Suse
Ubuntu
Vim