Amazon Linux 2023 : postgresql15、postgresql15-contrib、postgresql15-llvmjit (ALAS2023-2024-547)

high Nessus プラグイン ID 191603

概要

リモートの Amazon Linux 2023 ホストに、セキュリティ更新プログラムがありません。

説明

したがって、ALAS2023-2024-547 のアドバイザリに記載されている脆弱性の影響を受けます。

- PostgreSQL の REFRESH MATERIALIZED VIEW CONCURRENTLY の後期権限ドロップにより、オブジェクト作成者がコマンド発行者として任意の SQL 関数を実行する可能性があります。このコマンドは、具体化されたビューの所有者として SQL 関数を実行することを意図しており、信頼できない具体化されたビューを安全にリフレッシュできるようにします。被害者はスーパーユーザーであるか、攻撃者のロールのいずれかのメンバーです。攻撃では、被害者を誘導して、攻撃者の具体化されたビューで REFRESH MATERIALIZED VIEW CONCURRENTLY を実行させる必要があります。この脆弱性の悪用の一環として、攻撃者は CREATE RULE を使用して内部で構築された一時テーブルをビューに変換する関数を作成します。PostgreSQL 15.6、14.11、13.14、12.18 より前のバージョンが影響を受けます。唯一の既知のエクスプロイトは、PostgreSQL 16 以降では機能しません。多層防御の場合、PostgreSQL 16.2 が、古いブランチが脆弱性を修正するために使用している保護を追加しています。(CVE-2024-0985)

Nessus はこの問題をテストしておらず、代わりにアプリケーションが自己報告するバージョン番号にのみ依存していることに注意してください。

ソリューション

「dnf update postgresql15 --releasever2023.3.20240304」を実行してシステムを更新してください。

参考資料

https://alas.aws.amazon.com/AL2023/ALAS-2024-547.html

https://alas.aws.amazon.com/cve/html/CVE-2024-0985.html

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

プラグインの詳細

深刻度: High

ID: 191603

ファイル名: al2023_ALAS2023-2024-547.nasl

バージョン: 1.1

タイプ: local

エージェント: unix

公開日: 2024/3/6

更新日: 2024/5/24

サポートされているセンサー: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

リスク情報

VPR

リスクファクター: Medium

スコア: 6.7

CVSS v2

リスクファクター: High

基本値: 9

現状値: 6.7

ベクトル: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS スコアのソース: CVE-2024-0985

CVSS v3

リスクファクター: High

基本値: 8

現状値: 7

ベクトル: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

現状ベクトル: CVSS:3.0/E:U/RL:O/RC:C

脆弱性情報

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

必要な KB アイテム: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

エクスプロイトの容易さ: No known exploits are available

パッチ公開日: 2024/2/29

脆弱性公開日: 2024/2/8

参照情報

CVE: CVE-2024-0985

IAVB: 2024-B-0009-S