Amazon Linux 2023:postgresql15、postgresql15-contrib、postgresql15-llvmjit (ALAS2023-2025-1165)

high Nessus Plugin ID 261754

概要

遠端 Amazon Linux 2023 主機缺少一個安全性更新。

說明

因此,會受到 ALAS2023-2025-1165 公告中所提及的多個弱點影響。

PostgreSQL 最佳化程式統計資料允許使用者在其無法存取的檢視中讀取採樣資料。另外,統計資料允許使用者讀取列安全性原則預定要隱藏的採樣資料。PostgreSQL 透過取樣欄內可用的資料,維護表格的統計資料;查詢規劃處理程序期間會查閱此資料。在此版本之前,使用者可特製洩漏運算子,繞過檢視存取控制清單 (ACL),並繞過磁碟分割或表格繼承階層中的列安全性原則。可連線的統計資料特別包含直方圖和最常見值清單。CVE-2017-7484 和 CVE-2019-10130 預定解決此類弱點,但仍此問題仍存在。PostgreSQL 17.6、16.10、15.14、14.19 和 13.22 之前版本均會受到影響。(CVE-2025-8713)

在 PostgreSQL 的 pg_dump 中未受信任的資料,允許原始伺服器的惡意超級使用者透過 psql 中繼命令,以執行 psql 的用戶端作業系統帳戶插入還原時間執行的任意程式碼,藉此還原轉儲存。pg_dumpall 也會受到影響。pg_restore 用於產生純文字格式轉儲存時會受到影響。此問題與 MySQL CVE-2024-21096 類似。PostgreSQL 17.6、16.10、15.14、14.19 和 13.22 之前版本均會受到影響。(CVE-2025-8714)

在 PostgreSQL 的 pg_dump 中不當中和新行,允許原始伺服器使用者透過特製物件名稱內的 psql 中繼命令,以執行 psql 的用戶端作業系統帳戶身分,插入還原時間執行的任意程式碼,以還原轉儲存。相同的攻擊可透過還原目標伺服器的超級使用者身分造成 SQL 插入攻擊。pg_dumpall、pg_restore 和 pg_upgrade 也會受到影響。PostgreSQL 17.6、16.10、15.14、14.19 和 13.22 版本均會受到影響。比 11.20 舊的版本不受影響。CVE-2012-0868 已修復此類問題,但 11.20 版中又再次出現。
(CVE-2025-8715)

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

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

解決方案

執行「dnf update postgresql15 --releasever 2023.8.20250908」或「dnf update --advisory ALAS2023-2025-1165 --releasever 2023.8.20250908」以更新系統。

另請參閱

https://alas.aws.amazon.com//AL2023/ALAS2023-2025-1165.html

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

https://explore.alas.aws.amazon.com/CVE-2025-8713.html

https://explore.alas.aws.amazon.com/CVE-2025-8714.html

https://explore.alas.aws.amazon.com/CVE-2025-8715.html

Plugin 詳細資訊

嚴重性: High

ID: 261754

檔案名稱: al2023_ALAS2023-2025-1165.nasl

版本: 1.1

類型: local

代理程式: unix

已發布: 2025/9/8

已更新: 2025/9/8

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: Critical

基本分數: 10

時間性分數: 7.8

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

CVSS 評分資料來源: CVE-2025-8715

CVSS v3

風險因素: High

基本分數: 8.8

時間性分數: 7.9

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

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

弱點資訊

CPE: p-cpe:/a:amazon:linux:postgresql15-server-devel-debuginfo, cpe:/o:amazon:linux:2023, p-cpe:/a:amazon:linux:postgresql15-private-libs, p-cpe:/a:amazon:linux:postgresql15-private-devel, p-cpe:/a:amazon:linux:postgresql15-pltcl-debuginfo, p-cpe:/a:amazon:linux:postgresql15-debuginfo, p-cpe:/a:amazon:linux:postgresql15-debugsource, p-cpe:/a:amazon:linux:postgresql15-upgrade-devel, p-cpe:/a:amazon:linux:postgresql15-contrib-debuginfo, p-cpe:/a:amazon:linux:postgresql15, p-cpe:/a:amazon:linux:postgresql15-upgrade-devel-debuginfo, p-cpe:/a:amazon:linux:postgresql15-plperl, p-cpe:/a:amazon:linux:postgresql15-private-libs-debuginfo, p-cpe:/a:amazon:linux:postgresql15-test-rpm-macros, p-cpe:/a:amazon:linux:postgresql15-server-debuginfo, p-cpe:/a:amazon:linux:postgresql15-pltcl, p-cpe:/a:amazon:linux:postgresql15-docs-debuginfo, p-cpe:/a:amazon:linux:postgresql15-upgrade-debuginfo, p-cpe:/a:amazon:linux:postgresql15-server-devel, p-cpe:/a:amazon:linux:postgresql15-upgrade, p-cpe:/a:amazon:linux:postgresql15-plpython3-debuginfo, p-cpe:/a:amazon:linux:postgresql15-plpython3, p-cpe:/a:amazon:linux:postgresql15-test, p-cpe:/a:amazon:linux:postgresql15-contrib, p-cpe:/a:amazon:linux:postgresql15-plperl-debuginfo, p-cpe:/a:amazon:linux:postgresql15-llvmjit-debuginfo, p-cpe:/a:amazon:linux:postgresql15-static, p-cpe:/a:amazon:linux:postgresql15-server, p-cpe:/a:amazon:linux:postgresql15-test-debuginfo, p-cpe:/a:amazon:linux:postgresql15-docs, p-cpe:/a:amazon:linux:postgresql15-llvmjit

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

可被惡意程式利用: true

可輕鬆利用: No known exploits are available

修補程式發佈日期: 2025/9/8

弱點發布日期: 2025/8/14

參考資訊

CVE: CVE-2025-8713, CVE-2025-8714, CVE-2025-8715

IAVB: 2025-B-0140