NewStart CGSL MAIN 7.02 : vim Multiple Vulnerabilities (NS-SA-2025-0141)

high Nessus Plugin ID 242732

Synopsis

The remote NewStart CGSL host is affected by multiple vulnerabilities.

Description

The remote NewStart CGSL host, running version MAIN 7.02, has vim packages installed that are affected by multiple vulnerabilities:

- Vim before 9.0.2142 has a stack-based buffer overflow because did_set_langmap in map.c calls sprintf to write to the error buffer that is passed down to the option callback functions. (CVE-2024-22667)

- Vim is an improved version of the good old UNIX editor Vi. Heap-use-after-free in memory allocated in the function `ga_grow_inner` in in the file `src/alloc.c` at line 748, which is freed in the file `src/ex_docmd.c` in the function `do_cmdline` at line 1010 and then used again in `src/cmdhist.c` at line 759. When using the `:history` command, it's possible that the provided argument overflows the accepted value. Causing an Integer Overflow and potentially later an use-after-free. This vulnerability has been patched in version 9.0.2068. (CVE-2023-46246)

- Use After Free in GitHub repository vim/vim prior to 9.0.1840. (CVE-2023-4733)

- Integer Overflow or Wraparound in GitHub repository vim/vim prior to 9.0.1846. (CVE-2023-4734)

- Out-of-bounds Write in GitHub repository vim/vim prior to 9.0.1847. (CVE-2023-4735)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade the vulnerable CGSL vim packages. Note that updated packages may not be available yet. Please contact ZTE for more information.

See Also

https://security.gd-linux.com/notice/NS-SA-2025-0141

https://security.gd-linux.com/info/CVE-2023-46246

https://security.gd-linux.com/info/CVE-2023-4733

https://security.gd-linux.com/info/CVE-2023-4734

https://security.gd-linux.com/info/CVE-2023-4735

https://security.gd-linux.com/info/CVE-2023-4736

https://security.gd-linux.com/info/CVE-2023-4738

https://security.gd-linux.com/info/CVE-2023-4750

https://security.gd-linux.com/info/CVE-2023-4752

https://security.gd-linux.com/info/CVE-2023-4781

https://security.gd-linux.com/info/CVE-2023-48231

https://security.gd-linux.com/info/CVE-2023-48232

https://security.gd-linux.com/info/CVE-2023-48233

https://security.gd-linux.com/info/CVE-2023-48234

https://security.gd-linux.com/info/CVE-2023-48235

https://security.gd-linux.com/info/CVE-2023-48236

https://security.gd-linux.com/info/CVE-2023-48237

https://security.gd-linux.com/info/CVE-2023-48706

https://security.gd-linux.com/info/CVE-2023-5344

https://security.gd-linux.com/info/CVE-2023-5441

https://security.gd-linux.com/info/CVE-2023-5535

https://security.gd-linux.com/info/CVE-2024-22667

https://security.gd-linux.com/info/CVE-2025-24014

https://security.gd-linux.com/info/CVE-2025-26603

Plugin Details

Severity: High

ID: 242732

File Name: newstart_cgsl_NS-SA-2025-0141_vim.nasl

Version: 1.1

Type: local

Published: 7/25/2025

Updated: 7/25/2025

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2024-22667

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 7

Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:zte:cgsl_main:vim-enhanced, p-cpe:/a:zte:cgsl_main:vim-common, p-cpe:/a:zte:cgsl_main:vim-minimal, p-cpe:/a:zte:cgsl_main:vim-filesystem, cpe:/o:zte:cgsl_main:7, p-cpe:/a:zte:cgsl_main:vim-data

Required KB Items: Host/local_checks_enabled, Host/cpu, Host/ZTE-CGSL/release, Host/ZTE-CGSL/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 7/25/2025

Vulnerability Publication Date: 9/2/2023

Reference Information

CVE: CVE-2023-46246, CVE-2023-4733, CVE-2023-4734, CVE-2023-4735, CVE-2023-4736, CVE-2023-4738, CVE-2023-4750, CVE-2023-4752, CVE-2023-4781, CVE-2023-48231, CVE-2023-48232, CVE-2023-48233, CVE-2023-48234, CVE-2023-48235, CVE-2023-48236, CVE-2023-48237, CVE-2023-48706, CVE-2023-5344, CVE-2023-5441, CVE-2023-5535, CVE-2024-22667, CVE-2025-24014, CVE-2025-26603