CVE-2019-11881: Github.com/rancher/rancher Rancher Login Parameter Can Be Vulnerability

MODERATE
Advisory Identifier: GHSA-2p4g-jrmx-r34m
CVSS 4.7
Published
Advisory Summary

CVE-2019-11881 is a MODERATE (CVSS 4.7) rancher login parameter can be vulnerability (General Security Weakness) affecting Github.com/rancher/rancher libraries in the Go ecosystem. The issue involves rancher login parameter can be edited. Remediation is available in the latest vendor maintenance releases.

CVE-2019-11881 at a Glance

CVE Identifier CVE-2019-11881
GHSA Identifier GHSA-2p4g-jrmx-r34m
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification General Security Weakness
Affected Product Github.com/rancher/rancher
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.7

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:R/S:C/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2019-11881

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.

github.com/rancher/rancher fixed: Latest secure release
Upgrade github.com/rancher/rancher to Latest secure release
Verify Direct and Transitive Dependencies

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-11881, 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 the patched release), 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 General Security Weakness. 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

A vulnerability exists in Rancher 2.1.4 in the login component, where the `errorMsg` parameter can be tampered to display arbitrary content, filtering tags but not special characters or symbols. There's no other limitation of the message, allowing malicious users to lure legitimate users to visit phishing sites with scare tactics, e.g., displaying a "This version of Rancher is outdated, please visit https://malicious.rancher.site/upgrading" message. **PoC** 1. Access the following endpoint on any Rancher instance up to 2.1.4: `https://RANCHER:PORT/login?errorMsg=%68%74%74%70%73%3a%2f%2f%77%77%77%2e%6f%77%61%73%70%2e%6f%72%67%2f%69%6e%64%65%78%2e%70%68%70%2f%57%65%62%5f%50%61%72%61%6d%65%74%65%72%5f%54%61%6d%70%65%72%69%6e%67` It will display a [link](https://www.owasp.org/index.php/Web_Parameter_Tampering) to OWASP Wiki explaining Web Parameter Tampering.

CVE-2019-11881 Affected Github.com/rancher/rancher Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/rancher/rancher
Go
≤ 2.1.4

References

Frequently Asked Questions

What is CVE-2019-11881?
CVE-2019-11881 is a security vulnerability in Github.com/rancher/rancher involving Rancher Login Parameter Can Be Edited under General Security Weakness.
Which Github.com/rancher/rancher versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/rancher/rancher.
What version fixes CVE-2019-11881?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/rancher/rancher affected?
Yes, github.com/rancher/rancher is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2019-11881?
CVE-2019-11881 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N.
What CWE is associated with CVE-2019-11881?
CVE-2019-11881 is classified under General Security Weakness.
How can I check Go dependencies for CVE-2019-11881?
Run the dependency tree command: 'inspect dependencies for github.com/rancher/rancher'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2p4g-jrmx-r34m",
  "modified" : "2024-12-04T16:23:15Z",
  "published" : "2022-05-24T16:47:41Z",
  "aliases" : [ "CVE-2019-11881" ],
  "summary" : "Rancher Login Parameter Can Be Edited",
  "details" : "A vulnerability exists in Rancher 2.1.4 in the login component, where the `errorMsg` parameter can be tampered to display arbitrary content, filtering tags but not special characters or symbols. There's no other limitation of the message, allowing malicious users to lure legitimate users to visit phishing sites with scare tactics, e.g., displaying a \"This version of Rancher is outdated, please visit https://malicious.rancher.site/upgrading\" message.\n\n**PoC**\n1. Access the following endpoint on any Rancher instance up to 2.1.4: `https://RANCHER:PORT/login?errorMsg=%68%74%74%70%73%3a%2f%2f%77%77%77%2e%6f%77%61%73%70%2e%6f%72%67%2f%69%6e%64%65%78%2e%70%68%70%2f%57%65%62%5f%50%61%72%61%6d%65%74%65%72%5f%54%61%6d%70%65%72%69%6e%67`\n\nIt will display a [link](https://www.owasp.org/index.php/Web_Parameter_Tampering) to OWASP Wiki explaining Web Parameter Tampering.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rancher/rancher"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "2.1.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11881"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/rancher/issues/20216"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/rancher/commit/e59adbc7565251919d84d6e353421104be8da06e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/MauroEldritch/VanCleef"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rancher/rancher"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rancher/rancher/blob/v2.2.4/pkg/auth/providers/saml/saml_client.go#L282"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-24T21:39:43Z",
    "nvd_published_at" : "2019-06-10T20:29:00Z"
  }
}