RHEL 7python27 (RHSA-2021:3252)

high Nessus Plugin ID 152778

概要

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

說明

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

Python 是經過解譯的互動式物件導向程式設計語言,包括模組、類別、例外狀況、非常高階的動態資料類型,以及動態輸入。Python 支援許多系統呼叫和程式庫的介面,以及多種 Window 系統的介面。

安全性修正:

* python在測試套件中對透過 HTTP 擷取的資料不安全地使用 eval() (CVE-2020-27619)

* python-jinja2sub-pattern 造成的 ReDoS 弱點 (CVE-2020-28493)

* python_ctypes/callproc.c 的 PyCArg_repr 中發生堆疊型緩衝區溢位 (CVE-2021-3177)

* python-babel相對路徑遊走允許攻擊者載入任意地區設定檔案及執行任意程式碼 (CVE-2021-20095)

* python-pygmentsSML lexer 中的無限迴圈可能導致 DoS (CVE-2021-20270)

* python在查詢參數中使用分號進而造成 urllib.parse.parse_qsl 和 urllib.parse.parse_qs 的 Web 快取毒害 (CVE-2021-23336)

* python-pygments透過特製的惡意輸入造成 ReDoS (CVE-2021-27291)

如需安全性問題的詳細資料,包括影響、CVSS 分數、致謝及其他相關資訊,請參閱〈參照〉一節列出的 CVE 頁面。

其他資訊

* Python urllib 剖析函式之預設分隔符號的變更

為了減輕 Python urllib 程式庫中的 Web Cache Poisoning CVE-2021-23336 urllib.parse.parse_qsl 和 urllib.parse.parse_qs 函式的預設分隔符號從 & 符號 (&) 和分號 (;) 變更為只有 & 符號。

預設分隔符號的變更可能造成回溯不相容因此 Red Hat 會提供一種在 Python 套件 (已變更預設分隔符號) 中設定行為的方法。此外如果受影響的 urllib 剖析函式偵測到客戶應用程式受到變更影響則會發出警告。

如需詳細資訊請參閱可從〈參照〉一節連結的知識庫文章「Python urllib 程式庫中 Web 快取毒害的減輕措施」(CVE-2021-23336)。

Tenable 已直接從 Red Hat Enterprise Linux 安全公告擷取前置描述區塊。

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

解決方案

根據 RHSA-2021:3252中的指南更新 RHEL python27 套件。

另請參閱

http://www.nessus.org/u?64271f64

https://access.redhat.com/articles/5860431

https://access.redhat.com/errata/RHSA-2021:3252

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

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

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

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

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

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

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

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

Plugin 詳細資訊

嚴重性: High

ID: 152778

檔案名稱: redhat-RHSA-2021-3252.nasl

版本: 1.12

類型: local

代理程式: unix

已發布: 2021/8/24

已更新: 2025/9/10

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

Vendor

Vendor Severity: Moderate

CVSS v2

風險因素: High

基本分數: 7.5

時間性分數: 5.9

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

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

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 v4

風險因素: High

Base Score: 8.7

Threat Score: 7.4

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

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

弱點資訊

CPE: p-cpe:/a:redhat:enterprise_linux:python27-python-jinja2, p-cpe:/a:redhat:enterprise_linux:python27-python-devel, p-cpe:/a:redhat:enterprise_linux:python27-python-libs, p-cpe:/a:redhat:enterprise_linux:python27-python-pygments, p-cpe:/a:redhat:enterprise_linux:python27-tkinter, cpe:/o:redhat:enterprise_linux:7, p-cpe:/a:redhat:enterprise_linux:python27-python-babel, p-cpe:/a:redhat:enterprise_linux:python27-python-test, p-cpe:/a:redhat:enterprise_linux:python27-python, p-cpe:/a:redhat:enterprise_linux:python27-python-tools, p-cpe:/a:redhat:enterprise_linux:python27-babel, p-cpe:/a:redhat:enterprise_linux:python27-python-debug

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2021/8/24

弱點發布日期: 2020/10/22

參考資訊

CVE: CVE-2020-27619, CVE-2020-28493, CVE-2021-20270, CVE-2021-23336, CVE-2021-27291, CVE-2021-3177, CVE-2021-42771

CWE: 120, 22, 400, 444, 835, 95

IAVA: 2021-A-0052-S, 2021-A-0263-S

RHSA: 2021:3252