CarrierWave up to 1.3.1/2.1.0 on Ruby manipulate 代码注入漏洞

admin 2023-12-01 16:25:08 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
中危 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.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#1...
https://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#2...
https://github.com/carrierwaveuploader/carrierwave/commit/387116f5c72efa42bc3...
https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-c...
https://rubygems.org/gems/carrierwave
受影响软件情况
# 类型 厂商 产品 版本 影响面
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
阿里云评分 6.8
  • 攻击路径 远程
  • 攻击复杂度 容易
  • 权限要求 无需权限
  • 影响范围 越权影响
  • EXP成熟度 POC 已公开
  • 补丁情况 官方补丁
  • 数据保密性 数据泄露
  • 数据完整性 无影响
  • 服务器危害 服务器失陷
  • 全网数量 N/A
CWE-ID 漏洞类型
CWE-74 输出中的特殊元素转义处理不恰当(注入)
CWE-94 对生成代码的控制不恰当(代码注入)
- 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