{"id":"CVE-2021-33564","aliases":["CVE-2021-33564","GHSA-j858-xp5v-f8xx"],"related":[],"kind":"vulnerability","state":"published","title":"Dragonfly contains remote code execution vulnerability","summary":"An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and write to arbitrary files via a crafted URL when the verify_url option is disabled. This may lead to code execution. The problem occurs because the generate and process features mishandle use of the ImageMagick convert utility.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and write to arbitrary files via a crafted URL when the verify_url option is disabled. This may lead to code execution. The problem occurs because the generate and process features mishandle use of the ImageMagick convert utility.","source":"cvelist"},{"lang":"en","text":"An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and write to arbitrary files via a crafted URL when the `verify_url` option is disabled. This may lead to code execution. The problem occurs because the generate and process features mishandle use of the ImageMagick convert utility.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de inyección de argumentos en Dragonfly gem versiones anteriores a 1.4.0 para Ruby, permite a atacantes remotos leer y escribir en archivos arbitrarios por medio de una URL diseñada cuando la opción verify_url está deshabilitada.&#xa0;Esto puede conllevar a una ejecución de código.&#xa0;El problema ocurre porque las funcionalidades generate y process no usan apropiadamente la utilidad de conversión de ImageMagick","source":"nvd"}],"published":"2021-05-29T13:19:16.000Z","modified":"2026-06-17T03:54:48.360Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-88","CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.4.0"}],"ecosystem":"RubyGems","package":"dragonfly","purl":"pkg:gem/dragonfly","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.4.0"}],"vendor":"dragonfly_project","product":"dragonfly","cpe":"cpe:2.3:a:dragonfly_project:dragonfly:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/markevans/dragonfly/issues/513","tags":["issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/markevans/dragonfly/commit/25399297bb457f7fcf8e3f91e85945b255b111b5","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/markevans/dragonfly/compare/v1.3.0...v1.4.0","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/cves/2021/CVE-2021-33564.yaml","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mlr0p/CVE-2021-33564","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly/","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33564","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-j858-xp5v-f8xx","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/dragonfly/CVE-2021-33564.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-33564","url":"https://www.cve.org/CVERecord?id=CVE-2021-33564","licence":"CVE Terms of Use","modified":"2024-08-03T23:50:43.164Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j858-xp5v-f8xx","url":"https://github.com/advisories/GHSA-j858-xp5v-f8xx","licence":"CC-BY-4.0","modified":"2024-02-16T08:14:53.365Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-33564","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33564","licence":"Public domain","modified":"2026-06-17T03:54:48.360Z"}],"updatedAt":"2026-11-25T22:58:01.591Z","epss":{"score":0.72143,"percentile":0.99439,"date":"2026-12-01T12:00:22.000Z"}}