NewStart CGSL CORE 5.04 / MAIN 5.04 : python Multiple Vulnerabilities (NS-SA-2022-0102)

critical Nessus Plugin ID 168928

Synopsis

The remote NewStart CGSL host is affected by multiple vulnerabilities.

Description

The remote NewStart CGSL host, running version CORE 5.04 / MAIN 5.04, has python packages installed that are affected by multiple vulnerabilities:

- http.client in Python 3.x before 3.5.10, 3.6.x before 3.6.12, 3.7.x before 3.7.9, and 3.8.x before 3.8.5 allows CRLF injection if the attacker controls the HTTP request method, as demonstrated by inserting CR and LF control characters in the first argument of HTTPConnection.request. (CVE-2020-26116)

- urllib3 before 1.25.9 allows CRLF injection if the attacker controls the HTTP request method, as demonstrated by inserting CR and LF control characters in the first argument of putrequest(). NOTE: this is similar to CVE-2020-26116. (CVE-2020-26137)

- Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Python applications that accept floating-point numbers as untrusted input, as demonstrated by a 1e300 argument to c_double.from_param. This occurs because sprintf is used unsafely. (CVE-2021-3177)

- A flaw was found in Python, specifically within the urllib.parse module. This module helps break Uniform Resource Locator (URL) strings into components. The issue involves how the urlparse method does not sanitize input and allows characters like '\r' and '\n' in the URL path. This flaw allows an attacker to input a crafted URL, leading to injection attacks. This flaw affects Python versions prior to 3.10.0b1, 3.9.5, 3.8.11, 3.7.11 and 3.6.14. (CVE-2022-0391)

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 python packages. Note that updated packages may not be available yet. Please contact ZTE for more information.

See Also

http://security.gd-linux.com/notice/NS-SA-2022-0102

http://security.gd-linux.com/info/CVE-2020-26116

http://security.gd-linux.com/info/CVE-2020-26137

http://security.gd-linux.com/info/CVE-2021-3177

http://security.gd-linux.com/info/CVE-2022-0391

Plugin Details

Severity: Critical

ID: 168928

File Name: newstart_cgsl_NS-SA-2022-0102_python.nasl

Version: 1.1

Type: local

Published: 12/19/2022

Updated: 9/12/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

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

CVSS Score Source: CVE-2021-3177

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 9.1

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

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

Vulnerability Information

CPE: p-cpe:/a:zte:cgsl_core:python, p-cpe:/a:zte:cgsl_core:python-debug, p-cpe:/a:zte:cgsl_core:python-debuginfo, p-cpe:/a:zte:cgsl_core:python-devel, p-cpe:/a:zte:cgsl_core:python-libs, p-cpe:/a:zte:cgsl_core:python-test, p-cpe:/a:zte:cgsl_core:python-tools, p-cpe:/a:zte:cgsl_core:tkinter, p-cpe:/a:zte:cgsl_main:python, p-cpe:/a:zte:cgsl_main:python-debug, p-cpe:/a:zte:cgsl_main:python-debuginfo, p-cpe:/a:zte:cgsl_main:python-devel, p-cpe:/a:zte:cgsl_main:python-libs, p-cpe:/a:zte:cgsl_main:python-test, p-cpe:/a:zte:cgsl_main:python-tools, p-cpe:/a:zte:cgsl_main:tkinter, cpe:/o:zte:cgsl_core:5, cpe:/o:zte:cgsl_main:5

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: 12/14/2022

Vulnerability Publication Date: 7/30/2020

Reference Information

CVE: CVE-2020-26116, CVE-2020-26137, CVE-2021-3177, CVE-2022-0391

IAVA: 2020-A-0340-S, 2021-A-0052-S