Vulnerabilities in pkg:gem/omniauth
PACKAGECVE-2015-9284 is a HIGH (CVSS 8.8) omniauth ruby gem cross-site request vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Omniauth libraries in the RubyGems ecosystem. The issue involves omniauth ruby gem cross-site request forgery in request phase. Remediation is available by upgrading affected packages to version 2.0.0.
pkg:gem/omniauth
Vulnerability advisories affecting package pkg:gem/omniauth. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-ww4x-rwq6-qpgf | CVE-2015-9284 | HIGH | OmniAuth Ruby gem Cross-site Request Forgery in request phase |
| GHSA-pm55-qfxr-h247 | CVE-2020-36599 | CRITICAL | OmniAuth's `lib/omniauth/failure_endpoint.rb` does not escape `message_key` value |
| GHSA-9pr6-grf4-x2fr | CVE-2017-18076 | HIGH | Omniauth allows POST parameters to be stored in session |
CVE-2015-9284 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2015-9284
To remediate this vulnerability, upgrade all affected Omniauth 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 omniauth to 2.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for omniauth
How to Check if You Are Affected
To determine whether your application is affected by CVE-2015-9284, inspect your project dependencies for Omniauth:
inspect dependencies for omniauth
Analyze the terminal output to locate any version of Omniauth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Omniauth, 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-2015-9284 Affected Omniauth Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
omniauth
|
RubyGems |
< 2.0.0
|
2.0.0
|
References
Frequently Asked Questions
What is CVE-2015-9284?
Which Omniauth versions are affected?
What version fixes CVE-2015-9284?
Is omniauth affected?
What is the CVSS score of CVE-2015-9284?
What CWE is associated with CVE-2015-9284?
How can I check RubyGems dependencies for CVE-2015-9284?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ww4x-rwq6-qpgf",
"modified" : "2024-02-15T15:03:15Z",
"published" : "2019-05-29T19:11:31Z",
"aliases" : [ "CVE-2015-9284" ],
"summary" : "OmniAuth Ruby gem Cross-site Request Forgery in request phase",
"details" : "The request phase of the OmniAuth Ruby gem (1.9.2 and earlier) is vulnerable to Cross-Site Request Forgery when used as part of the Ruby on Rails framework, allowing accounts to be connected without user intent, user interaction, or feedback to the user. This permits a secondary account to be able to sign into the web application as the primary account.\n\nAs of v2 OmniAuth no longer has the vulnerable configuration by default, but it is still possible to configure OmniAuth in such a way that the web application becomes vulnerable to Cross-Site Request Forgery. There is a recommended remediation described [here](https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "omniauth"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.9.2"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-9284"
}, {
"type" : "WEB",
"url" : "https://github.com/omniauth/omniauth/issues/1031"
}, {
"type" : "WEB",
"url" : "https://github.com/omniauth/omniauth-rails/pull/1"
}, {
"type" : "WEB",
"url" : "https://github.com/omniauth/omniauth/pull/809"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/commit/aef9f623c0be838234d53baf18977564804da397"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/omniauth/omniauth"
}, {
"type" : "WEB",
"url" : "https://github.com/omniauth/omniauth/releases/tag/v1.9.2"
}, {
"type" : "WEB",
"url" : "https://github.com/omniauth/omniauth/releases/tag/v2.0.0"
}, {
"type" : "WEB",
"url" : "https://github.com/omniauth/omniauth/wiki/Resolving-CVE-2015-9284"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/omniauth/CVE-2015-9284.yml"
}, {
"type" : "WEB",
"url" : "https://www.openwall.com/lists/oss-security/2015/05/26/11"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2019-05-29T19:10:54Z",
"nvd_published_at" : "2019-04-26T15:29:00Z"
}
}