TencentOS Server 3: python27:2.7 (TSSA-2024:0777)

high Nessus Plugin ID 239300

Synopsis

The remote TencentOS Server 3 host is missing one or more security updates.

Description

The version of Tencent Linux installed on the remote TencentOS Server 3 host is prior to tested version. It is, therefore, affected by multiple vulnerabilities as referenced in the TSSA-2024:0777 advisory.

Package updates are available for TencentOS Server 3 that fix the following vulnerabilities:

CVE-2022-40897:
Python Packaging Authority (PyPA) setuptools before 65.5.1 allows remote attackers to cause a denial of service via HTML in a crafted package or custom PackageIndex page. There is a Regular Expression Denial of Service (ReDoS) in package_index.py.

CVE-2022-48560:
A use-after-free exists in Python through 3.9 via heappushpop in heapq.

CVE-2022-48565:
An XML External Entity (XXE) issue was discovered in Python through 3.9.1. The plistlib module no longer accepts entity declarations in XML plist files to avoid XML vulnerabilities.

CVE-2023-43804:
urllib3 is a user-friendly HTTP client library for Python. urllib3 doesn't treat the Cookie HTTP header special or provide any helpers for managing cookies over HTTP, that is the responsibility of the user.
However, it is possible for a user to specify a Cookie header and unknowingly leak information via HTTP redirects to a different origin if that user doesn't disable redirects explicitly. This issue has been patched in urllib3 version 1.26.17 or 2.0.5.

CVE-2024-22195:
Jinja is an extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. It is possible to inject arbitrary HTML attributes into the rendered HTML template, potentially leading to Cross-Site Scripting (XSS). The Jinja xmlattr filter can be abused to inject arbitrary HTML attribute keys and values, bypassing the auto escaping mechanism and potentially leading to XSS. It may also be possible to bypass attribute validation checks if they are blacklist-based.

Tenable has extracted the preceding description block directly from the Tencent Linux security advisory.

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

Solution

Update the affected packages.

See Also

https://mirrors.tencent.com/tlinux/errata/tssa-20240777.xml

Plugin Details

Severity: High

ID: 239300

File Name: tencentos_TSSA_2024_0777.nasl

Version: 1.3

Type: local

Published: 6/16/2025

Updated: 12/4/2025

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

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

CVSS Score Source: CVE-2022-48565

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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:P/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 8.7

Threat Score: 7.7

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:L/SI:L/SA:N

CVSS Score Source: CVE-2022-40897

Vulnerability Information

CPE: p-cpe:/a:tencent:tencentos_server:python2-pip, p-cpe:/a:tencent:tencentos_server:python-dns, p-cpe:/a:tencent:tencentos_server:python-coverage, p-cpe:/a:tencent:tencentos_server:python-chardet, p-cpe:/a:tencent:tencentos_server:python-pymongo, p-cpe:/a:tencent:tencentos_server:python-pygments, p-cpe:/a:tencent:tencentos_server:python-backports, p-cpe:/a:tencent:tencentos_server:python-psycopg2, cpe:/o:tencent:tencentos_server:3, p-cpe:/a:tencent:tencentos_server:python-sqlalchemy, p-cpe:/a:tencent:tencentos_server:python2-setuptools, p-cpe:/a:tencent:tencentos_server:scipy, p-cpe:/a:tencent:tencentos_server:python-nose, p-cpe:/a:tencent:tencentos_server:python-pytest-mock, p-cpe:/a:tencent:tencentos_server:python-docutils, p-cpe:/a:tencent:tencentos_server:python-jinja2, p-cpe:/a:tencent:tencentos_server:python-ipaddress, p-cpe:/a:tencent:tencentos_server:python-setuptools_scm, p-cpe:/a:tencent:tencentos_server:python-docs, p-cpe:/a:tencent:tencentos_server:python-backports-ssl_match_hostname, p-cpe:/a:tencent:tencentos_server:python-funcsigs, p-cpe:/a:tencent:tencentos_server:python-mock, p-cpe:/a:tencent:tencentos_server:pytz, p-cpe:/a:tencent:tencentos_server:python2-six, p-cpe:/a:tencent:tencentos_server:python2, p-cpe:/a:tencent:tencentos_server:python-virtualenv, p-cpe:/a:tencent:tencentos_server:python2-rpm-macros, p-cpe:/a:tencent:tencentos_server:python-requests, p-cpe:/a:tencent:tencentos_server:python-urllib3

Required KB Items: Host/local_checks_enabled, Host/etc/os-release, Host/TencentOS/rpm-list, Host/cpu

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/22/2024

Vulnerability Publication Date: 5/22/2024

Reference Information

CVE: CVE-2022-40897, CVE-2022-48560, CVE-2022-48565, CVE-2023-43804, CVE-2024-22195