Amazon Linux 2:python3 (ALAS-2023-2317)

critical Nessus Plugin ID 183926

概要

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

說明

遠端主機上安裝的 python3 版本是 3.7.10-1 之前版本。因此,會受到 ALAS2-2023-2317 公告中所提及的多個弱點影響。

- 在 Python 中發現一個缺陷。內建模組 httplib 和 http.client (分別包含在 Python 2 和 Python 3 中) 未正確驗證 HTTP 要求方法中的 CRLF 序列,可能允許透過插入其他 HTTP 標頭以操控要求。此弱點對機密性與完整性的威脅最大。(CVE-2020-26116)

在 Python 3 的 Lib/test/multibytecodec_support.py CJK 轉碼器測試會針對透過 HTTP 擷取的內容呼叫 eval()。
(CVE-2020-27619)

在 Python 3.9.1 及更低版本中,plistlib.py 的 read_ints 在處理二進位格式的格式錯誤 Apple Property List 檔案時,容易因 CPU 和 RAM 耗盡而受到潛在的 DoS 攻擊。(CVE-2022-48564)

在 Python 3.9.1 及更低版本中發現 XML 外部實體 (XXE) 問題。plistlib 模組不再接受 XML plist 檔案中的實體宣告,以避免 XML 弱點。(CVE-2022-48565)

在 到 3.9.1之前,在 Python 的 Lib/hmac.py 中的 compare_digest 發現一個問題。在 hmac.compare_digest 的 accumulator 變數中可能進行常數時間失敗最佳化。(CVE-2022-48566)

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

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

解決方案

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

另請參閱

https://alas.aws.amazon.com/AL2/ALAS-2023-2317.html

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

https://alas.aws.amazon.com/cve/html/CVE-2020-26116.html

https://alas.aws.amazon.com/cve/html/CVE-2020-27619.html

https://alas.aws.amazon.com/cve/html/CVE-2022-48564.html

https://alas.aws.amazon.com/cve/html/CVE-2022-48565.html

https://alas.aws.amazon.com/cve/html/CVE-2022-48566.html

Plugin 詳細資訊

嚴重性: Critical

ID: 183926

檔案名稱: al2_ALAS-2023-2317.nasl

版本: 1.8

類型: local

代理程式: unix

已發布: 2023/10/26

已更新: 2025/4/11

支援的感應器: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, 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-2020-27619

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

CVSS 評分資料來源: CVE-2022-48565

弱點資訊

CPE: p-cpe:/a:amazon:linux:python3, p-cpe:/a:amazon:linux:python3-test, p-cpe:/a:amazon:linux:python3-devel, p-cpe:/a:amazon:linux:python3-debuginfo, p-cpe:/a:amazon:linux:python3-debug, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:python3-tools, p-cpe:/a:amazon:linux:python3-libs, p-cpe:/a:amazon:linux:python3-tkinter

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2023/10/25

弱點發布日期: 2023/8/22

參考資訊

CVE: CVE-2020-26116, CVE-2020-27619, CVE-2022-48564, CVE-2022-48565, CVE-2022-48566

IAVA: 2023-A-0442-S