CVE-2017-12155: Tripleo heat templates Openstack Tripleo-heat-templates Unauthenticated File Access Vulnerability

MODERATE
Advisory Identifier: GHSA-w8gx-hhcx-px6w
CVSS 6.3
CWE-306
Published
Advisory Summary

CVE-2017-12155 is a MODERATE (CVSS 6.3) openstack tripleo-heat-templates unauthenticated file access vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Tripleo heat templates libraries in the PyPI ecosystem. The issue involves openstack tripleo-heat-templates unauthenticated file access. Remediation is available by upgrading affected packages to version 7.0.6.

CVE-2017-12155 at a Glance

CVE Identifier CVE-2017-12155
GHSA Identifier GHSA-w8gx-hhcx-px6w
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Tripleo heat templates
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N).

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

How to Fix CVE-2017-12155

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: 7.0.6
pip install tripleo-heat-templates>=7.0.6
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-2017-12155, 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 7.0.6), 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-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. 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

A resource-permission flaw was found in the `tripleo-heat-templates` package where `ceph.client.openstack.keyring` is created as world-readable. A local attacker with access to the key could read or modify data on Ceph cluster pools for OpenStack as though the attacker were the OpenStack service, thus potentially reading or modifying data in an OpenStack Block Storage volume. This has been patched in versions [7.0.6](https://github.com/openstack/tripleo-heat-templates/commit/a18fd59077d97de83496c85c017b9d256a3eddd4) and [8.0.0](https://github.com/openstack/tripleo-heat-templates/commit/ce7b65f443d38a6627631f53cb22336338e97d30).

CVE-2017-12155 Affected Tripleo heat templates Versions

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

References

Frequently Asked Questions

What is CVE-2017-12155?
CVE-2017-12155 is a security vulnerability in Tripleo heat templates involving Openstack tripleo-heat-templates unauthenticated file access under CWE-306: Missing Authentication for Critical Function.
Which Tripleo heat templates versions are affected?
Affected versions include releases prior to 7.0.6 across affected packages: tripleo-heat-templates.
What version fixes CVE-2017-12155?
Upgrading to 7.0.6 (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 7.0.6. Upgrade your dependency to 7.0.6 or later.
What is the CVSS score of CVE-2017-12155?
CVE-2017-12155 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2017-12155?
CVE-2017-12155 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check PyPI dependencies for CVE-2017-12155?
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-w8gx-hhcx-px6w",
  "modified" : "2023-10-10T15:43:09Z",
  "published" : "2022-05-13T01:42:38Z",
  "aliases" : [ "CVE-2017-12155" ],
  "summary" : "Openstack tripleo-heat-templates unauthenticated file access",
  "details" : "A resource-permission flaw was found in the `tripleo-heat-templates` package where `ceph.client.openstack.keyring` is created as world-readable. A local attacker with access to the key could read or modify data on Ceph cluster pools for OpenStack as though the attacker were the OpenStack service, thus potentially reading or modifying data in an OpenStack Block Storage volume. This has been patched in versions [7.0.6](https://github.com/openstack/tripleo-heat-templates/commit/a18fd59077d97de83496c85c017b9d256a3eddd4) and [8.0.0](https://github.com/openstack/tripleo-heat-templates/commit/ce7b65f443d38a6627631f53cb22336338e97d30).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "tripleo-heat-templates"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.0.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-12155"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0602"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1593"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:1627"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/tripleo/+bug/1720787"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1489360"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/tripleo-heat-templates"
  }, {
    "type" : "WEB",
    "url" : "https://opendev.org/openstack/tripleo-heat-templates/commit/a18fd59077d97de83496c85c017b9d256a3eddd4"
  }, {
    "type" : "WEB",
    "url" : "https://opendev.org/openstack/tripleo-heat-templates/commit/ce7b65f443d38a6627631f53cb22336338e97d30"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-26T19:02:59Z",
    "nvd_published_at" : "2017-12-12T20:29:00Z"
  }
}