低危 Apache log4j JDBCAppender SQL注入漏洞(CVE-2022-23305)
CVE编号
CVE-2022-23305利用情况
暂无补丁情况
官方补丁披露时间
2022-01-19漏洞描述
Apache Log4j是美国阿帕奇(Apache)基金会的一款基于Java的开源日志记录工具。 Apache Log4j 存在SQL注入漏洞,该漏洞源于 Log4j 1.2.x 中的 JDBCAppender 接受 SQL 语句作为配置参数,其中要插入的值是来自 PatternLayout 的转换器。 消息转换器 \\%m 可能总是包含在内。 这允许攻击者通过将精心制作的字符串输入到记录的应用程序的输入字段或标题中来操纵 SQL,从而允许执行意外的 SQL 查询。 请注意,此问题仅在专门配置为使用 JDBCAppender(不是默认设置)时才会影响 Log4j 1.x。 从 2.0-beta8 版本开始,重新引入了 JDBCAppender,适当支持参数化 SQL 查询,并进一步自定义写入日志的列。 Apache Log4j 1.2 已于 2015 年 8 月结束生命周期。用户应升级到 Log4j 2,因为它解决了以前版本中的许多其他问题。解决建议
目前厂商已发布升级补丁以修复漏洞,补丁获取链接:https://lists.apache.org/thread/pt6lh3pbsvxqlwlp4c5l798dv2hkc85y受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | apache | log4j | * | From (including) 1.2 | Up to (including) 1.2.17 | ||||
运行在以下环境 | |||||||||
系统 | alibaba_cloud_linux_2.1903 | log4j | * | Up to (excluding) 1.2.17-18.0.1.al7 | |||||
运行在以下环境 | |||||||||
系统 | amazon_2 | log4j | * | Up to (excluding) 1.2.17-18.amzn2 | |||||
运行在以下环境 | |||||||||
系统 | amazon_AMI | log4j | * | Up to (excluding) 1.2.17-16.14.amzn1 | |||||
运行在以下环境 | |||||||||
系统 | anolis_os_7 | log4j | * | Up to (excluding) 1.2.17-18 | |||||
运行在以下环境 | |||||||||
系统 | anolis_os_8 | parfait-examples | * | Up to (excluding) 0.5.4-4 | |||||
运行在以下环境 | |||||||||
系统 | centos_7 | log4j | * | Up to (excluding) 1.2.17-18.el7_4 | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | apache-log4j1.2 | * | Up to (excluding) 1.2.17-8+deb10u2 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | apache-log4j1.2 | * | Up to (excluding) 1.2.17-10+deb11u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | apache-log4j1.2 | * | Up to (excluding) 1.2.17-11 | |||||
运行在以下环境 | |||||||||
系统 | debian_9 | apache-log4j1.2 | * | Up to (excluding) 1.2.17-7+deb9u2 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | apache-log4j1.2 | * | Up to (excluding) 1.2.17-11 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_aarch64_V10 | log4j | * | Up to (excluding) 1.2.17-18.el7_4.ns7.01 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_aarch64_V10SP2 | log4j12 | * | Up to (excluding) 1.2.17-25.p01.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_x86_64_V10 | log4j | * | Up to (excluding) 1.2.17-18.el7_4.ns7.01 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_x86_64_V10SP2 | log4j12 | * | Up to (excluding) 1.2.17-25.p01.ky10 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.3 | log4j-manual | * | Up to (excluding) 1.2.17-4.9.1 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.4 | log4j-manual | * | Up to (excluding) 1.2.17-4.9.1 | |||||
运行在以下环境 | |||||||||
系统 | oracle_6 | oraclelinux-release | * | Up to (excluding) 1.2.14-6.4.2.el6_10 | |||||
运行在以下环境 | |||||||||
系统 | oracle_7 | oraclelinux-release | * | Up to (excluding) 1.2.17-18.el7_4 | |||||
运行在以下环境 | |||||||||
系统 | oracle_8 | oraclelinux-release | * | Up to (excluding) 1.0.1-6.module+el8+5163+abb6ece5 | |||||
运行在以下环境 | |||||||||
系统 | redhat_7 | log4j | * | Up to (excluding) 1.2.17-18.el7_4 | |||||
运行在以下环境 | |||||||||
系统 | suse_12_SP5 | log4j | * | Up to (excluding) 1.2.15-126.9.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_18.04 | apache-log4j1.2 | * | Up to (excluding) 1.2.17-8+deb10u1ubuntu0.2 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_20.04 | apache-log4j1.2 | * | Up to (excluding) 1.2.17-9ubuntu0.2 | |||||
运行在以下环境 | |||||||||
系统 | unionos_d | apache-log4j1.2 | * | Up to (excluding) 1.2.17.2-deepin1 | |||||
- 攻击路径 远程
- 攻击复杂度 困难
- 权限要求 无需权限
- 影响范围 有限影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 数据泄露
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-89 | SQL命令中使用的特殊元素转义处理不恰当(SQL注入) |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论