CVE-2015-1820: Rest client Rest-client Gem Vulnerable To Session Vulnerability
CRITICALCVE-2015-1820 is a CRITICAL (CVSS 9.8) rest-client gem vulnerable to session vulnerability (CWE-384: Session Fixation) affecting Rest client libraries in the RubyGems ecosystem. The issue involves rest-client gem vulnerable to session fixation. Remediation is available by upgrading affected packages to version 1.8.0.
CVE-2015-1820 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-2015-1820
To remediate this vulnerability, upgrade all affected Rest client 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 rest-client to 1.8.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rest-client
How to Check if You Are Affected
To determine whether your application is affected by CVE-2015-1820, inspect your project dependencies for Rest client:
inspect dependencies for rest-client
Analyze the terminal output to locate any version of Rest client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.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-384: Session Fixation, where authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions. In Rest client, 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-1820 Affected Rest client Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rest-client
|
RubyGems |
≥ 1.6.1.a
< 1.8.0
|
1.8.0
|
References
Frequently Asked Questions
What is CVE-2015-1820?
Which Rest client versions are affected?
What version fixes CVE-2015-1820?
Is rest-client affected?
What is the CVSS score of CVE-2015-1820?
What CWE is associated with CVE-2015-1820?
How can I check RubyGems dependencies for CVE-2015-1820?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3fhf-6939-qg8p",
"modified" : "2023-09-05T21:42:43Z",
"published" : "2018-08-13T20:47:22Z",
"aliases" : [ "CVE-2015-1820" ],
"summary" : "rest-client Gem Vulnerable to Session Fixation",
"details" : "REST client for Ruby (aka rest-client) versions 1.6.1.a until 1.8.0 allow remote attackers to conduct session fixation attacks or obtain sensitive cookie information by leveraging passage of cookies set in a response to a redirect.",
"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" : "rest-client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.6.1.a"
}, {
"fixed" : "1.8.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-1820"
}, {
"type" : "WEB",
"url" : "https://github.com/rest-client/rest-client/issues/369"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1205291"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rest-client/rest-client"
}, {
"type" : "WEB",
"url" : "https://rubygems.org/gems/rest-client/versions/1.6.1.a"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200228080106/http://www.securityfocus.com/bid/73295"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2015/03/24/3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-384" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T20:54:58Z",
"nvd_published_at" : null
}
}