CVE-2017-0905: Recurly Remote Code Execution Vulnerability
CRITICALCVE-2017-0905 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Recurly libraries in the RubyGems ecosystem. The issue involves recurly gem server-side request forgery in resource#find method. Remediation is available by upgrading affected packages to version 2.3.10, 2.2.5, 2.1.11, 2.0.13, 2.9.2, 2.8.2, 2.7.8, 2.6.3, 2.5.4, 2.4.11, 2.11.3, 2.10.4.
CVE-2017-0905 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2017-0905
To remediate this vulnerability, upgrade all affected Recurly 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 recurly to 2.3.10
Upgrade recurly to 2.2.5
Upgrade recurly to 2.1.11
Upgrade recurly to 2.0.13
Upgrade recurly to 2.9.2
Upgrade recurly to 2.8.2
Upgrade recurly to 2.7.8
Upgrade recurly to 2.6.3
Upgrade recurly to 2.5.4
Upgrade recurly to 2.4.11
Upgrade recurly to 2.11.3
Upgrade recurly to 2.10.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for recurly
How to Check if You Are Affected
To determine whether your application is affected by CVE-2017-0905, inspect your project dependencies for Recurly:
inspect dependencies for recurly
Analyze the terminal output to locate any version of Recurly in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.10), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Recurly, 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-2017-0905 Affected Recurly Versions
12 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
recurly
|
RubyGems |
≥ 2.3.0
< 2.3.10
|
2.3.10
|
|
recurly
|
RubyGems |
≥ 2.2.0
< 2.2.5
|
2.2.5
|
|
recurly
|
RubyGems |
≥ 2.1.0
< 2.1.11
|
2.1.11
|
|
recurly
|
RubyGems |
≥ 2.0.0
< 2.0.13
|
2.0.13
|
|
recurly
|
RubyGems |
≥ 2.9.0
< 2.9.2
|
2.9.2
|
|
recurly
|
RubyGems |
≥ 2.8.0
< 2.8.2
|
2.8.2
|
|
recurly
|
RubyGems |
≥ 2.7.0
< 2.7.8
|
2.7.8
|
|
recurly
|
RubyGems |
≥ 2.6.0
< 2.6.3
|
2.6.3
|
|
recurly
|
RubyGems |
≥ 2.5.0
< 2.5.4
|
2.5.4
|
|
recurly
|
RubyGems |
≥ 2.4.0
< 2.4.11
|
2.4.11
|
|
recurly
|
RubyGems |
≥ 2.11.0
< 2.11.3
|
2.11.3
|
|
recurly
|
RubyGems |
≥ 2.10.0
< 2.10.4
|
2.10.4
|
References
Frequently Asked Questions
What is CVE-2017-0905?
Which Recurly versions are affected?
What version fixes CVE-2017-0905?
Is recurly affected?
What is the CVSS score of CVE-2017-0905?
What CWE is associated with CVE-2017-0905?
How can I check RubyGems dependencies for CVE-2017-0905?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x27v-x225-gq8g",
"modified" : "2023-08-29T15:38:45Z",
"published" : "2017-12-06T16:43:00Z",
"aliases" : [ "CVE-2017-0905" ],
"summary" : "Recurly gem Server-Side Request Forgery in Resource#find method",
"details" : "The Recurly Client Ruby Library before 2.0.13, 2.1.11, 2.2.5, 2.3.10, 2.4.11, 2.5.4, 2.6.3, 2.7.8, 2.8.2, 2.9.2, 2.10.4, 2.11.3 is vulnerable to a Server-Side Request Forgery vulnerability in the `Resource#find` method that could result in compromise of API keys or other critical resources.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.9.0"
}, {
"fixed" : "2.9.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"fixed" : "2.8.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.0"
}, {
"fixed" : "2.7.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.6.0"
}, {
"fixed" : "2.6.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.5.0"
}, {
"fixed" : "2.5.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.4.0"
}, {
"fixed" : "2.4.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.11.0"
}, {
"fixed" : "2.11.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "RubyGems",
"name" : "recurly"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.10.0"
}, {
"fixed" : "2.10.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-0905"
}, {
"type" : "WEB",
"url" : "https://github.com/recurly/recurly-client-ruby/commit/1bb0284d6e668b8b3d31167790ed6db1f6ccc4be"
}, {
"type" : "WEB",
"url" : "https://hackerone.com/reports/288635"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/recurly/recurly-client-ruby"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/recurly/CVE-2017-0905.yml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T22:01:40Z",
"nvd_published_at" : null
}
}