Amazon Linux 2023:expat、expat-devel、expat-static (ALAS2023-2023-058)

critical Nessus Plugin ID 173105

概要

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

說明

因此,它受到 ALAS2023-2023-058 公告中所提及的多個弱點影響。

- 在 Expat (即 libexpat) 2.4.3 更舊版本中,於 xmlparse.c 的 storeAtts 函式中左移 29 個 (或更多) 位置,可導致出現 realloc 錯誤行為 (例如,配置的位元組數目太少或僅釋放記憶體)。
(CVE-2021-45960)

- 在 Expat (即 libexpat) 2.4.3 更舊版本中,xmlparse.c 的 doProlog 存在 m_groupSize 整數溢位弱點。(CVE-2021-46143)

- 在 Expat (即 libexpat) 2.4.3 更舊版本中,xmlparse.c 的 addBinding 存在整數溢位弱點。(CVE-2022-22822)

- 在 Expat (即 libexpat) 2.4.3 更舊版本中,xmlparse.c 的 build_model 存在整數溢位弱點。(CVE-2022-22823)

- 在 Expat (即 libexpat) 2.4.3 更舊版本中,xmlparse.c 的 defineAttribute 存在整數溢位弱點。
(CVE-2022-22824)

- 在 Expat (即 libexpat) 2.4.3 更舊版本中,xmlparse.c 的 lookup 存在整數溢位弱點。(CVE-2022-22825)

- 在 Expat (即 libexpat) 2.4.3 更舊版本中,xmlparse.c 的 nextScaffoldPart 存在整數溢位弱點。
(CVE-2022-22826)

- 在 Expat (即 libexpat) 2.4.3 更舊版本中,xmlparse.c 的 storeAtts 存在整數溢位弱點。(CVE-2022-22827)

- 針對具有非零 XML_CONTEXT_BYTES 的組態, 2.4.4 版之前的 Expat (即 libexpat) 的 XML_GetBuffer 中有一個帶正負號的整數溢位弱點。(CVE-2022-23852)

- Expat (即 libexpat) 2.4.4 之前版本的 doProlog 函式中有一個整數溢位弱點。(CVE-2022-23990)

- Expat (即 libexpat) 2.4.5 更早版本中的 xmltok_impl.c 缺少特定的編碼驗證處理,例如檢查 UTF-8 字元在特定內容中是否有效。(CVE-2022-25235)

- Expat (即 libexpat) 2.4.5 更早版本中的 xmlparse.c 允許攻擊者將命名空間分隔符號字元插入命名空間 URI。(CVE-2022-25236)

- 在 Expat (即 libexpat) 2.4.5 更早版本中,攻擊者可透過 DTD 元素中的大型巢狀深度,在 build_model 中觸發堆疊耗盡。(CVE-2022-25313)

- Expat (即 libexpat) 2.4.5 之前版本的 copyString 中有一個整數溢位弱點。(CVE-2022-25314)

- Expat (即 libexpat) 2.4.5 之前版本的 storeRawNames 中有一個整數溢位弱點。(CVE-2022-25315)

- 在 libexpat 2.4.9 之前版本中,xmlparse.c 的 doContent 函式中存在釋放後使用問題。(CVE-2022-40674)

- 在 libexpat 2.4.9 以及之前的所有版本中,在記憶體不足的情況下,過度破壞 XML_ExternalEntityParserCreate 中的共用 DTD 會造成釋放後使用。(CVE-2022-43680)

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

解決方案

執行「dnf update expat --releasever=2023.0.20230222」以更新系統。

另請參閱

https://alas.aws.amazon.com/AL2023/ALAS-2023-058.html

https://alas.aws.amazon.com/cve/html/CVE-2021-45960.html

https://alas.aws.amazon.com/cve/html/CVE-2021-46143.html

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Plugin 詳細資訊

嚴重性: Critical

ID: 173105

檔案名稱: al2023_ALAS2023-2023-058.nasl

版本: 1.2

類型: local

代理程式: unix

已發布: 2023/3/21

已更新: 2023/4/21

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

風險資訊

VPR

風險因素: Medium

分數: 6.7

CVSS v2

風險因素: High

基本分數: 9

時間分數: 7.4

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

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

CVSS v3

風險因素: Critical

基本分數: 9.8

時間分數: 9.1

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

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

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

弱點資訊

CPE: p-cpe:/a:amazon:linux:expat, p-cpe:/a:amazon:linux:expat-debuginfo, p-cpe:/a:amazon:linux:expat-debugsource, p-cpe:/a:amazon:linux:expat-devel, p-cpe:/a:amazon:linux:expat-static, cpe:/o:amazon:linux:2023

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

可被惡意程式利用: true

可輕鬆利用: Exploits are available

修補程式發佈日期: 2023/2/17

弱點發布日期: 2022/1/1

參考資訊

CVE: CVE-2021-45960, CVE-2021-46143, CVE-2022-22822, CVE-2022-22823, CVE-2022-22824, CVE-2022-22825, CVE-2022-22826, CVE-2022-22827, CVE-2022-23852, CVE-2022-23990, CVE-2022-25235, CVE-2022-25236, CVE-2022-25313, CVE-2022-25314, CVE-2022-25315, CVE-2022-40674, CVE-2022-43680