# CVE-2018-16856: Openstack Octavia allows Insertion of Sensitive Information into Log File

> Attackers can read sensitive private keys from world-readable log files in default OpenStack Octavia installations, leading to information exposure.

- **Severity:** Medium 5.5 (`CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/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:** 26 Mar 2019
- **Updated:** 5 Aug 2024
- **Also known as:** GHSA-qcj3-h27m-mp9x, PYSEC-2019-193, RHSA-2019:0567, RHSA-2019:0593, UBUNTU-CVE-2018-16856

## What is CVE-2018-16856?

CVE-2018-16856 is a medium-severity vulnerability in Redhat Openstack, published on 26 Mar 2019. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

In a default Red Hat Openstack Platform Director installation, openstack-octavia before versions openstack-octavia 2.0.2-5 and openstack-octavia-3.0.1-0.20181009115732 creates log files that are readable by all users. Sensitive information such as private keys can appear in these log files allowing for information exposure.

Weakness: CWE-532 (Insertion of Sensitive Information into Log File)

## Which versions are affected by CVE-2018-16856?

5 open source packages ship an affected version, including octavia. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `octavia` | PyPI | All versions | 2.1.0 |
| `octavia` | PyPI | All versions | 2.1.0 |
| `octavia` | PyPI | From 3.0.0 | 3.0.2, 2.0.3 |
| `octavia` | PyPI | From 3.0.0.0b1 | 3.1.0 |
| `octavia` | PyPI | From 3.0.0.0b1 | 3.1.0 |
| `openstack-octavia` | Red Hat:openstack:13::el7 | All versions | 0:2.0.3-2.el7ost |
| `openstack-octavia-amphora-agent` | Red Hat:openstack:13::el7 | All versions | 0:2.0.3-2.el7ost |
| `openstack-octavia-api` | Red Hat:openstack:13::el7 | All versions | 0:2.0.3-2.el7ost |
| `openstack-octavia-common` | Red Hat:openstack:13::el7 | All versions | 0:2.0.3-2.el7ost |
| `openstack-octavia-debuginfo` | Red Hat:openstack:13::el7 | All versions | 0:2.0.3-2.el7ost |
| `openstack-octavia-diskimage-create` | Red Hat:openstack:13::el7 | All versions | 0:2.0.3-2.el7ost |
| `openstack-octavia-health-manager` | Red Hat:openstack:13::el7 | All versions | 0:2.0.3-2.el7ost |
| `openstack-octavia-housekeeping` | Red Hat:openstack:13::el7 | All versions | 0:2.0.3-2.el7ost |
| `openstack-octavia-worker` | Red Hat:openstack:13::el7 | All versions | 0:2.0.3-2.el7ost |
| `python-octavia` | Red Hat:openstack:13::el7 | All versions | 0:2.0.3-2.el7ost |
| `python-octavia-tests-golang` | Red Hat:openstack:13::el7 | All versions | 0:2.0.3-2.el7ost |
| `openstack-octavia` | Red Hat:openstack:14::el7 | All versions | 0:3.0.2-0.20181219195054.ec4c88e.el7ost |
| `openstack-octavia-amphora-agent` | Red Hat:openstack:14::el7 | All versions | 0:3.0.2-0.20181219195054.ec4c88e.el7ost |
| `openstack-octavia-api` | Red Hat:openstack:14::el7 | All versions | 0:3.0.2-0.20181219195054.ec4c88e.el7ost |
| `openstack-octavia-common` | Red Hat:openstack:14::el7 | All versions | 0:3.0.2-0.20181219195054.ec4c88e.el7ost |
| `openstack-octavia-debuginfo` | Red Hat:openstack:14::el7 | All versions | 0:3.0.2-0.20181219195054.ec4c88e.el7ost |
| `openstack-octavia-diskimage-create` | Red Hat:openstack:14::el7 | All versions | 0:3.0.2-0.20181219195054.ec4c88e.el7ost |
| `openstack-octavia-health-manager` | Red Hat:openstack:14::el7 | All versions | 0:3.0.2-0.20181219195054.ec4c88e.el7ost |
| `openstack-octavia-housekeeping` | Red Hat:openstack:14::el7 | All versions | 0:3.0.2-0.20181219195054.ec4c88e.el7ost |
| `openstack-octavia-worker` | Red Hat:openstack:14::el7 | All versions | 0:3.0.2-0.20181219195054.ec4c88e.el7ost |
| `python-octavia` | Red Hat:openstack:14::el7 | All versions | 0:3.0.2-0.20181219195054.ec4c88e.el7ost |
| `python-octavia-tests-golang` | Red Hat:openstack:14::el7 | All versions | 0:3.0.2-0.20181219195054.ec4c88e.el7ost |

Products: Openstack Octavia, Redhat Openstack.

## How do I fix CVE-2018-16856?

Upgrade octavia to a fixed version for your release line: 2.1.0, 3.0.2, 2.0.3 or 3.1.0.

## Is CVE-2018-16856 being exploited?

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

## Other vulnerabilities in Redhat Openstack

- [CVE-2019-3895](https://insights.sbomify.com/CVE-2019-3895/): Openstack Octavia Access Control Vulnerability (medium 5.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2018-16856 and fix it if it is affected.

What it is: CVE-2018-16856 is a medium-severity vulnerability in Redhat Openstack, published on 26 Mar 2019. 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-2018-16856 in the wild and no public exploit code.

Affected packages and fixed versions:
- octavia (PyPI): affected all versions; fixed in 2.1.0
- octavia (PyPI): affected all versions; fixed in 2.1.0
- octavia (PyPI): affected from 3.0.0; fixed in 3.0.2, 2.0.3
- octavia (PyPI): affected from 3.0.0.0b1; fixed in 3.1.0
- octavia (PyPI): affected from 3.0.0.0b1; fixed in 3.1.0

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-2018-16856/ (Markdown: https://insights.sbomify.com/CVE-2018-16856/index.md)
```

## Sources

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

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