CVE-2021-4180: Tripleo heat templates Exposure Of Sensitive Information To Vulnerability
MODERATECVE-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
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).
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.
pip install tripleo-heat-templates>=11.6.1
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
CVE-2021-4180 Affected Tripleo heat templates Versions
1 component(s)| 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?
Which Tripleo heat templates versions are affected?
What version fixes CVE-2021-4180?
Is tripleo-heat-templates affected?
What is the CVSS score of CVE-2021-4180?
What CWE is associated with CVE-2021-4180?
How can I check PyPI dependencies for CVE-2021-4180?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}