CVE-2016-3081
Apache Struts Command Injection Vulnerability
Apache · Struts
列入日期: 2026-10-08美國聯邦機關修補期限: 2026-10-11
解析與對策(積穗 HMMA)
說明:「解析與對策」由積穗地端 AI(HMMA)依 CISA 公開原文自動生成,未加入 CISA 以外的資訊;受影響版本與修補方式請以廠商公告為準。
這個漏洞是什麼
Apache Struts 2 存在一個命令注入漏洞(CVE-2016-3081),當系統啟用 Dynamic Method Invocation(動態方法呼叫)功能時,攻擊者可透過 method: 字首在 URL 中注入惡意表達式,觸發 OGNL(Object-Graph Navigation Language)執行任意程式碼。此漏洞源於 Struts 處理 method: 字首時,未正確過濾惡意指令,導致伺服器端執行非預期指令。攻擊者無需合法帳號即可遠端取得伺服器控制權。
下列條件全部成立才會中
- Apache Struts 2.3.19 至 2.3.20.2、2.3.21 至 2.3.24.1、2.3.25 至 2.3.28 版本受影響
- 系統設定中啟用了 Dynamic Method Invocation 功能
修補版本
Struts 2.3.20.3、Struts 2.3.24.3、Struts 2.3.28.1
對企業的風險
此漏洞屬於高風險的遠端程式碼執行(RCE)漏洞,攻擊者可直接控制執行 Struts 服務的伺服器,導致資料外洩、系統癱瘓或成為內網攻擊跳板。根據 CISA KEV 資訊,目前尚未載明此漏洞已被勒索軟體利用。台灣企業若使用此版本且未關閉動態方法呼叫,將面臨被駭客入侵並竊取商業機密的直接威脅。
怎麼確認自己有沒有中
- 檢查專案設定檔(如 struts.xml),確認是否設定 <struts> 標籤中的 dynamicMethodInvocation 為 true
- 確認 Apache Struts 實際執行版本是否落在受影響的範圍(2.3.19 至 2.3.28)
- 檢查 URL 請求中是否包含 method: 字首,例如 /action/method:targetMethod
誰需要處理
資訊安全部門(負責漏洞評估與修補策略)、IT 運維團隊(負責執行升級與設定變更)、應用程式開發團隊(負責程式碼與設定審查)
建議對策
- 立即升級至 Struts 2.3.20.3、2.3.24.3 或 2.3.28.1 版本,並依廠商指示完成修補
- 若無法立即升級,應在設定中將 Dynamic Method Invocation 設為 false(停用)
- 若無法停用該功能,可參考 Apache 官方建議,自行實作 ActionMapper 來限制允許的方法呼叫範圍
- 針對外網暴露的 Struts 應用,應部署 WAF(Web Application Firewall)並建立針對 OGNL 注入攻擊的阻擋規則
- 監控伺服器日誌,尋找包含 method:、#container、#context、#ognl 等關鍵字異常請求,並追蹤異常的系統指令執行紀錄
解析依據
解析時間: 2026-11-07 12:43 UTC · winners-zh-summary
CISA 官方原文
- 廠商
- Apache
- 產品
- Struts
- 漏洞名稱
- Apache Struts Command Injection Vulnerability
- CISA 描述
- Apache Struts contains a command injection vulnerability that could allow remote attackers to execute arbitrary code via method:prefix when Dynamic Method Invocation is enabled.
- CISA 要求措施
- Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
- CWE
- CWE-77
- 需鑑識分流
- Yes
