中危 CarrierWave up to 1.3.1/2.1.0 on Ruby manipulate 代码注入漏洞
CVE编号
CVE-2021-21305利用情况
POC 已公开补丁情况
官方补丁披露时间
2021-02-09漏洞描述
CarrierWave is an open-source RubyGem which provides a simple and flexible way to upload files from Ruby applications. In CarrierWave before versions 1.3.2 and 2.1.1, there is a code injection vulnerability. The "#manipulate!" method inappropriately evals the content of mutation option(:read/:write), allowing attackers to craft a string that can be executed as a Ruby code. If an application developer supplies untrusted inputs to the option, it will lead to remote code execution(RCE). This is fixed in versions 1.3.2 and 2.1.1.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | carrierwave_project | carrierwave | * | Up to (excluding) 1.3.2 | |||||
运行在以下环境 | |||||||||
应用 | carrierwave_project | carrierwave | * | From (including) 2.0.1 | Up to (excluding) 2.1.1 | ||||
运行在以下环境 | |||||||||
系统 | debian_10 | ruby-carrierwave | * | Up to (including) 1.3.1-2 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | ruby-carrierwave | * | Up to (including) 1.3.1-2 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | ruby-carrierwave | * | Up to (excluding) 1.3.2-1 | |||||
运行在以下环境 | |||||||||
系统 | debian_9 | ruby-carrierwave | * | Up to (including) 0.10.0+gh-4 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | ruby-carrierwave | * | Up to (excluding) 1.3.2-1 | |||||
- 攻击路径 远程
- 攻击复杂度 容易
- 权限要求 无需权限
- 影响范围 越权影响
- EXP成熟度 POC 已公开
- 补丁情况 官方补丁
- 数据保密性 数据泄露
- 数据完整性 无影响
- 服务器危害 服务器失陷
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-74 | 输出中的特殊元素转义处理不恰当(注入) |
CWE-94 | 对生成代码的控制不恰当(代码注入) |
Exp相关链接
- avd.aliyun.com
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论