CVE-2020-29565: Horizon OpenStack Horizon Open Redirect Vulnerability

MODERATE
Advisory Identifier: GHSA-f8fh-xp28-q59m
CVSS 6.1
CWE-601
Published
Advisory Summary

CVE-2020-29565 is a MODERATE (CVSS 6.1) openstack horizon open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Horizon libraries in the PyPI ecosystem. The issue involves openstack horizon open redirect in workflow forms. Remediation is available by upgrading affected packages to version 15.3.2, 16.2.1, 18.3.3, 18.6.0.

CVE-2020-29565 at a Glance

CVE Identifier CVE-2020-29565
GHSA Identifier GHSA-f8fh-xp28-q59m
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Horizon
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.1

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:C/C:L/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 Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2020-29565

To remediate this vulnerability, upgrade all affected Horizon dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

horizon fixed: 15.3.2
pip install horizon>=15.3.2
horizon fixed: 16.2.1
pip install horizon>=16.2.1
horizon fixed: 18.3.3
pip install horizon>=18.3.3
horizon fixed: 18.6.0
pip install horizon>=18.6.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show horizon

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2020-29565, inspect your installed packages using pip:

pip show horizon

Analyze the terminal output to locate any version of Horizon in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 15.3.2), your application is affected.

Note: The pip show horizon command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Horizon, 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

An issue was discovered in OpenStack Horizon before 15.3.2, 16.x before 16.2.1, 17.x and 18.x before 18.3.3, 18.4.x, and 18.5.x. There is a lack of validation of the "next" parameter, which would allow someone to supply a malicious URL in Horizon that can cause an automatic redirect to the provided malicious URL.

CVE-2020-29565 Affected Horizon Versions

4 component(s)
Fixed Versions:
15.3.216.2.118.3.318.6.0
Product / Package Ecosystem Affected Versions Fixed Version
horizon
PyPI
< 15.3.2
15.3.2
horizon
PyPI
≥ 16.0.0
< 16.2.1
16.2.1
horizon
PyPI
≥ 17.0.0
< 18.3.3
18.3.3
horizon
PyPI
≥ 18.4.0
< 18.6.0
18.6.0

References

Frequently Asked Questions

What is CVE-2020-29565?
CVE-2020-29565 is a security vulnerability in Horizon involving OpenStack Horizon Open redirect in workflow forms under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Horizon versions are affected?
Affected versions include releases prior to 15.3.2, 16.2.1, 18.3.3, 18.6.0 across affected packages: horizon.
What version fixes CVE-2020-29565?
Upgrading to 15.3.2, 16.2.1, 18.3.3, 18.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is horizon affected?
Yes, horizon is affected in releases prior to 15.3.2, 16.2.1, 18.3.3, 18.6.0. Upgrade your dependency to 15.3.2, 16.2.1, 18.3.3, 18.6.0 or later.
What is the CVSS score of CVE-2020-29565?
CVE-2020-29565 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2020-29565?
CVE-2020-29565 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check PyPI dependencies for CVE-2020-29565?
Run the dependency tree command: 'pip show horizon'. 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-f8fh-xp28-q59m",
  "modified" : "2024-09-20T21:51:56Z",
  "published" : "2022-05-24T17:35:25Z",
  "aliases" : [ "CVE-2020-29565" ],
  "summary" : "OpenStack Horizon Open redirect in workflow forms",
  "details" : "An issue was discovered in OpenStack Horizon before 15.3.2, 16.x before 16.2.1, 17.x and 18.x before 18.3.3, 18.4.x, and 18.5.x. There is a lack of validation of the \"next\" parameter, which would allow someone to supply a malicious URL in Horizon that can cause an automatic redirect to the provided malicious URL.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "horizon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "15.3.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "horizon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.0.0"
      }, {
        "fixed" : "16.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "horizon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "17.0.0"
      }, {
        "fixed" : "18.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "horizon"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "18.4.0"
      }, {
        "fixed" : "18.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-29565"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/horizon/commit/252467100f75587e18df9c43ed5802ee8f0017fa"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/horizon/commit/6c208edf323ced07b15ec4bc3879bddb91d398bc"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/horizon/commit/9e0e333ab5277b6c396f602862ff90398cb0242b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/horizon/commit/baa370f84332ad41502daea29a551705696f4421"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/horizon/+bug/1865026"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/horizon"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/horizon/PYSEC-2020-45.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/horizon/+/758841"
  }, {
    "type" : "WEB",
    "url" : "https://review.opendev.org/c/openstack/horizon/+/758843"
  }, {
    "type" : "WEB",
    "url" : "https://security.openstack.org/ossa/OSSA-2020-008.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.debian.org/security/2020/dsa-4820"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2020/12/08/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-601" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-29T11:01:41Z",
    "nvd_published_at" : "2020-12-04T08:15:00Z"
  }
}