CVE-2021-4180: Tripleo heat templates Exposure Of Sensitive Information To Vulnerability

MODERATE
Advisory Identifier: GHSA-hm3x-jwwf-jpr9
CVSS 4.3
CWE-668 CWE-200
Published
Advisory Summary

CVE-2021-4180 is a MODERATE (CVSS 4.3) exposure of sensitive information to vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Tripleo heat templates libraries in the PyPI ecosystem. The issue involves exposure of sensitive information to an unauthorized actor in openstack tripleo-heat-templates. Remediation is available by upgrading affected packages to version 11.6.1.

CVE-2021-4180 at a Glance

CVE Identifier CVE-2021-4180
GHSA Identifier GHSA-hm3x-jwwf-jpr9
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-668: Exposure of Resource to Wrong Sphere
Affected Product Tripleo heat templates
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.3

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

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

How to Fix CVE-2021-4180

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

tripleo-heat-templates fixed: 11.6.1
pip install tripleo-heat-templates>=11.6.1
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 tripleo-heat-templates

How to Check if You Are Affected

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

pip show tripleo-heat-templates

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

Note: The pip show tripleo-heat-templates command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Tripleo heat templates, 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 information exposure flaw in openstack-tripleo-heat-templates allows an external user to discover the internal IP or hostname. An attacker could exploit this by checking the `www_authenticate_uri parameter` (which is visible to all end users) in configuration files. This would give sensitive information which may aid in additional system exploitation. A patch is available on the `master` branch and anticipated to be part of version 11.6.1.

CVE-2021-4180 Affected Tripleo heat templates Versions

1 component(s)
Fixed Versions:
11.6.1
Product / Package Ecosystem Affected Versions Fixed Version
tripleo-heat-templates
PyPI
< 11.6.1
11.6.1

References

Frequently Asked Questions

What is CVE-2021-4180?
CVE-2021-4180 is a security vulnerability in Tripleo heat templates involving Exposure of Sensitive Information to an Unauthorized Actor in OpenStack tripleo-heat-templates under CWE-668: Exposure of Resource to Wrong Sphere.
Which Tripleo heat templates versions are affected?
Affected versions include releases prior to 11.6.1 across affected packages: tripleo-heat-templates.
What version fixes CVE-2021-4180?
Upgrading to 11.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tripleo-heat-templates affected?
Yes, tripleo-heat-templates is affected in releases prior to 11.6.1. Upgrade your dependency to 11.6.1 or later.
What is the CVSS score of CVE-2021-4180?
CVE-2021-4180 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2021-4180?
CVE-2021-4180 is classified under CWE-668: Exposure of Resource to Wrong Sphere (The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.).
How can I check PyPI dependencies for CVE-2021-4180?
Run the dependency tree command: 'pip show tripleo-heat-templates'. 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-hm3x-jwwf-jpr9",
  "modified" : "2022-03-31T20:43:24Z",
  "published" : "2022-03-24T00:00:17Z",
  "aliases" : [ "CVE-2021-4180" ],
  "summary" : "Exposure of Sensitive Information to an Unauthorized Actor in OpenStack tripleo-heat-templates",
  "details" : "An information exposure flaw in openstack-tripleo-heat-templates allows an external user to discover the internal IP or hostname. An attacker could exploit this by checking the `www_authenticate_uri parameter` (which is visible to all end users) in configuration files. This would give sensitive information which may aid in additional system exploitation. A patch is available on the `master` branch and anticipated to be part of version 11.6.1.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "tripleo-heat-templates"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "11.6.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 11.6.0"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-4180"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/tripleo-heat-templates/commit/160936df134a471cfd245bd60964046027a571ea"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/tripleo-heat-templates/commit/2b9461e97fc5c4ceb0848d1cc4484f656bb85515"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/tripleo/+bug/1955397"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2035793"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/tripleo-heat-templates"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-668" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-03-31T20:43:24Z",
    "nvd_published_at" : "2022-03-23T20:15:00Z"
  }
}