TencentOS Server 3: less (TSSA-2024:0317)

high Nessus Plugin ID 240051

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:0317 advisory.

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

CVE-2022-48624:
close_altfile in filename.c in less before 606 omits shell_quote calls for LESSCLOSE.

CVE-2024-32487:
less through 653 allows OS command execution via a newline character in the name of a file, because quoting is mishandled in filename.c. Exploitation typically requires use with attacker-controlled file names, such as the files extracted from an untrusted archive. Exploitation also requires the LESSOPEN environment variable, but this is set by default in many common cases.

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-20240317.xml

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

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

Plugin Details

Severity: High

ID: 240051

File Name: tencentos_TSSA_2024_0317.nasl

Version: 1.1

Type: local

Published: 6/16/2025

Updated: 6/16/2025

Supported Sensors: Nessus

Vulnerability Information

CPE: cpe:/o:tencent:tencentos_server:3, p-cpe:/a:tencent:tencentos_server:less

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: 7/2/2024

Vulnerability Publication Date: 7/2/2024