CVE-2021-33564

CRITICAL EXPLOITED IN THE WILD NUCLEI

Dragonfly <1.4.0 - Command Injection

Title source: llm
STIX 2.1

Exploitation Summary

CVE-2021-33564 has been observed exploited in the wild (reported by VulnCheck KEV, InTheWild.io). EIP tracks 2 public exploits from researchers including mlr0p, dorkerdevil. A Nuclei detection template is also available.

AI-analyzed exploit summary This repository contains a functional exploit PoC for CVE-2021-33564, an argument injection vulnerability in the Dragonfly Ruby Gem. The exploit allows arbitrary file read and write operations via crafted ImageMagick commands.

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.

Exploits (2)

nomisec WORKING POC 16 stars
by mlr0p · remote
https://github.com/mlr0p/CVE-2021-33564

This repository contains a functional exploit PoC for CVE-2021-33564, an argument injection vulnerability in the Dragonfly Ruby Gem. The exploit allows arbitrary file read and write operations via crafted ImageMagick commands.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Dragonfly Ruby Gem (versions affected by CVE-2021-33564)
No auth needed
Prerequisites: Target application using vulnerable Dragonfly Ruby Gem · Network access to the target application
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC
by dorkerdevil · remote
https://github.com/dorkerdevil/CVE-2021-33564

The repository contains a functional Python script that exploits CVE-2021-33564, an argument injection vulnerability in the Dragonfly Ruby Gem, allowing arbitrary file read and write operations via crafted ImageMagick commands.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: Dragonfly Ruby Gem
No auth needed
Prerequisites: Target must be running a vulnerable version of Dragonfly Ruby Gem · ImageMagick must be installed on the target system
devstral-2 · analyzed Feb 18, 2026 Full analysis →

Nuclei Templates (1)

Ruby Dragonfly <1.4.0 - Remote Code Execution
CRITICALby 0xsapra

References (6)

Core 6
Core References
Issue Tracking, Third Party Advisory x_refsource_misc
https://github.com/markevans/dragonfly/issues/513
Patch, Third Party Advisory x_refsource_misc
https://github.com/markevans/dragonfly/compare/v1.3.0...v1.4.0
Exploit, Third Party Advisory x_refsource_misc
https://github.com/mlr0p/CVE-2021-33564
Exploit, Third Party Advisory x_refsource_misc
https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly/

Scores

CVSS v3 9.8
EPSS 0.7225
EPSS Percentile 99.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

VulnCheck KEV 2023-11-29
InTheWild.io 2021-04-12
CWE
CWE-88
Status published
Products (2)
dragonfly_project/dragonfly < 1.4.0
rubygems/dragonfly 0 - 1.4.0RubyGems
Published May 29, 2021
Tracked Since Feb 18, 2026