CVE-2019-11027: Ruby openid Ruby-openid SSRF Vulnerability
CRITICALCVE-2019-11027 is a CRITICAL (CVSS 9.8) ruby-openid ssrf vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Ruby openid libraries in the RubyGems ecosystem. The issue involves ruby-openid ssrf via claimed_id request. Remediation is available by upgrading affected packages to version 2.9.0.
CVE-2019-11027 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-2019-11027
To remediate this vulnerability, upgrade all affected Ruby openid 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 ruby-openid to 2.9.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ruby-openid
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-11027, inspect your project dependencies for Ruby openid:
inspect dependencies for ruby-openid
Analyze the terminal output to locate any version of Ruby openid in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.9.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-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 Ruby openid, 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-2019-11027 Affected Ruby openid Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ruby-openid
|
RubyGems |
< 2.9.0
|
2.9.0
|
References
Frequently Asked Questions
What is CVE-2019-11027?
Which Ruby openid versions are affected?
What version fixes CVE-2019-11027?
Is ruby-openid affected?
What is the CVSS score of CVE-2019-11027?
What CWE is associated with CVE-2019-11027?
How can I check RubyGems dependencies for CVE-2019-11027?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fqfj-cmh6-hj49",
"modified" : "2023-07-05T19:06:46Z",
"published" : "2019-06-13T16:15:56Z",
"aliases" : [ "CVE-2019-11027" ],
"summary" : "ruby-openid SSRF via claimed_id request",
"details" : "Ruby OpenID (aka ruby-openid) through 2.8.0 is vulnerable to SSRF. Ruby-openid performs discovery first, and then verification. This allows an attacker to change the URL used for discovery and trick the server into connecting to the URL, which might be a private server not publicly accessible. Severity can range from medium to critical, depending on how a web application developer chose to employ the ruby-openid library. Developers who based their OpenID integration heavily on the \"example app\" provided by the project are at highest risk.",
"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" : "ruby-openid"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.9.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11027"
}, {
"type" : "WEB",
"url" : "https://github.com/openid/ruby-openid/issues/122"
}, {
"type" : "WEB",
"url" : "https://github.com/openid/ruby-openid/commit/d181a8a2099c64365a1d24b29f6b6b646673a131"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/openid/ruby-openid"
}, {
"type" : "WEB",
"url" : "https://github.com/openid/ruby-openid/releases/tag/v2.9.0"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/ruby-openid/CVE-2019-11027.yml"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2019/10/msg00014.html"
}, {
"type" : "WEB",
"url" : "https://marc.info/?l=openid-security&m=155154717027534&w=2"
}, {
"type" : "WEB",
"url" : "https://security.gentoo.org/glsa/202003-09"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-13T15:45:16Z",
"nvd_published_at" : null
}
}