Patchfirst
CVE-2021-33564 Public exploit EPSS 72.1%

An argument injection vulnerability in the Dragonfly gem before 1.4.0 for Ruby allows remote attackers to read and…

Fix:upgrade dragonfly to 1.4.0 or later Details ↓

Summary

An argument injection flaw in the Dragonfly gem for Ruby, in versions before 1.4.0, arises because its generate and process features mishandle use of the ImageMagick convert utility. An attacker who can send a crafted URL to an application using Dragonfly can read and write arbitrary files and potentially execute code, provided the verify_url option is disabled.

Official description · CVE.org

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.

Breakdown
61.0 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 3 years after disclosure. Public exploit code (PoC-in-GitHub) was available 4 days before disclosure.

  1. Public exploit codePoC-in-GitHub4 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+3 yrs

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: dragonfly.

RubyGemsdragonflyGHSA-j858-xp5v-f8xx

Upgrade to 1.4.0 or later

Gemfilegem "dragonfly", ">= 1.4.0"

The first fix for CVE-2021-33564. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 1.4.01.4.0

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 2 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

6 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close