# CVE-2017-18191: OpenStack Nova Denial of service attack on the compute host

> An attacker can cause a denial of service on the compute host by corrupting the LUKS header of an encrypted volume during detach and reattach operations.

- **Severity:** High 7.5 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 19 Feb 2018
- **Updated:** 5 Aug 2024
- **Also known as:** DEBIAN-CVE-2017-18191, GHSA-ffmh-r67w-m88f, PYSEC-2026-689, RHSA-2018:2332, RHSA-2018:2714, RHSA-2018:2855, SUSE-SU-2018:1448-1, UBUNTU-CVE-2017-18191

## What is CVE-2017-18191?

CVE-2017-18191 is a high-severity denial of service vulnerability in Redhat Openstack, published on 19 Feb 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An issue was discovered in OpenStack Nova 15.x through 15.1.0 and 16.x through 16.1.1. By detaching and reattaching an encrypted volume, an attacker may access the underlying raw volume and corrupt the LUKS header, resulting in a denial of service attack on the compute host. (The same code error also results in data loss, but that is not a vulnerability because the user loses their own data.) All Nova setups supporting encrypted volumes are affected.

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

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `nova` | PyPI | From 15.0.0 | 15.1.1, 16.1.2 |
| `nova` | PyPI | From 15.0.0 | 15.1.1 |
| `nova` | PyPI | From 15.0.0 | 15.1.1 |
| `nova` | PyPI | From 16.0.0 | 16.1.2 |
| `nova` | PyPI | From 16.0.0 | 16.1.2 |
| `openstack-nova` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-api` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-cells` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-cert` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-common` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-compute` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-conductor` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-console` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-migration` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-network` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-novncproxy` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-placement-api` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-scheduler` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-serialproxy` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova-spicehtml5proxy` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `python-nova` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `python-nova-tests` | Red Hat:openstack:10::el7 | All versions | 1:14.1.0-26.el7ost |
| `openstack-nova` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-api` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-cells` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-common` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-compute` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-conductor` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-console` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-migration` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-network` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-novncproxy` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-placement-api` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-scheduler` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-serialproxy` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova-spicehtml5proxy` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `python-nova` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `python-nova-tests` | Red Hat:openstack:12::el7 | All versions | 1:16.1.4-6.el7ost |
| `openstack-nova` | Red Hat:openstack:9::el7 | All versions | 1:13.1.4-24.el7ost |
| `openstack-nova-api` | Red Hat:openstack:9::el7 | All versions | 1:13.1.4-24.el7ost |

Products: Openstack Nova, Redhat Openstack.

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

Upgrade nova to a fixed version for your release line: 15.1.1 or 16.1.2.

## Is CVE-2017-18191 being exploited?

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

## Other vulnerabilities in Redhat Openstack

- [CVE-2017-7214](https://insights.sbomify.com/CVE-2017-7214/): OpenStack Nova logs sensitive context from notification exceptions (critical 9.8)
- [CVE-2017-17051](https://insights.sbomify.com/CVE-2017-17051/): OpenStack Nova DoS by rebuilding the same instance with a new image multiple times (high 8.6)
- [CVE-2020-17376](https://insights.sbomify.com/CVE-2020-17376/): OpenStack Nova Live migration fails to update persistent domain XML (high 8.3)
- [CVE-2015-3280](https://insights.sbomify.com/CVE-2015-3280/): OpenStack Compute (nova) allows remote authenticated users to cause a denial of service (medium 6.8)
- [CVE-2015-3241](https://insights.sbomify.com/CVE-2015-3241/): OpenStack Nova instance migration process does not stop when instance is deleted (medium 6.8)

## Fix prompt for AI coding agents

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

What it is: CVE-2017-18191 is a high-severity denial of service vulnerability in Redhat Openstack, published on 19 Feb 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2017-18191 in the wild and no public exploit code.

Affected packages and fixed versions:
- nova (PyPI): affected from 15.0.0; fixed in 15.1.1, 16.1.2
- nova (PyPI): affected from 15.0.0; fixed in 15.1.1
- nova (PyPI): affected from 15.0.0; fixed in 15.1.1
- nova (PyPI): affected from 16.0.0; fixed in 16.1.2
- nova (PyPI): affected from 16.0.0; fixed in 16.1.2

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

## Sources

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

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