Ubuntu 22.04 LTS / 24.04 LTS / 26.04 LTS : PostgreSQL vulnerabilities (USN-8653-1)

high Nessus Plugin ID 365387

Synopsis

The remote Ubuntu host is missing one or more security updates.

Description

The remote Ubuntu 22.04 LTS / 24.04 LTS / 26.04 LTS host has packages installed that are affected by multiple vulnerabilities as referenced in the USN-8653-1 advisory.

It was discovered that PostgreSQL incorrectly handled COPY FROM STDIN when an early failure occurred. An authenticated user could possibly use this issue to execute arbitrary SQL commands. (CVE-2026-6464)

It was discovered that PostgreSQL incorrectly reset extended statistics ownership during ALTER TABLE ALTER TYPE operations. An attacker could possibly use this issue to obtain sensitive information or gain unintended privileges. (CVE-2026-6469)

It was discovered that PostgreSQL failed to check the USAGE privilege on types. An authenticated user could possibly use this issue to obtain sensitive information. (CVE-2026-6470)

It was discovered that PostgreSQL logical decoding could load arbitrary shared libraries. An authenticated user could possibly use this issue to execute arbitrary code. (CVE-2026-6471)

It was discovered that PostgreSQL had integer wraparound issues in tsvector and tsquery allocations. An authenticated user could possibly use this issue to execute arbitrary code. (CVE-2026-14662)

It was discovered that PostgreSQL pgcrypto silently used cleartext when OpenSSL-disabled ciphers were requested. An authenticated user could possibly use this issue to obtain sensitive information.
(CVE-2026-14663)

It was discovered that PostgreSQL had a heap buffer overflow in regular expression processing. An authenticated user could possibly use this issue to execute arbitrary code. (CVE-2026-14664)

It was discovered that PostgreSQL row security policies were not properly invalidated when roles were modified. An attacker could possibly use this issue to bypass intended row security restrictions.
(CVE-2026-14666)

It was discovered that PostgreSQL had a type confusion issue in the selectivity estimator involving ctid.
An authenticated user could possibly use this issue to obtain sensitive information. (CVE-2026-14668)

It was discovered that PostgreSQL had a heap buffer overflow in the to_char function. An authenticated user could possibly use this issue to execute arbitrary code. (CVE-2026-14669)

It was discovered that PostgreSQL had a heap buffer overflow in the PL/Perl tied object handling. An authenticated user could possibly use this issue to execute arbitrary code. (CVE-2026-14670)

It was discovered that PostgreSQL had a type confusion issue in the referential integrity plan cache. An authenticated user could possibly use this issue to execute arbitrary code. (CVE-2026-14671)

It was discovered that PostgreSQL had an observable response discrepancy when non-default scram_iterations were used. A remote attacker could possibly use this issue to enumerate valid usernames. This issue only affected Ubuntu 24.04 LTS and Ubuntu 26.04 LTS. (CVE-2026-14672)

It was discovered that PostgreSQL amcheck did not clear untrusted search paths. An authenticated user could possibly use this issue to execute arbitrary code. (CVE-2026-14673)

It was discovered that PostgreSQL had a heap buffer overflow in pg_stat_statements. An authenticated user could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 26.04 LTS.
(CVE-2026-14676)

It was discovered that PostgreSQL had integer wraparound issues in PL/Tcl and PL/Perl allocations on 32-bit systems. An authenticated user could possibly use this issue to execute arbitrary code.
(CVE-2026-14677)

It was discovered that PostgreSQL pg_trgm read past the end of a buffer during picksplit operations. An authenticated user could possibly use this issue to obtain sensitive information. (CVE-2026-14678)

It was discovered that PostgreSQL had a stack buffer overflow in argument matching. An authenticated user could possibly use this issue to corrupt server memory. (CVE-2026-14679)

It was discovered that PostgreSQL had a type confusion issue when functions used internal arguments. An authenticated user could possibly use this issue to execute arbitrary code. (CVE-2026-14680)

It was discovered that PostgreSQL did not properly enforce GSSAPI encryption when used together with SSL.
An attacker could possibly use this issue to perform a machine-in-the-middle attack and obtain sensitive information. This issue only affected Ubuntu 26.04 LTS. (CVE-2026-14681)

It was discovered that PostgreSQL allowed SQL injection through EXTRACT arguments during expression deparsing. An authenticated user could possibly use this issue to perform SQL injection attacks.
(CVE-2026-15741)

It was discovered that PostgreSQL fuzzystrmatch had integer wraparound issues that could write to arbitrary addresses. An authenticated user could possibly use this issue to execute arbitrary code.
(CVE-2026-15742)

It was discovered that PostgreSQL had a type confusion issue in pg_restore_attribute_stats(). An authenticated user could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 26.04 LTS. (CVE-2026-16238)

It was discovered that PostgreSQL had a type confusion issue when handling cursor CLOSE and DECLARE operations. An authenticated user could possibly use this issue to execute arbitrary code.
(CVE-2026-16239)

It was discovered that PostgreSQL had an integer underflow in the ECPG client library. An attacker could possibly use this issue to cause PostgreSQL to crash, resulting in a denial of service. (CVE-2026-16241)

It was discovered that PostgreSQL had an out-of-bounds read in the ascii() function. An authenticated user could possibly use this issue to obtain sensitive information. (CVE-2026-18024)

It was discovered that the psql \unrestrict command allowed the superuser of a pg_dump origin server to execute arbitrary code in the psql client. An attacker could possibly use this issue to execute arbitrary code. (CVE-2026-18408)

It was discovered that PostgreSQL pg_dump had a heap buffer overflow. An attacker could possibly use this issue to execute arbitrary code. (CVE-2026-19385)

Tenable has extracted the preceding description block directly from the Ubuntu 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://ubuntu.com/security/notices/USN-8653-1

Plugin Details

Severity: High

ID: 365387

File Name: ubuntu_USN-8653-1.nasl

Version: 1.1

Type: Local

Agent: unix

Published: 10/13/2026

Updated: 10/13/2026

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Azure, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security, Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.7

Percentile: 98.93

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-2026-18408

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

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

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

CVSS Score Source: CVE-2026-19385

Vulnerability Information

CPE: cpe:/o:canonical:ubuntu_linux:22.04:-:lts, cpe:/o:canonical:ubuntu_linux:24.04:-:lts, cpe:/o:canonical:ubuntu_linux:26.04:-:lts, p-cpe:/a:canonical:ubuntu_linux:libecpg-compat3, p-cpe:/a:canonical:ubuntu_linux:libecpg6, p-cpe:/a:canonical:ubuntu_linux:libpgtypes3, p-cpe:/a:canonical:ubuntu_linux:libpq-oauth, p-cpe:/a:canonical:ubuntu_linux:libpq5, p-cpe:/a:canonical:ubuntu_linux:postgresql-14, p-cpe:/a:canonical:ubuntu_linux:postgresql-16, p-cpe:/a:canonical:ubuntu_linux:postgresql-18-jit, p-cpe:/a:canonical:ubuntu_linux:postgresql-18, p-cpe:/a:canonical:ubuntu_linux:postgresql-client-14, p-cpe:/a:canonical:ubuntu_linux:postgresql-client-16, p-cpe:/a:canonical:ubuntu_linux:postgresql-client-18, p-cpe:/a:canonical:ubuntu_linux:postgresql-plperl-14, p-cpe:/a:canonical:ubuntu_linux:postgresql-plperl-16, p-cpe:/a:canonical:ubuntu_linux:postgresql-plperl-18, p-cpe:/a:canonical:ubuntu_linux:postgresql-plpython3-14, p-cpe:/a:canonical:ubuntu_linux:postgresql-plpython3-16, p-cpe:/a:canonical:ubuntu_linux:postgresql-plpython3-18, p-cpe:/a:canonical:ubuntu_linux:postgresql-pltcl-14, p-cpe:/a:canonical:ubuntu_linux:postgresql-pltcl-16, p-cpe:/a:canonical:ubuntu_linux:postgresql-pltcl-18, p-cpe:/a:canonical:ubuntu_linux:postgresql-server-dev-14, p-cpe:/a:canonical:ubuntu_linux:postgresql-server-dev-16, p-cpe:/a:canonical:ubuntu_linux:postgresql-server-dev-18

Required KB Items: Host/cpu, Host/Debian/dpkg-l, Host/Ubuntu, Host/Ubuntu/release

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/20/2026

Vulnerability Publication Date: 8/13/2026

Reference Information

CVE: CVE-2026-14662, CVE-2026-14663, CVE-2026-14664, CVE-2026-14666, CVE-2026-14668, CVE-2026-14669, CVE-2026-14670, CVE-2026-14671, CVE-2026-14672, CVE-2026-14673, CVE-2026-14676, CVE-2026-14677, CVE-2026-14678, CVE-2026-14679, CVE-2026-14680, CVE-2026-14681, CVE-2026-15741, CVE-2026-15742, CVE-2026-16238, CVE-2026-16239, CVE-2026-16241, CVE-2026-18024, CVE-2026-18408, CVE-2026-19385, CVE-2026-6464, CVE-2026-6469, CVE-2026-6470, CVE-2026-6471

USN: 8653-1