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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| dragonfly (RubyGems) | before 1.4.0 | GitHub Advisory Database |
| dragonfly_project dragonfly | before 1.4.0 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV: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/513 | issue-tracking, third-party-advisory, web | |
| https://github.com/markevans/dragonfly/commit/25399297bb457f7fcf8e3f91e85945b255b111b5 | patch, third-party-advisory, web | |
| https://github.com/markevans/dragonfly/compare/v1.3.0...v1.4.0 | patch, third-party-advisory, web | |
| https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/cves/2021/CVE-2021-33564.yaml | exploit, third-party-advisory, web | |
| https://github.com/mlr0p/CVE-2021-33564 | exploit, 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-33564 | advisory | |
| https://github.com/advisories/GHSA-j858-xp5v-f8xx | advisory | |
| https://github.com/rubysec/ruby-advisory-db/blob/master/gems/dragonfly/CVE-2021-33564.yml | web | |
| https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-33564 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-j858-xp5v-f8xx changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2021-33564 changed 2026-06-17 | Public domain |