Amazon Linux AMI:php72 (ALAS-2024-1921)

critical Nessus Plugin ID 190708

概要

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

說明

遠端主機上安裝的 php72 版本為 7.2.26-1.19 之前版本。因此,會受到 ALAS-2024-1921 公告中所提及的多個弱點影響。

- 在 Windows 上 PHP 7.2.x 的 7.2.26 以下版本、7.3.x 的 7.3.13 以下版本和 7.4.0 版中,PHP link() 函式接受具有內嵌 \0 位元組的檔案名稱,並將其視為在該位元組終止。例如,在檢查程式碼可存取路徑的應用程式中,這可導致安全弱點。(CVE-2019-11044)

- 在 PHP 7.2.x 的 7.2.26 以下版本、7.3.x 的 7.3.13 以下版本和 7.4.0 版中,PHP DirectoryIterator 類別接受具有內嵌 \0 位元組的檔案名稱,並將其視為在該位元組終止。例如,在檢查程式碼可存取路徑的應用程式中,這可導致安全弱點。(CVE-2019-11045)

- 在 PHP 7.2.26 之前的 7.2.x 版、7.3.13 之前的 7.3.x 版和 7.4.0 版中,可誘騙某些系統 (包括 Windows) 上的 PHP bcmath 延伸模組函式透過為其提供含有作業系統視為數值但非 ASCII 數字之字元的字串,讀取超過配置的空間。這可以理解為洩漏某些記憶體位置的內容。(CVE-2019-11046)

- 在 PHP 7.2.x 的 7.2.26 以下版本、7.3.x 的 7.3.13 以下版本和 7.4.0 版中,當 PHP EXIF 延伸模組剖析來自影像的 EXIF 資訊 (例如透過 exif_read_data() 函式) 時,可能提供會導致函式越過已分配緩衝區進行讀取的資料。這可導致資訊洩漏或損毀。
(CVE-2019-11047、CVE-2019-11050)

- 在 Windows 上 PHP 7.3.13 之前的 7.3.x 版和 7.4.0 版中,將自訂標頭因為認可 78f4b4a2dcf92ddbccea1bb95f8390a18ac3342e 中造成的錯誤而提供給 mail() 函式時,如果標頭以小寫提供,這可導致雙重釋放某些記憶體位置。(CVE-2019-11049)

- 在到 5.37 為止的檔案中,cdf.c 中的 cdf_read_property_info 未限制 CDF_VECTOR 元素的數量,進而允許堆積型緩衝區溢位 (4 位元組超出邊界寫入)。(CVE-2019-18218)

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

解決方案

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

另請參閱

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

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

https://alas.aws.amazon.com/cve/html/CVE-2019-11044.html

https://alas.aws.amazon.com/cve/html/CVE-2019-11045.html

https://alas.aws.amazon.com/cve/html/CVE-2019-11046.html

https://alas.aws.amazon.com/cve/html/CVE-2019-11047.html

https://alas.aws.amazon.com/cve/html/CVE-2019-11049.html

https://alas.aws.amazon.com/cve/html/CVE-2019-11050.html

https://alas.aws.amazon.com/cve/html/CVE-2019-18218.html

Plugin 詳細資訊

嚴重性: Critical

ID: 190708

檔案名稱: ala_ALAS-2024-1921.nasl

版本: 1.3

類型: local

代理程式: unix

已發布: 2024/2/19

已更新: 2024/3/5

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: High

基本分數: 7.5

時間分數: 5.9

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

CVSS 評分資料來源: CVE-2019-11049

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:amazon:linux:php72, p-cpe:/a:amazon:linux:php72-bcmath, p-cpe:/a:amazon:linux:php72-cli, p-cpe:/a:amazon:linux:php72-common, p-cpe:/a:amazon:linux:php72-dba, p-cpe:/a:amazon:linux:php72-dbg, p-cpe:/a:amazon:linux:php72-debuginfo, p-cpe:/a:amazon:linux:php72-devel, p-cpe:/a:amazon:linux:php72-embedded, p-cpe:/a:amazon:linux:php72-enchant, p-cpe:/a:amazon:linux:php72-fpm, p-cpe:/a:amazon:linux:php72-gd, p-cpe:/a:amazon:linux:php72-gmp, p-cpe:/a:amazon:linux:php72-imap, p-cpe:/a:amazon:linux:php72-intl, p-cpe:/a:amazon:linux:php72-json, p-cpe:/a:amazon:linux:php72-ldap, p-cpe:/a:amazon:linux:php72-mbstring, p-cpe:/a:amazon:linux:php72-mysqlnd, p-cpe:/a:amazon:linux:php72-odbc, p-cpe:/a:amazon:linux:php72-opcache, p-cpe:/a:amazon:linux:php72-pdo, p-cpe:/a:amazon:linux:php72-pdo-dblib, p-cpe:/a:amazon:linux:php72-pgsql, p-cpe:/a:amazon:linux:php72-process, p-cpe:/a:amazon:linux:php72-pspell, p-cpe:/a:amazon:linux:php72-recode, p-cpe:/a:amazon:linux:php72-snmp, p-cpe:/a:amazon:linux:php72-soap, p-cpe:/a:amazon:linux:php72-tidy, p-cpe:/a:amazon:linux:php72-xml, p-cpe:/a:amazon:linux:php72-xmlrpc, cpe:/o:amazon:linux

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2024/2/14

弱點發布日期: 2019/10/21

參考資訊

CVE: CVE-2019-11044, CVE-2019-11045, CVE-2019-11046, CVE-2019-11047, CVE-2019-11049, CVE-2019-11050, CVE-2019-18218