CVE-2017-7481

Ansible before versions 2.3.1.0 and 2.4.0.0 fails to properly mark lookup-plugin results as unsafe. If an attacker could control the results of lookup() calls, they could inject Unicode strings to be parsed by the jinja2 templating system, resulting in code execution. By default, the jinja2 templating language is now marked as 'unsafe' and is not evaluated.

公開: 2018-07-19 最後更新: 2026-06-16 指派方: [email protected] 來源: [email protected]

結論預警: CVE-2017-7481 綜合評估為高風險(71.2/100):CVSS 技術影響為嚴重級,利用機率偏高(EPSS 4.62%,百分位 90%) 核心證據: EPSS 顯示該漏洞近期被利用的可能性處於高位。 強制指令: 被利用機率偏高—請盤點暴露面並優先安排修補。

風險隨態勢動態變化;本站持續評估並同步更新本頁展示內容。

CVE-2017-7481 的 EPSS(利用預測評分)

EPSS 日更估計相對被利用可能性;百分位表示該 CVE 在已評分漏洞中的相對排名(越高表示相對更嚴重)。

# 日期 舊 EPSS 分數 新 EPSS 分數 變化(新 − 舊)
1 2026-06-15 4.31% 4.62% +0.30%
2 2026-04-21 3.51% 4.31% +0.81%
3 2026-04-13 3.51%

完整 EPSS 歷史 (共 21 筆)

CVE-2017-7481 的 CVSS 指標

該 CVE 的 CVSS 指標。

底座分 版本 嚴重度 向量 可利用性 影響 分數來源
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 點擊展開
攻擊向量 (AV:N)
可經網際網路或企業內可路由網段從遠端觸達,攻擊者不必在裝置旁邊。
攻擊複雜度 (AC:L)
前置條件清楚,成功路徑穩定,不必仰賴罕見競態或極端環境。
權限需求 (PR:N)
不必事先登入或提權,匿名工作階段也可能成為跳板。
使用者互動 (UI:N)
不必受害者點連結、放行巨集或安裝軟體,攻擊鏈可自動走完。
作用域 (S:U)
破壞局限在脆弱元件原本的安全權限與信任域之內。
機密性影響 (C:H)
大量讀取、匯出或長期潛伏竊取機敏資料,在實務上成立。
完整性影響 (I:H)
可竄改稽核紀錄、植入後門或大面積偽造業務資料,動搖信任根基。
可用性影響 (A:H)
可造成長時間中斷、關鍵交易無法完成,或伴隨資料毀損導致難以自癒。
3.9 5.9 [email protected]
5.3 3.0 MEDIUM
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N 點擊展開
攻擊向量 (AV:N)
可經網際網路或企業內可路由網段從遠端觸達,攻擊者不必在裝置旁邊。
攻擊複雜度 (AC:H)
即使網路可達,也常要卡時間窗、負載或特定版本組合才打得響。
權限需求 (PR:N)
不必事先登入或提權,匿名工作階段也可能成為跳板。
使用者互動 (UI:R)
需要一次明確的使用者動作(安裝、改設定、開啟惡意文件等)才會落地。
作用域 (S:U)
破壞局限在脆弱元件原本的安全權限與信任域之內。
機密性影響 (C:N)
幾乎談不上實質的敏感資料外洩。
完整性影響 (I:H)
可竄改稽核紀錄、植入後門或大面積偽造業務資料,動搖信任根基。
可用性影響 (A:N)
不至於造成業務意義上的長時間停擺或災難性效能崩塌。
1.6 3.6 [email protected]
7.5 2.0 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P 點擊展開
存取路徑 (AV:N)
只要路由可達,即可從遠端發動利用。
存取複雜度 (AC:L)
步驟短、路徑清楚,重現成本低。
認證 (AU:N)
全程無需有效身分。
機密性影響 (C:P)
機密性受到部分損害。
完整性影響 (I:P)
完整性受到部分損害。
可用性影響 (A:P)
可用性受到部分損害。
10.0 6.4 [email protected]

CVE-2017-7481 的弱點列舉

CVE-2017-7481 的 GitHub 安全公告

GHSA-w578-j992-554x · 嚴重度: critical · 生態: pip — Ansible fails to properly mark lookup-plugin results as unsafe

CVE-2017-7481 的 OS 追蹤

vendor priority summary link
debian not yet assigned CVE-2017-7481 not yet assigned priority: Debian including 1 source packages (ansible), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2017-7481
redhat medium https://access.redhat.com/security/cve/CVE-2017-7481
suse medium CVE-2017-7481 severity moderate: SUSE including 13 source package names (ansible-10-10.6.0-1.1, ansible-11-11.11.0-1.1, …), 13 product×package rows across 6 product lines (SUSE Linux Enterprise Server 11 SP3-TERADATA, SUSE Linux Enterprise Server 16.0, … (6 product lines)): Fixed 13. https://www.suse.com/security/cve/CVE-2017-7481/
ubuntu low CVE-2017-7481 low priority: Ubuntu including 1 source packages (ansible), 20 status rows across 20 suites (artful, bionic, cosmic, disco, eoan, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, trusty, upstream, xenial, yakkety, zesty): not-affected 15, ignored 3, released 2. https://ubuntu.com/security/CVE-2017-7481

CVE-2017-7481 的影響軟體 / 設定

廠商 產品 版本 原始 CPE
redhat openshift_container_platform 3.3 cpe:2.3:a:redhat:openshift_container_platform:3.3:*:*:*:*:*:*:*
redhat openshift_container_platform 3.4 cpe:2.3:a:redhat:openshift_container_platform:3.4:*:*:*:*:*:*:*
redhat openshift_container_platform 3.5 cpe:2.3:a:redhat:openshift_container_platform:3.5:*:*:*:*:*:*:*
redhat openstack 10 cpe:2.3:a:redhat:openstack:10:*:*:*:*:*:*:*
redhat openstack 11 cpe:2.3:a:redhat:openstack:11:*:*:*:*:*:*:*
redhat storage_console 2.0 cpe:2.3:a:redhat:storage_console:2.0:*:*:*:*:*:*:*
redhat virtualization 4.1 cpe:2.3:a:redhat:virtualization:4.1:*:*:*:*:*:*:*
redhat virtualization_manager 4.1 cpe:2.3:a:redhat:virtualization_manager:4.1:*:*:*:*:*:*:*
redhat gluster_storage 3.2 cpe:2.3:a:redhat:gluster_storage:3.2:*:*:*:*:*:*:*
redhat ansible_engine < 2.3.1.0 cpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:*
redhat ansible_engine >= 2.3.2.0, < 2.4.0.0 cpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:*
canonical ubuntu_linux 16.04 cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 18.04 cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
canonical ubuntu_linux 19.04 cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*

CVE-2017-7481 的參考連結

URL 標籤
http://www.securityfocus.com/bid/98492 Third Party Advisory VDB Entry
https://access.redhat.com/errata/RHSA-2017:1244 Vendor Advisory
https://access.redhat.com/errata/RHSA-2017:1334 Vendor Advisory
https://access.redhat.com/errata/RHSA-2017:1476 Vendor Advisory
https://access.redhat.com/errata/RHSA-2017:1499 Vendor Advisory
https://access.redhat.com/errata/RHSA-2017:1599 Vendor Advisory
https://access.redhat.com/errata/RHSA-2017:2524 Vendor Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2017-7481 Issue Tracking Patch Vendor Advisory
https://github.com/ansible/ansible/commit/ed56f51f185a1ffd7ea57130d260098686fcc7c2 Patch Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/01/msg00023.html Mailing List Third Party Advisory
https://usn.ubuntu.com/4072-1/ Third Party Advisory
cvelogic Threat Intelligence