CVE-2021-33564: Dragonfly contains remote code execution vulnerability
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.99629%
CWE
Published
6/2/2021
Updated
8/25/2023
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
dragonfly | rubygems | < 1.4.0 | 1.4.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper argument handling in ImageMagick command generation. The commit diff shows removal of direct shell command construction in generators/convert.rb and introduction of a secure Commands module. Pre-patch versions used vulnerable patterns like content.shell_update { |old, new| "convert #{user_input} #{new}" }
where user_input contained injection payloads. The CWE-88 mapping confirms argument injection via command delimiters in these functions.