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

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-40897

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-48560

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-48565

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-43804

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-22195

Plugin Details

Severity: High

ID: 239300

File Name: tencentos_TSSA_2024_0777.nasl

Version: 1.1

Type: local

Published: 6/16/2025

Updated: 6/16/2025

Supported Sensors: Nessus

Vulnerability Information

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

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

Exploit Ease: No known exploits are available

Patch Publication Date: 5/22/2024

Vulnerability Publication Date: 5/22/2024