TencentOS Server 3: postgresql:12 (TSSA-2023:0318)

high Nessus Plugin ID 238578

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-2023:0318 advisory.

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

CVE-2023-5868:
A memory disclosure vulnerability was found in PostgreSQL that allows remote users to access sensitive information by exploiting certain aggregate function calls with 'unknown'-type arguments. Handling 'unknown'-type values from string literals without type designation can disclose bytes, potentially revealing notable and confidential information. This issue exists due to excessive data output in aggregate function calls, enabling remote users to read some portion of system memory.

CVE-2023-5869:
A flaw was found in PostgreSQL that allows authenticated database users to execute arbitrary code through missing overflow checks during SQL array value modification. This issue exists due to an integer overflow during array modification where a remote user can trigger the overflow by providing specially crafted data. This enables the execution of arbitrary code on the target system, allowing users to write arbitrary bytes to memory and extensively read the server's memory.

CVE-2023-5870:
A flaw was found in PostgreSQL involving the pg_cancel_backend role that signals background workers, including the logical replication launcher, autovacuum workers, and the autovacuum launcher. Successful exploitation requires a non-core extension with a less-resilient background worker and would affect that specific background worker only. This issue may allow a remote high privileged user to launch a denial of service (DoS) attack.

CVE-2023-39417:
IN THE EXTENSION SCRIPT, a SQL Injection vulnerability was found in PostgreSQL if it uses @extowner@, @extschema@, or @extschema:...@ inside a quoting construct (dollar quoting, '', or ). If an administrator has installed files of a vulnerable, trusted, non-bundled extension, an attacker with database-level CREATE privilege can execute arbitrary code as the bootstrap superuser.

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

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

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

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

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

Plugin Details

Severity: High

ID: 238578

File Name: tencentos_TSSA_2023_0318.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:postgres-decoderbufs, p-cpe:/a:tencent:tencentos_server:pg_repack, cpe:/o:tencent:tencentos_server:3, p-cpe:/a:tencent:tencentos_server:postgresql, p-cpe:/a:tencent:tencentos_server:pgaudit

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: 1/19/2024

Vulnerability Publication Date: 1/19/2024