← Vulnerability feed

Vulnerability record · CVE-2021-33564 · published 29 May 2021

CVE-2021-33564: Dragonfly Ruby gem argument injection via crafted URL

Dragonfly Project · Dragonfly

The Dragonfly gem before 1.4.0 for Ruby mishandles the ImageMagick convert utility in its generate and process features, allowing argument injection through a crafted URL when the verify_url option is disabled. This lets a remote attacker read and write arbitrary files, which may escalate to code execution. The flaw is rated critical and affects any application exposing Dragonfly processing to untrusted input.

9.8 CVSS 3.1 Critical EPSS 72% · top 0.6% CWE-88 · Argument injection
9.8CVSS 3.1 base score, v2 6.8
72%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
12References, 6 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityCVSS 9.8 with network reachability, no authentication or interaction, and a very high EPSS score plus public exploit tooling make this a top remediation priority.

What it is

The Dragonfly gem before 1.4.0 for Ruby mishandles the ImageMagick convert utility in its generate and process features, allowing argument injection through a crafted URL when the verify_url option is disabled. This lets a remote attacker read and write arbitrary files, which may escalate to code execution. The flaw is rated critical and affects any application exposing Dragonfly processing to untrusted input.

Impact

An attacker can read and write arbitrary files on the host and potentially achieve code execution. This undermines confidentiality, integrity and availability of the affected application and its data.

Attack surface

Reachable over the network through a crafted URL passed to Dragonfly's generate or process features, with no authentication or user interaction required per the CVSS vector. The verify_url option must be disabled for the injection to succeed.

Exploitation

Not listed in CISA KEV, but EPSS is very high at roughly 0.72 (99th percentile) and public exploit references, including a Nuclei template and a proof-of-concept repository, are available. Active exploitation is plausible given the exposed attack surface and available tooling.

What to do

  • Upgrade the Dragonfly gem to version 1.4.0 or later, which contains the patch.
  • If immediate upgrade is not possible, enable the verify_url option to block crafted URLs.
  • Avoid passing untrusted user input into Dragonfly generate or process calls.
  • Restrict outbound and filesystem access for the Ruby process running Dragonfly to limit impact.
  • Monitor for unexpected ImageMagick convert invocations spawned by the application.

Detection

  • Search application and web logs for crafted URLs containing ImageMagick convert arguments or unusual file paths.
  • Monitor process creation for convert commands spawned by the Ruby application with unexpected arguments.
  • Use the public Nuclei template for CVE-2021-33564 to scan exposed instances.
  • Alert on unexpected file reads or writes in directories accessible to the Dragonfly process.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-33564 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.1CVE-2021-33473Dragonfly project dragonfly argument injection vulnerabilityAn argument injection vulnerability in Dragonfly Ruby Gem v1.3.0 allows attackers to read and write arbitrary files when the verify_url option is dis…EPSS 1.1%9.2CVE-2026-86060MikroTik RouterOS SSH login argument injection privilege escalationRouterOS mishandles arguments in the SSH login path when a username begins with a prohibited character, allowing the trusted policy mask to be altere…KEVEPSS 1.8%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2016-10033PHPMailer isMail mailSend argument injection enables remote code executionPHPMailer before 5.2.18 fails to properly sanitize the Sender property in the mailSend function of the isMail transport, allowing a crafted backslash…KEVEPSS 100%analysed7.2CVE-2024-41710Mitel SIP Phones argument injection in boot processMitel 6800, 6900 and 6900w Series SIP Phones (including the 6970 Conference Unit) through R6.4.0.HF1 fail to sanitize parameters during the boot proc…KEVEPSS 42%analysed8.8CVE-2022-36804Atlassian Bitbucket Server and Data Center API command injectionMultiple API endpoints in Atlassian Bitbucket Server and Data Center fail to properly neutralize command and argument input, allowing OS command inje…KEVEPSS 99%analysed

Source: NIST National Vulnerability Database (record CVE-2021-33564), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.