CVE-2021-33564: Argument Injection in Dragonfly gem (Ruby)
- Vendor
- DragonFly BSD Project
CVE-2021-33564 is an argument injection vulnerability in the Dragonfly gem for Ruby, affecting versions before 1.4.0. When the verify_url option is disabled, remote attackers can exploit this flaw by crafting a malicious URL, which is mishandled by the generate and process features that invoke the ImageMagick convert utility. This allows attackers to inject arbitrary arguments to the convert command, enabling unauthorized file read and write operations, and potentially leading to remote code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to read and write arbitrary files on the server, and may lead to remote code execution, depending on the arguments injected and the privileges of the process running the Dragonfly gem.
Mitigation
If you can’t patch tonight, do this now.
As an immediate mitigation, enable the verify_url option in the Dragonfly configuration to prevent exploitation. Additionally, restrict access to the affected endpoints and consider running the application with the least privileges necessary to limit the impact of a potential compromise.
Remediation
Patch, then assume compromise.
Upgrade the Dragonfly gem to version 1.4.0 or later, which addresses the argument injection vulnerability. Ensure that the verify_url option is enabled to prevent exploitation via crafted URLs.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-33564 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-33564?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2021-33564.
- Is there a patch for CVE-2021-33564?
- Upgrade the Dragonfly gem to version 1.4.0 or later, which addresses the argument injection vulnerability. Ensure that the verify_url option is enabled to prevent exploitation via crafted URLs.
- What products are affected by CVE-2021-33564?
- DragonFly BSD Project Dragonfly.
- How severe is CVE-2021-33564?
- CVE-2021-33564 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 72.1% (99th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.