CVE-2021-33564
JSON

9.8critical

Dragonfly contains remote code execution vulnerability

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
72.1% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-j858-xp5v-f8xx

Description

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
dragonfly (RubyGems)before 1.4.0GitHub Advisory Database
dragonfly_project dragonflybefore 1.4.0NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

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. Esto puede conllevar a una ejecución de código. El problema ocurre porque las funcionalidades generate y process no usan apropiadamente la utilidad de conversión de ImageMagick

References

https://github.com/markevans/dragonfly/issues/513issue-tracking, third-party-advisory, web
https://github.com/markevans/dragonfly/commit/25399297bb457f7fcf8e3f91e85945b255b111b5patch, third-party-advisory, web
https://github.com/markevans/dragonfly/compare/v1.3.0...v1.4.0patch, third-party-advisory, web
https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/cves/2021/CVE-2021-33564.yamlexploit, third-party-advisory, web
https://github.com/mlr0p/CVE-2021-33564exploit, third-party-advisory, web
https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly/exploit, third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2021-33564advisory
https://github.com/advisories/GHSA-j858-xp5v-f8xxadvisory
https://github.com/rubysec/ruby-advisory-db/blob/master/gems/dragonfly/CVE-2021-33564.ymlweb
https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonflyweb

Sources

SourceRecordLicence
CVE ListCVE-2021-33564 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-j858-xp5v-f8xx changed 2024-02-16CC-BY-4.0
NVDCVE-2021-33564 changed 2026-06-17Public domain