CVE-2013-5671 — dragonfly
Fix: github/advisory-database#486CVE-2013-5671 is a security vulnerability in dragonfly. 4 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for dragonfly — see the affected versions and patch details below.
Code injection in dragonfly gem
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
dragonfly💎fog-dragonflyReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects RubyGems packages — download data is not available via public APIs for these ecosystems.
Description
lib/dragonfly/imagemagickutils.rb in the fog-dragonfly gem 0.8.2 for Ruby allows remote attackers to execute arbitrary commands via unspecified vectors.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 💎RubyGems | dragonfly | all versions | 1.0.0bundle update dragonfly --conservative |
| 💎RubyGems | fog-dragonfly | all versions | No fix |
Affected Products
fog-dragonflymark_evansResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for dragonfly, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update dragonfly to 1.0.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2013-5671 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2013-5671 in your dependencies?
Find it across RubyGems, including transitive dependencies.