Amazon Linux 2:postgresql、--advisory ALAS2-2026-3344 (ALAS-2026-3344)

high Nessus Plugin ID 319876

概要

遠端 Amazon Linux 2 主機缺少安全性更新。

說明

遠端主機上安裝的 postgresql 版本為早於 9.2.24-8 的版本。因此,它會受到 ALAS2-2026-3344 公告中所提及的多個弱點影響。

- 在 PostgreSQL 的 libpq 函式庫中,若在 lo_export()、lo_read()、lo_lseek64() 及 lo_tell64() 函式中使用內建危險函式 PQfn(..., result_is_int=0, ...),將使伺服器超級使用者得以透過任意大小的回應覆寫客戶端堆疊緩衝區。與 gets() 一樣,PQfn(..., result_is_int=0, ...) 將任意長度的伺服器確定資料儲存到未指定大小的緩衝區中。由於 psql 中的 \lo_export 命令和pg_dump呼叫 lo_read(),因此伺服器超級使用者可以覆寫 pg_dump 或 psql 堆疊記憶體。
PostgreSQL 18.4、17.10、16.14、15.18 和 14.23 之前版本均會受到影響。(CVE-2026-6477)

PostgreSQL 模組 refint 中的堆疊緩衝區溢位漏洞,允許無特權的資料庫使用者以執行資料庫的作業系統使用者身分執行任意程式碼。如果應用程式將一個使用者控制的欄位宣告為 refint 級聯主鍵,並允許使用者對該欄位進行更新,則可能發生一種特殊的攻擊。在這種情況下,SQL 注入會讓主鍵更新值提供者得以假冒執行主鍵更新的資料庫使用者身分,來執行任意的 SQL 指令。PostgreSQL 18.4、17.10、16.14、15.18 和 14.23 之前版本均會受到影響。(CVE-2026-6637)

Tenable 已直接從所測試產品的安全公告擷取前置描述區塊。

請注意,Nessus 並未測試這些問題,而是僅依據應用程式自我報告的版本號碼作出判斷。

解決方案

執行「yum update postgresql」或「yum update --advisory ALAS2-2026-3344」以更新系統。

另請參閱

https://alas.aws.amazon.com//AL2/ALAS2-2026-3344.html

https://alas.aws.amazon.com/faqs.html

https://explore.alas.aws.amazon.com/CVE-2026-6477.html

https://explore.alas.aws.amazon.com/CVE-2026-6637.html

Plugin 詳細資訊

嚴重性: High

ID: 319876

檔案名稱: al2_ALAS-2026-3344.nasl

版本: 1.1

類型: Local

代理程式: unix

已發布: 2026/6/8

已更新: 2026/6/8

支援的感應器: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: Critical

基本分數: 10

時間性分數: 7.4

媒介: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS 評分資料來源: CVE-2026-6477

CVSS v3

風險因素: High

基本分數: 8.8

時間性分數: 7.7

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

時間媒介: CVSS:3.0/E:U/RL:O/RC:C

CVSS 評分資料來源: CVE-2026-6637

弱點資訊

CPE: p-cpe:/a:amazon:linux:postgresql-contrib, p-cpe:/a:amazon:linux:postgresql, p-cpe:/a:amazon:linux:postgresql-docs, p-cpe:/a:amazon:linux:postgresql-devel, p-cpe:/a:amazon:linux:postgresql-pltcl, p-cpe:/a:amazon:linux:postgresql-plperl, p-cpe:/a:amazon:linux:postgresql-test, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:postgresql-debuginfo, p-cpe:/a:amazon:linux:postgresql-plpython, p-cpe:/a:amazon:linux:postgresql-upgrade, p-cpe:/a:amazon:linux:postgresql-static, p-cpe:/a:amazon:linux:postgresql-server, p-cpe:/a:amazon:linux:postgresql-libs

必要的 KB 項目: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

可輕鬆利用: No known exploits are available

修補程式發佈日期: 2026/6/8

弱點發布日期: 2026/5/14

參考資訊

CVE: CVE-2026-6477, CVE-2026-6637

IAVB: 2026-B-0129