RubySec

Providing security resources for the Ruby community

CVE-2021-33564 (dragonfly): Remote code execution in Dragonfly

ADVISORIES

GEM

dragonfly

SEVERITY

CVSS v3.x: 9.8 (Critical)

PATCHED VERSIONS

  • >= 1.4.0

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.