Amazon Linux 2:ghostscript (ALAS-2025-2805)

critical Nessus Plugin ID 233686

概要

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

說明

遠端主機上安裝的 ghostscript 版本是 9.54.0-9 之前版本。因此,會受到 ALAS2-2025-2805 公告中所提及的多個弱點影響。

在序列化多個主要字型以傳遞至 Freetype 期間,DollarBlend 可能發生整數和緩衝區溢位。修正方法是將變數類型從 short 變更為 unsigned short 並檢查長度變數是否超過允許的限制。已在 ghostpdl-10.05.0 中修正 (CVE-2025-27830)

文字緩衝區因長字元而發生溢位;txt_get_unicode 函式將太少位元組從固定的字符名稱複製到 unicode 對應表格。在相對罕見的情況下,這可能會造成不正確的 Unicode 程式碼點,但在其他情況下不會造成問題。但是,附加至字型的錯誤格式 GlyphNames2Unicode 陣列可能導致解碼結果超出分配的緩衝區。

已在 ghostpdl-10.05.0 中修補 (CVE-2025-27831)

緩衝區大小的計算是以 int 值完成的,且超出了資料類型的範圍。這個錯誤自 contrib/japanese/gdevnpdl.c 檔案建立以來就一直存在。緩衝區大小的計算是以 int 值完成的,且超出了資料類型的範圍。透過將總大小計算留給記憶體管理員來處理,計算會使用 size_t 值進行,這樣可以避免在此情況下發生溢位問題,同時也代表記憶體管理員的溢位保護將會生效。

已在 ghostpdl-10.05.0 中修正

資訊:https://bugs.ghostscript.com/show_bug.cgi?id=708133Patch: https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=57291c846334f1585552010faa42d7cb2cbd5c41 (CVE-2025-27832)

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

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

解決方案

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

另請參閱

https://alas.aws.amazon.com/AL2/ALAS-2025-2805.html

https://alas.aws.amazon.com/cve/html/CVE-2025-27830.html

https://alas.aws.amazon.com/cve/html/CVE-2025-27831.html

https://alas.aws.amazon.com/cve/html/CVE-2025-27832.html

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

Plugin 詳細資訊

嚴重性: Critical

ID: 233686

檔案名稱: al2_ALAS-2025-2805.nasl

版本: 1.1

類型: local

代理程式: unix

已發布: 2025/4/1

已更新: 2025/4/1

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

風險資訊

VPR

風險因素: Medium

分數: 5.9

CVSS v2

風險因素: High

基本分數: 7.5

時間性分數: 5.5

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

CVSS 評分資料來源: CVE-2025-27831

CVSS v3

風險因素: Critical

基本分數: 9.8

時間性分數: 8.5

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

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

CVSS 評分資料來源: CVE-2025-27832

弱點資訊

CPE: p-cpe:/a:amazon:linux:ghostscript-cups, p-cpe:/a:amazon:linux:libgs, p-cpe:/a:amazon:linux:ghostscript-doc, p-cpe:/a:amazon:linux:ghostscript-gtk, p-cpe:/a:amazon:linux:ghostscript, cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:ghostscript-debuginfo, p-cpe:/a:amazon:linux:libgs-devel

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

可輕鬆利用: No known exploits are available

修補程式發佈日期: 2025/3/26

弱點發布日期: 2025/3/25

參考資訊

CVE: CVE-2025-27830, CVE-2025-27831, CVE-2025-27832

IAVB: 2025-B-0043