# CVE-2017-12155: Openstack tripleo-heat-templates unauthenticated file access

> A local attacker can read or modify Ceph cluster data by accessing a world-readable keyring file in OpenStack TripleO deployments.

- **Severity:** Medium 6.3 (`CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 12 Dec 2017
- **Updated:** 16 Sep 2024
- **Also known as:** GHSA-w8gx-hhcx-px6w, PYSEC-2026-754, RHSA-2018:0602, UBUNTU-CVE-2017-12155

## What is CVE-2017-12155?

CVE-2017-12155 is a medium-severity vulnerability in openstack-tripleo-heat-templates, published on 12 Dec 2017. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

A resource-permission flaw was found in the openstack-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.

Weakness: CWE-306 (Missing Authentication for Critical Functionality)

## Which versions are affected by CVE-2017-12155?

3 open source packages ship an affected version, including tripleo-heat-templates. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `tripleo-heat-templates` | PyPI | All versions | 7.0.6 |
| `tripleo-heat-templates` | PyPI | All versions | 7.0.6 |
| `tripleo-heat-templates` | PyPI | All versions | 7.0.6 |
| `openstack-tripleo-heat-templates` | Red Hat:openstack:12::el7 | All versions | 0:7.0.9-8.el7ost |

Products: Ceph Ceph.

## How do I fix CVE-2017-12155?

Upgrade tripleo-heat-templates to 7.0.6 or later.

## Is CVE-2017-12155 being exploited?

There is no known exploitation of CVE-2017-12155 in the wild and no public exploit code.

## Other vulnerabilities in openstack-tripleo-heat-templates

- [CVE-2018-10861](https://insights.sbomify.com/CVE-2018-10861/): Missing authorization in ceph (high 8.1)
- [CVE-2019-10222](https://insights.sbomify.com/CVE-2019-10222/): Denial of service in ceph (high 7.5)
- [CVE-2018-1129](https://insights.sbomify.com/CVE-2018-1129/): Auth bypass in ceph (medium 6.5)
- [CVE-2017-7519](https://insights.sbomify.com/CVE-2017-7519/): Denial of service in ceph (low 2.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2017-12155 and fix it if it is affected.

What it is: CVE-2017-12155 is a medium-severity vulnerability in openstack-tripleo-heat-templates, published on 12 Dec 2017. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2017-12155 in the wild and no public exploit code.

Affected packages and fixed versions:
- tripleo-heat-templates (PyPI): affected all versions; fixed in 7.0.6
- tripleo-heat-templates (PyPI): affected all versions; fixed in 7.0.6
- tripleo-heat-templates (PyPI): affected all versions; fixed in 7.0.6

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2017-12155/ (Markdown: https://insights.sbomify.com/CVE-2017-12155/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2017-12155
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2017-12155
- OSV: https://osv.dev/vulnerability/CVE-2017-12155

---
From sbomify Insights: https://insights.sbomify.com/CVE-2017-12155/
Summaries are generated and may contain mistakes; the official description above is the record.
