中危 redis hiredis 整数溢出或超界折返
CVE编号
CVE-2021-32765利用情况
暂无补丁情况
官方补丁披露时间
2021-10-05漏洞描述
Hiredis is a minimalistic C client library for the Redis database. In affected versions Hiredis is vulnurable to integer overflow if provided maliciously crafted or corrupted `RESP` `mult-bulk` protocol data. When parsing `multi-bulk` (array-like) replies, hiredis fails to check if `count * sizeof(redisReply*)` can be represented in `SIZE_MAX`. If it can not, and the `calloc()` call doesn't itself make this check, it would result in a short allocation and subsequent buffer overflow. Users of hiredis who are unable to update may set the [maxelements](https://github.com/redis/hiredis#reader-max-array-elements) context option to a value small enough that no overflow is possible.解决建议
下载相关补丁受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | redis | hiredis | * | Up to (excluding) 1.0.1 | |||||
运行在以下环境 | |||||||||
系统 | amazon_2 | hiredis | * | Up to (excluding) 0.13.3-17.amzn2 | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | hiredis | * | Up to (including) 0.14.0-3 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | hiredis | * | Up to (including) 0.14.1-1 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | hiredis | * | Up to (excluding) 0.14.1-2 | |||||
运行在以下环境 | |||||||||
系统 | debian_9 | hiredis | * | Up to (excluding) 0.13.3-1+deb9u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | hiredis | * | Up to (excluding) 0.14.1-2 | |||||
运行在以下环境 | |||||||||
系统 | fedora_35 | hiredis-debuginfo | * | Up to (excluding) 0.13.3-17.fc35 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_aarch64_V10SP2 | hiredis | * | Up to (excluding) 1.0.2-1.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_x86_64_V10SP2 | hiredis | * | Up to (excluding) 1.0.2-1.ky10 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.2 | hiredis-devel | * | Up to (excluding) 0.13.3-bp153.2.3.1 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.3 | hiredis-devel | * | Up to (excluding) 0.13.3-bp153.2.3.1 | |||||
- 攻击路径 远程
- 攻击复杂度 容易
- 权限要求 普通权限
- 影响范围 全局影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 数据泄露
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-190 | 整数溢出或超界折返 |
CWE-680 | 整数溢出导致缓冲区溢出 |
Exp相关链接

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