CVE-2013-1756 — dragonfly
Fix: markevans/dragonfly@a8775aaCVE-2013-1756 is a Code Injection vulnerability in dragonfly. A fix is available for dragonfly — see the affected versions and patch details below.
Dragonfly Code Injection vulnerability
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
dragonfly💎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
The Dragonfly gem 0.7 before 0.8.6 and 0.9.x before 0.9.13 for Ruby, when used with Ruby on Rails, allows remote attackers to execute arbitrary code via a crafted request.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 💎RubyGems | dragonfly | ≥ 0.7&&< 0.8.6 | 0.8.6bundle update dragonfly --conservative |
| 💎RubyGems | dragonfly | ≥ 0.9&&< 0.9.13 | 0.9.13bundle update dragonfly --conservative |
Affected Products
dragonfly gemmark_evansDetection & 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 0.8.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2013-1756 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
Frequently Asked Questions
Is CVE-2013-1756 in your dependencies?
Find it across RubyGems, including transitive dependencies.