Alpine: multiple postgresql18 packages: security update to 18.4-r0

high Tenable Cloud Security Plugin ID 441890

Description

There are packages installed that are affected by multiple vulnerabilities referenced in the following CVEs:

- SQL injection in PostgreSQL logical replication ALTER SUBSCRIPTION ... REFRESH PUBLICATION allows a
subscriber table creator to execute arbitrary SQL with the subscription's publication-side credentials.
The attack takes effect at the next REFRESH PUBLICATION. Within major versions 16, 17, and 18, minor
versions before PostgreSQL 18.4, 17.10, and 16.14 are affected. Versions before PostgreSQL 16 are
unaffected. (CVE-2026-6638)

- Buffer over-read in PostgreSQL function pg_restore_attribute_stats() accepts array values of unmatched
length, which causes query planning to read past end of one array. This allows a table maintainer to infer
memory values past that array end. Within major version 18, minor versions before PostgreSQL 18.4 are
affected. Versions before PostgreSQL 18 are unaffected. (CVE-2026-6575)

- SQL injection in PostgreSQL pg_createsubscriber allows an attacker with pg_create_subscription rights to
execute arbitrary SQL as a superuser. The attack takes effect when pg_createsubscriber next runs. Within
major versions 17 and 18, minor versions before PostgreSQL 18.4 and 17.10 are affected. Versions before
PostgreSQL 17 are unaffected. (CVE-2026-6476)

- Symlink following in PostgreSQL pg_basebackup plain format and in pg_rewind allows an origin superuser to
overwrite local files, e.g. /var/lib/postgres/.bashrc, that hijack the operating system account. It will
remain the case that starting the server after these commands implicitly trusts the origin superuser, due
to features like shared_preload_libraries. Hence, the attack has practical implications only if one takes
relevant action between these commands and server start, like moving the files to a different VM or
snapshotting the VM. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.
(CVE-2026-6475)

- Use of inherently dangerous function PQfn(..., result_is_int=0, ...) in PostgreSQL libpq lo_export(),
lo_read(), lo_lseek64(), and lo_tell64() functions allows the server superuser to overwrite a client stack
buffer with an arbitrarily-large response. Like gets(), PQfn(..., result_is_int=0, ...) stores arbitrary-
length, server-determined data into a buffer of unspecified size. Because both the \lo_export command in
psql and pg_dump call lo_read(), the server superuser can overwrite pg_dump or psql stack memory. Versions
before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected. (CVE-2026-6477)

Solution

Update the postgresql18 library and its related packages to version 18.4-r0 or later.

See Also

https://security.alpinelinux.org/vuln/CVE-2026-6472

https://security.alpinelinux.org/vuln/CVE-2026-6473

https://security.alpinelinux.org/vuln/CVE-2026-6474

https://security.alpinelinux.org/vuln/CVE-2026-6475

https://security.alpinelinux.org/vuln/CVE-2026-6476

https://security.alpinelinux.org/vuln/CVE-2026-6477

https://security.alpinelinux.org/vuln/CVE-2026-6478

https://security.alpinelinux.org/vuln/CVE-2026-6479

https://security.alpinelinux.org/vuln/CVE-2026-6575

https://security.alpinelinux.org/vuln/CVE-2026-6637

https://security.alpinelinux.org/vuln/CVE-2026-6638

Plugin Details

Severity: High

ID: 441890

Version: Revision 1.14

Type: Local

Published: 5/15/2026

Updated: 12/4/2026

Supported Sensors: Agentless Assessment, Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: High

Score: 7.6

Percentile: 98.19

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 6.7

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

CVSS Score Source: CVE-2026-6638

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

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

Vulnerability Information

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 5/14/2026

Reference Information

CVE: CVE-2026-6472, CVE-2026-6473, CVE-2026-6474, CVE-2026-6475, CVE-2026-6476, CVE-2026-6477, CVE-2026-6478, CVE-2026-6479, CVE-2026-6575, CVE-2026-6637, CVE-2026-6638

IAVB: 2026-B-0129-S