# CVE-2021-33564: Dragonfly contains remote code execution vulnerability

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 72.1%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2021-05-29T13:19:16.000Z
- Modified: 2026-06-17T03:54:48.360Z
- Also known as: GHSA-j858-xp5v-f8xx
- Weaknesses: CWE-88, CWE-94
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- dragonfly (RubyGems): before 1.4.0
- dragonfly_project dragonfly: before 1.4.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <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://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://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

- CVE List: [CVE-2021-33564](https://www.cve.org/CVERecord?id=CVE-2021-33564), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-j858-xp5v-f8xx](https://github.com/advisories/GHSA-j858-xp5v-f8xx), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-33564](https://nvd.nist.gov/vuln/detail/CVE-2021-33564), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-33564 · Whole record: https://cve.day/CVE-2021-33564.json · Rebuilt by cve.day 2026-11-25T22:58:01.591Z
