Amazon Linux 2:postgresql (ALASPOSTGRESQL12-2023-004)

high Nessus Plugin ID 182032

概要

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

說明

遠端主機上安裝的 postgresql 版本為早於 12.7-1 的版本。因此,會受到 ALAS2POSTGRESQL12-2023-004 公告中所提及的多個弱點影響。

- 在早於 13.3、12.7、11.12、10.17 和 9.6.22 的 postgresql 版本中發現一個缺陷。如果在修改特定 SQL 陣列值時缺少邊界檢查,則經驗證的資料庫使用者可向大量伺服器記憶體區域寫入任意位元組。此弱點對於資料的機密性和完整性以及系統可用性威脅最大。(CVE-2021-32027)

- 在 postgresql 中發現一個缺陷。透過對專門構建的表格使用 INSERT ... ON CONFLICT ... DO UPDATE 命令,經驗證的資料庫使用者可讀取伺服器記憶體的任意位元組。此弱點對資料機密性的威脅最大。(CVE-2021-32028)

- 在 postgresql 中發現一個缺陷。正在使用 UPDATE… RETURNING 命令,經驗證的資料庫使用者可讀取伺服器記憶體的任意位元組。此弱點對資料機密性的威脅最大。(CVE-2021-32029)

- 在 postgresql 13.2 之前版本、12.6 之前版本以及 11.11 之前版本中發現資訊洩漏弱點。對特定欄具有「更新」權限但不具有「選取」權限的使用者可特製查詢,在某些情況下,這可在錯誤訊息中洩漏該欄的值。攻擊者可利用此瑕疵,取得欄中儲存的可寫入但無法讀取的資訊。(CVE-2021-3393)

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

解決方案

執行「yum update postgresql」以更新系統。

另請參閱

https://alas.aws.amazon.com/AL2/ALASPOSTGRESQL12-2023-004.html

https://alas.aws.amazon.com/cve/html/CVE-2021-32027.html

https://alas.aws.amazon.com/cve/html/CVE-2021-32028.html

https://alas.aws.amazon.com/cve/html/CVE-2021-32029.html

https://alas.aws.amazon.com/cve/html/CVE-2021-3393.html

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

Plugin 詳細資訊

嚴重性: High

ID: 182032

檔案名稱: al2_ALASPOSTGRESQL12-2023-004.nasl

版本: 1.0

類型: local

代理程式: unix

已發布: 2023/9/27

已更新: 2023/9/27

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

風險資訊

VPR

風險因素: Medium

分數: 5.9

CVSS v2

風險因素: Medium

基本分數: 6.5

時間分數: 4.8

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

CVSS 評分資料來源: CVE-2021-32027

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

弱點資訊

CPE: p-cpe:/a:amazon:linux:postgresql, p-cpe:/a:amazon:linux:postgresql-contrib, p-cpe:/a:amazon:linux:postgresql-debuginfo, p-cpe:/a:amazon:linux:postgresql-docs, p-cpe:/a:amazon:linux:postgresql-llvmjit, p-cpe:/a:amazon:linux:postgresql-plperl, p-cpe:/a:amazon:linux:postgresql-plpython2, p-cpe:/a:amazon:linux:postgresql-plpython3, p-cpe:/a:amazon:linux:postgresql-pltcl, p-cpe:/a:amazon:linux:postgresql-server, p-cpe:/a:amazon:linux:postgresql-server-devel, p-cpe:/a:amazon:linux:postgresql-static, p-cpe:/a:amazon:linux:postgresql-test, p-cpe:/a:amazon:linux:postgresql-test-rpm-macros, p-cpe:/a:amazon:linux:postgresql-upgrade, p-cpe:/a:amazon:linux:postgresql-upgrade-devel, cpe:/o:amazon:linux:2

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

可輕鬆利用: No known exploits are available

修補程式發佈日期: 2023/8/7

弱點發布日期: 2021/2/11

參考資訊

CVE: CVE-2021-32027, CVE-2021-32028, CVE-2021-32029, CVE-2021-3393

IAVB: 2021-B-0036-S