CVE-2019-13209: Github.com/rancher/rancher Rancher Vulnerable To Cross-site Request Vulnerability
HIGHCVE-2019-13209 is a HIGH (CVSS 8.7) rancher vulnerable to cross-site request vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Github.com/rancher/rancher libraries in the Go ecosystem. The issue involves rancher vulnerable to cross-site request forgery (csrf). Remediation is available by upgrading affected packages to version 2.0.16, 2.1.11, 2.2.5.
CVE-2019-13209 at a Glance
Security Impact
CVSS: 8.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:H).
How to Fix CVE-2019-13209
To remediate this vulnerability, upgrade all affected Github.com/rancher/rancher 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 github.com/rancher/rancher to 2.0.16
Upgrade github.com/rancher/rancher to 2.1.11
Upgrade github.com/rancher/rancher to 2.2.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/rancher/rancher
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-13209, inspect your project dependencies for Github.com/rancher/rancher:
inspect dependencies for github.com/rancher/rancher
Analyze the terminal output to locate any version of Github.com/rancher/rancher in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.16), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Github.com/rancher/rancher, 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-13209 Affected Github.com/rancher/rancher Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/rancher/rancher
|
Go |
≥ 2.0.0
< 2.0.16
|
2.0.16
|
|
github.com/rancher/rancher
|
Go |
≥ 2.1.0
< 2.1.11
|
2.1.11
|
|
github.com/rancher/rancher
|
Go |
≥ 2.2.0
< 2.2.5
|
2.2.5
|
References
Frequently Asked Questions
What is CVE-2019-13209?
Which Github.com/rancher/rancher versions are affected?
What version fixes CVE-2019-13209?
Is github.com/rancher/rancher affected?
What is the CVSS score of CVE-2019-13209?
What CWE is associated with CVE-2019-13209?
How can I check Go dependencies for CVE-2019-13209?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xhg2-rvm8-w2jh",
"modified" : "2023-09-18T20:27:11Z",
"published" : "2021-05-18T15:42:40Z",
"aliases" : [ "CVE-2019-13209" ],
"summary" : "Rancher Vulnerable to Cross-site Request Forgery (CSRF)",
"details" : "Rancher 2 through 2.2.4 is vulnerable to a Cross-Site Websocket Hijacking attack that allows an exploiter to gain access to clusters managed by Rancher. The attack requires a victim to be logged into a Rancher server, and then to access a third-party site hosted by the exploiter. Once that is accomplished, the exploiter is able to execute commands against the cluster's Kubernetes API with the permissions and identity of the victim.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/rancher/rancher"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.16"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/rancher/rancher"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/rancher/rancher"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-13209"
}, {
"type" : "WEB",
"url" : "https://github.com/rancher/rancher/commit/0ddffe484adccb9e37d9432e8e625d8ebbfb0088"
}, {
"type" : "WEB",
"url" : "https://forums.rancher.com/t/rancher-release-v2-2-5-addresses-rancher-cve-2019-13209/14801"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rancher/rancher"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352", "CWE-79" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-17T16:37:55Z",
"nvd_published_at" : "2019-09-04T14:15:00Z"
}
}