Vulnerabilities in pkg:gem/dragonfly
PACKAGECVE-2013-1756 is a HIGH dragonfly code injection vulnerability vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Dragonfly libraries in the RubyGems ecosystem. The issue involves dragonfly code injection vulnerability. Remediation is available by upgrading affected packages to version 0.8.6, 0.9.13.
pkg:gem/dragonfly
Vulnerability advisories affecting package pkg:gem/dragonfly. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-p463-639r-q9g9 | CVE-2013-1756 | HIGH | Dragonfly Code Injection vulnerability |
| GHSA-j858-xp5v-f8xx | CVE-2021-33564 | CRITICAL | Dragonfly contains remote code execution vulnerability |
| GHSA-qrgf-jqqm-x7xv | CVE-2013-5671 | HIGH | Code injection in dragonfly gem |
| GHSA-fj34-jhjx-xmvv | CVE-2021-33473 | CRITICAL | Arbitrary file write in dragonfly |
CVE-2013-1756 at a Glance
How to Fix CVE-2013-1756
To remediate this vulnerability, upgrade all affected Dragonfly dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade dragonfly to 0.8.6
Upgrade dragonfly to 0.9.13
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for dragonfly
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-1756, inspect your project dependencies for Dragonfly:
inspect dependencies for dragonfly
Analyze the terminal output to locate any version of Dragonfly in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.6), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Dragonfly, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2013-1756 Affected Dragonfly Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dragonfly
|
RubyGems |
≥ 0.7
< 0.8.6
|
0.8.6
|
|
dragonfly
|
RubyGems |
≥ 0.9
< 0.9.13
|
0.9.13
|
References
Frequently Asked Questions
What is CVE-2013-1756?
Which Dragonfly versions are affected?
What version fixes CVE-2013-1756?
Is dragonfly affected?
What CWE is associated with CVE-2013-1756?
How can I check RubyGems dependencies for CVE-2013-1756?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p463-639r-q9g9",
"modified" : "2025-04-14T21:47:15Z",
"published" : "2017-10-24T18:33:37Z",
"aliases" : [ "CVE-2013-1756" ],
"summary" : "Dragonfly Code Injection vulnerability",
"details" : "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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "dragonfly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.7"
}, {
"fixed" : "0.8.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "dragonfly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.9"
}, {
"fixed" : "0.9.13"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-1756"
}, {
"type" : "WEB",
"url" : "https://github.com/markevans/dragonfly/commit/a8775aacf9e5c81cf11bec34b7afa7f27ddfe277"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/82476"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/markevans/dragonfly"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/forum/?fromgroups=#!topic/dragonfly-users/3c3WIU3VQTo"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200229103538/http://www.securityfocus.com/bid/58225"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:47:55Z",
"nvd_published_at" : "2014-06-09T19:55:06Z"
}
}