中危 c-ares 安全特性绕过漏洞(CVE-2023-31147)
CVE编号
CVE-2023-31147利用情况
暂无补丁情况
官方补丁披露时间
2023-05-22漏洞描述
当 /dev/urandom 或 RtlGenRandom() 不可用时,c-ares 使用 rand() 生成用于 DNS 查询 ID 的随机数。 这不是 CSPRNG,它也不是由 srand() 播种的,因此会生成可预测的输出。 来自随机数生成器的输入被馈送到非兼容的 RC4 实现中,并且可能不如原始 RC4 实现强大。 没有尝试寻找现代操作系统提供的 CSPRNG,例如广泛可用的 arc4random()。解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | c-ares_project | c-ares | * | Up to (excluding) 1.19.1 | |||||
运行在以下环境 | |||||||||
系统 | amazon_2 | ecs-service-connect-agent | * | Up to (excluding) 1.amzn2 | |||||
运行在以下环境 | |||||||||
系统 | amazon_2023 | c-ares | * | Up to (excluding) 1.amzn2023 | |||||
运行在以下环境 | |||||||||
系统 | anolis_os_8 | nodejs-devel | * | Up to (excluding) 18.14.2-3 | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | c-ares | * | Up to (including) 1.14.0-1+deb10u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | c-ares | * | Up to (including) 1.17.1-1+deb11u3 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | c-ares | * | Up to (including) 1.18.1-3 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | c-ares | * | Up to (excluding) 1.19.1-2 | |||||
运行在以下环境 | |||||||||
系统 | fedoraproject | fedora | 37 | - | |||||
运行在以下环境 | |||||||||
系统 | fedoraproject | fedora | 38 | - | |||||
运行在以下环境 | |||||||||
系统 | fedora_37 | c-ares-debuginfo | * | Up to (excluding) 1.19.1-1.fc37 | |||||
运行在以下环境 | |||||||||
系统 | fedora_38 | c-ares-debuginfo | * | Up to (excluding) 1.19.1-1.fc38 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_5.3 | libcares2 | * | Up to (excluding) 1.19.1-150000.3.23.1 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.4 | c-ares-devel | * | Up to (excluding) 16.20.1-150400.3.21.1 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.5 | c-ares-devel | * | Up to (excluding) 18.16.1-150400.9.9.1 | |||||
运行在以下环境 | |||||||||
系统 | oracle_8 | oraclelinux-release | * | Up to (excluding) 18.14.2-3.module+el8.8.0+21122+857852f8 | |||||
运行在以下环境 | |||||||||
系统 | oracle_9 | oraclelinux-release | * | Up to (excluding) 18.14.2-3.module+el9.2.0+21063+2bebdd12 | |||||
运行在以下环境 | |||||||||
系统 | redhat_9 | nodejs-libs-debuginfo | * | Up to (excluding) 8.19.3-1.16.19.1.2.el9_2 | |||||
运行在以下环境 | |||||||||
系统 | suse_12_SP5 | libcares2 | * | Up to (excluding) 1.9.1-9.12.1 | |||||
运行在以下环境 | |||||||||
系统 | unionos_e | c-ares | * | Up to (excluding) c-ares-1.16.1-7.uel20 | |||||
- 攻击路径 本地
- 攻击复杂度 困难
- 权限要求 普通权限
- 影响范围 有限影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-330 | 使用不充分的随机数 |
Exp相关链接

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