{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-21305","published":"2021-02-08T20:15:12.527000Z","last_modified":"2026-06-17T03:35:15.433000Z","status":"Modified","cvss":{"version":"3.1","score":8.8,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-74","CWE-94"],"cpes":[{"criteria":"cpe:2.3:a:carrierwave_project:carrierwave:*:*:*:*:*:ruby:*:*","part":"a","vendor":"carrierwave_project","product":"carrierwave","version_end_excluding":"1.3.2"},{"criteria":"cpe:2.3:a:carrierwave_project:carrierwave:*:*:*:*:*:ruby:*:*","part":"a","vendor":"carrierwave_project","product":"carrierwave","version_start_including":"2.0.1","version_end_excluding":"2.1.1"}],"cpes_truncated":false,"vendors":["carrierwave_project"],"products":["carrierwave_project/carrierwave"],"epss":{"score":0.13208,"percentile":0.97061,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-cf3w-g86h-35x4","ecosystem":"RubyGems","name":"carrierwave","purl":"pkg:gem/carrierwave","ranges":[{"introduced":"0","fixed":"1.3.2"}],"versions":["0.1","0.10.0","0.11.0","0.11.1","0.11.2","0.2.0","0.2.1","0.2.3","0.2.4","0.3.0","0.3.1","0.3.2","0.3.3","0.3.4","0.3.5","0.3.5.1","0.3.5.2","0.4.0","0.4.1","0.4.10","0.4.2","0.4.3","0.4.4","0.4.5","0.4.6","0.4.7","0.4.8","0.4.9","0.5.0","0.5.0.beta2","0.5.1","0.5.2","0.5.3","0.5.4","0.5.5","0.5.6","0.5.7","0.5.8","0.6.0","0.6.1","0.6.2","0.7.0","0.7.1","0.8.0","0.9.0","1.0.0","1.0.0.beta","1.0.0.rc","1.1.0","1.2.0","1.2.1","1.2.2","1.2.3","1.3.0","1.3.1"],"versions_truncated":false},{"advisory":"GHSA-cf3w-g86h-35x4","ecosystem":"RubyGems","name":"carrierwave","purl":"pkg:gem/carrierwave","ranges":[{"introduced":"2.0.0","fixed":"2.1.1"}],"versions":["2.0.0","2.0.1","2.0.2","2.1.0"],"versions_truncated":false}],"severity":"high","priority_score":54,"links":{"html_es":"/es/cve/CVE-2021-21305/","html_en":"/en/cve/CVE-2021-21305/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21305","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21305"},"untrusted":{"vendor_name":"Carrierwave Project","product_name":"Carrierwave","desc_en":"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.","affected":[{"untrusted_vendor":"carrierwaveuploader","untrusted_product":"carrierwave","versions":[]}],"references":[{"url":"https://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#132---2021-02-08","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md#211---2021-02-08","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/carrierwaveuploader/carrierwave/commit/387116f5c72efa42bc3938d946b4c8d2f22181b7","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-cf3w-g86h-35x4","tags":["Exploit","Third Party Advisory"]},{"url":"https://rubygems.org/gems/carrierwave","tags":["Product","Third Party Advisory"]}]}}