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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
mlr0p/CVE-2021-33564 ★ 16 · May 25, 2021
Argument Injection in Dragonfly Ruby Gem
-
dorkerdevil/CVE-2021-33564 ★ 0 · May 27, 2021
Argument Injection in Dragonfly Ruby Gem exploit (backup)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Ruby Dragonfly <1.4.0 - Remote Code Execution http/cves/2021/CVE-2021-33564.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | dragonfly | < 1.4.0 | 1.4.0 | GHSA-j858-xp5v-f8xx |
References
- https://github.com/markevans/dragonfly/issues/513
- https://github.com/markevans/dragonfly/commit/25399297bb457f7fcf8e3f91e85945b255b111b5
- https://github.com/markevans/dragonfly/compare/v1.3.0...v1.4.0
- https://raw.githubusercontent.com/projectdiscovery/nuclei-templates/master/cves/2021/CVE-2021-33564.yaml
- https://github.com/mlr0p/CVE-2021-33564
- https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly/