字号·· | 护眼
漏洞档案 · 高危

Apache Log4j JMSAppender 不可信数据反序列化(CVE-2021-4104)

CVE-2021-4104 别名:GHSA-FP5R-V3W9-4333、DEBIAN-CVE-2021-4104
CVSS 7.5 / 3.1 EPSS 80.6% CISA KEV 在野利用 公开 PoC · 3
综合风险78/ 100
CVSS7.5高危
EPSS80.6%30 天利用概率
机构收录时间2021-12-14更新 2026-12-01

研判简报

概述

Log4j 1.2 的 JMSAppender 组件在攻击者具备 Log4j 配置写权限时,会反序列化不可信数据。攻击者可设置 TopicBindingName 与 TopicConnectionFactoryBindingName,使 JMSAppender 发起 JNDI 请求,进而以类似 CVE-2021-44228 的方式实现远程代码执行。该问题仅影响显式配置使用 JMSAppender 的 Log4j 1.2,非默认配置。Log4j 1.2 已于 2015 年 8 月停止维护,官方建议升级至 Log4j 2。仍在使用 Log4j 1.x 且配置可控性不足的环境应重点关注。

严重性

CVSS 3.1 评分 7.5(high),综合风险分 78.12/100;EPSS 30 天利用概率 80.6%,百分位 99.7%(2026-11-27)。攻击面为可写入日志配置的通道,非默认可远程直接触发。

利用状态

CISA KEV 已收录(2022-04-26);Exploit-DB/公开 PoC 记录 1 条(含 GitHub 上的 log4shell_1.x 仓库);CISA SSVC 评估:automatable=no、exploitation=none、technical_impact=partial。核查日期 2026-11-27。材料未给出勒索软件关联信息,材料未给出 Nuclei 模板状态。

受影响产品

Apache Log4j 1.x,具体为 Apache Log4j 1.2 / 1.2.x;组件为 JMSAppender,且仅在配置中启用 JMSAppender 时受影响。部署形态材料未给出。

修复版本

材料未给出 Log4j 1.2 的修复版本;官方记录仅建议升级至 Log4j 2,未给出具体目标版本号。

缓解措施

按 KEV 要求,应用厂商说明中的修复或缓解措施,或在无法修复/缓解时停止使用该产品(期限材料未给出)。可行方向包括:移除或禁用 JMSAppender 配置、严格限制 Log4j 配置文件的写入权限、迁移至 Log4j 2。具体厂商缓解条目材料未给出。

响应步骤

  1. 排查资产中是否存在 Log4j 1.2/1.2.x 依赖,并确认配置是否启用 JMSAppender。
  2. 审计 Log4j 配置文件的读写权限与变更记录,收敛可写入口。
  3. 对启用 JMSAppender 的实例,检查 TopicBindingName、TopicConnectionFactoryBindingName 是否被异常修改。
  4. 监控 JNDI 外联与异常反序列化行为,映射 T1190 与 T1059 检测点。
  5. 按官方建议规划升级至 Log4j 2;无法升级的按 KEV 要求执行缓解或停用。
  6. 复核 EPSS/KEV 状态更新,登记处置结论与残余风险。

参考来源

  1. https://www.pwc.com/gx/en/issues/cybersecurity/cyber-threat-intelligence/cyber-year-in-retrospect/yir-cyber-threats-annex-download.pdfkev
  2. https://www.secureworks.com/research/gold-melody-profile-of-an-initial-access-brokerkev
  3. https://www.secureworks.com/research/threat-profiles/gold-melodykev
  4. https://vulncheck.com/xdb/20fe098db6e5exploit,vulncheck_xdb
  5. https://github.com/cckuailong/log4shell_1.xpoc,github,exploit,poc_github
  6. https://vulncheck.com/kev/cve-2021-4104advisory,vulncheck_kev
  7. https://www.cve.org/CVERecord?id=CVE-2021-44228x_transferred,advisory,euvd
  8. https://github.com/apache/logging-log4j2/pull/608#issuecomment-990494126x_transferred,advisory,euvd
  9. https://access.redhat.com/security/cve/CVE-2021-4104x_transferred,advisory,euvd
  10. https://www.kb.cert.org/vuls/id/930724third-party-advisory,third-party-advisory,x_transferred,advisory,euvd
  11. http://www.openwall.com/lists/oss-security/2022/01/18/3mailing-list,mailing-list,x_transferred,advisory,euvd
  12. https://www.oracle.com/security-alerts/cpujan2022.htmlx_transferred,advisory,euvd
  13. https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2021-0033x_transferred,advisory,euvd
  14. https://security.netapp.com/advisory/ntap-20211223-0007/x_transferred,advisory,euvd
  15. https://www.oracle.com/security-alerts/cpuapr2022.htmlx_transferred,advisory,euvd
  16. https://www.oracle.com/security-alerts/cpujul2022.htmlx_transferred,advisory,euvd