redis hiredis 整数溢出或超界折返

admin 2023-11-30 19:31:00 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 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.
解决建议
下载相关补丁
参考链接
https://github.com/redis/hiredis/commit/76a7b10005c70babee357a7d0f2becf28ec7ed1e
https://github.com/redis/hiredis/security/advisories/GHSA-hfm9-39pp-55p2
https://lists.debian.org/debian-lts-announce/2021/10/msg00007.html
https://security.gentoo.org/glsa/202210-32
https://security.netapp.com/advisory/ntap-20211104-0003/
https://wiki.sei.cmu.edu/confluence/display/c/MEM07-C.+Ensure+that+the+argume...
受影响软件情况
# 类型 厂商 产品 版本 影响面
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
阿里云评分 6.2
  • 攻击路径 远程
  • 攻击复杂度 容易
  • 权限要求 普通权限
  • 影响范围 全局影响
  • EXP成熟度 未验证
  • 补丁情况 官方补丁
  • 数据保密性 数据泄露
  • 数据完整性 无影响
  • 服务器危害 无影响
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-190 整数溢出或超界折返
CWE-680 整数溢出导致缓冲区溢出
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
N/A Ali_nvd

N/A

N/ACVE编号 CVE-2024-9120利用情况 暂无补丁情况 N/A披露时间 2024-09-23漏洞描述Use after free in Dawn
评论:0   参与:  0