RHEL 9:php:8.1 (RHSA-2024: 0387)

critical Nessus Plugin ID 189487

概要

遠端 Red Hat 主機缺少一個或多個 php: 8.1 的安全性更新。

說明

遠端 Redhat Enterprise Linux 9 主機上安裝的套件受到 RHSA-2024: 0387 公告中提及的多個弱點影響。

- 在 PHP 8.0.X 的 8.0.28 之前版本、8.1.X 的 8.1.16 之前版本和 8.2.X 的 8.2.3之前版本中,password_verify() 函式可能會將某些無效的 Blowfish 雜湊作爲有效雜湊來接受。如果這種無效的雜湊最終出現在密碼資料庫中,可能會導致應用程式允許此項目的任何密碼有效。(CVE-2023-0567)

- 在 PHP 8.0.28 之前的 8.0.X 版、 8.1.16 之前的 8.1.X 版和 8.2.3 之前的 8.2.X 版中,核心路徑解析函式配置的緩衝區一個位元組太小。解析長度接近系統 MAXPATHLEN 設定的路徑時,這可能會導致已配置緩衝區之後的位元組被 NULL 值覆寫,進而可能導致未經授權的資料存取或修改。(CVE-2023-0568)

- 在 PHP 8.0.28 之前的 8.0.X 版、 8.1.16 之前的 8.1.X 版和 8.2.3 之前的 8.2.X 版中,HTTP 表單上傳中的過量片段會造成高資源消耗和過量的記錄項目。這會耗盡 CPU 資源或磁碟空間,進而在受影響的伺服器上造成拒絕服務。(CVE-2023-0662)

- 在 PHP 8.0.* 的 8.0.29 之前版本、8.1.* 的 8.1.20 之前版本、8.2.* 的 8.2.7 之前版本中,當使用 SOAP HTTP 摘要式驗證時,程式不會檢查隨機值產生器是否失敗,而且會使用較原本更窄的值範圍。如果隨機產生器失敗,可導致從用戶端向伺服器洩漏 31 位元的未初始化記憶體,而且這也會讓惡意伺服器更容易猜測用戶端的臨時值。(CVE-2023-3247)

- 在 8.0.30 之前的 8.0.*、8.1.22 之前的 8.1.* 和 8.2.8 之前的 8.2.* 版 PHP 中,多種 XML 函式依賴 libxml 全域狀態來追蹤組態變數,例如外部實體是否已載入。
系統會假設此狀態未變更,除非使用者透過呼叫適當的函式明確進行變更。不過,由於狀態為全域處理程序,因此其他模組 (例如 ImageMagick) 也可能在相同處理程序中使用此程式庫,並出於內部目的變更該全域狀態,並讓其保持在外部實體載入已啟用的狀態。這可能會導致剖析外部 XML 時載入外部實體,進而造成洩漏 PHP 可存取的任何本機檔案。此弱點狀態可能會持續存在於多個要求的相同處理程序中,直到處理程序關閉為止。(CVE-2023-3823)

- 在 8.0.30 之前的 8.0.*、8.1.22 之前的 8.1.* 和 8.2.8 之前的 8.2.* 版 PHP 中,當載入 phar 檔案同時讀取 PHAR 目錄項目的時候,長度檢查不足可能會導致堆疊緩衝區溢位,進而造成記憶體損毀或 RCE。(CVE-2023-3824)

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

解決方案

更新 RHEL php: 8.1 套件,依據 RHSA-2024: 0387。

另請參閱

http://www.nessus.org/u?90b645c2

https://access.redhat.com/security/updates/classification/#moderate

https://bugzilla.redhat.com/show_bug.cgi?id=2170761

https://bugzilla.redhat.com/show_bug.cgi?id=2170770

https://bugzilla.redhat.com/show_bug.cgi?id=2170771

https://bugzilla.redhat.com/show_bug.cgi?id=2219290

https://bugzilla.redhat.com/show_bug.cgi?id=2229396

https://bugzilla.redhat.com/show_bug.cgi?id=2230101

https://access.redhat.com/errata/RHSA-2024:0387

Plugin 詳細資訊

嚴重性: Critical

ID: 189487

檔案名稱: redhat-RHSA-2024-0387.nasl

版本: 1.1

類型: local

代理程式: unix

已發布: 2024/1/24

已更新: 2024/4/28

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

風險資訊

VPR

風險因素: High

分數: 7.4

CVSS v2

風險因素: Critical

基本分數: 10

時間分數: 7.8

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

CVSS 評分資料來源: CVE-2023-3824

CVSS v3

風險因素: Critical

基本分數: 9.8

時間分數: 8.8

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

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

弱點資訊

CPE: p-cpe:/a:redhat:enterprise_linux:php-gd, p-cpe:/a:redhat:enterprise_linux:php-gmp, p-cpe:/a:redhat:enterprise_linux:php-intl, p-cpe:/a:redhat:enterprise_linux:php-ldap, p-cpe:/a:redhat:enterprise_linux:php-mbstring, p-cpe:/a:redhat:enterprise_linux:php-mysqlnd, p-cpe:/a:redhat:enterprise_linux:php-odbc, p-cpe:/a:redhat:enterprise_linux:php-opcache, p-cpe:/a:redhat:enterprise_linux:php-pdo, p-cpe:/a:redhat:enterprise_linux:php-pecl-apcu, p-cpe:/a:redhat:enterprise_linux:php-pecl-apcu-devel, p-cpe:/a:redhat:enterprise_linux:php-pecl-rrd, p-cpe:/a:redhat:enterprise_linux:php-pecl-xdebug3, p-cpe:/a:redhat:enterprise_linux:php-pecl-zip, p-cpe:/a:redhat:enterprise_linux:php-pgsql, p-cpe:/a:redhat:enterprise_linux:php-process, p-cpe:/a:redhat:enterprise_linux:php-snmp, p-cpe:/a:redhat:enterprise_linux:php-soap, p-cpe:/a:redhat:enterprise_linux:php-xml, cpe:/o:redhat:enterprise_linux:9, p-cpe:/a:redhat:enterprise_linux:apcu-panel, p-cpe:/a:redhat:enterprise_linux:php, p-cpe:/a:redhat:enterprise_linux:php-bcmath, p-cpe:/a:redhat:enterprise_linux:php-cli, p-cpe:/a:redhat:enterprise_linux:php-common, p-cpe:/a:redhat:enterprise_linux:php-dba, p-cpe:/a:redhat:enterprise_linux:php-dbg, p-cpe:/a:redhat:enterprise_linux:php-devel, p-cpe:/a:redhat:enterprise_linux:php-embedded, p-cpe:/a:redhat:enterprise_linux:php-enchant, p-cpe:/a:redhat:enterprise_linux:php-ffi, p-cpe:/a:redhat:enterprise_linux:php-fpm

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2024/1/24

弱點發布日期: 2023/2/14

參考資訊

CVE: CVE-2023-0567, CVE-2023-0568, CVE-2023-0662, CVE-2023-3247, CVE-2023-3823, CVE-2023-3824

CWE: 119, 131, 328, 334, 611, 779

IAVA: 2023-A-0105-S, 2023-A-0321-S, 2023-A-0423

RHSA: 2024:0387