CVE-2017-7214: Nova OpenStack Nova Logs Sensitive Context Vulnerability

CRITICAL
Advisory Identifier: GHSA-f4g4-cj8f-3cr9
CVSS 9.8
CWE-532
Published
Advisory Summary

CVE-2017-7214 is a CRITICAL (CVSS 9.8) openstack nova logs sensitive context vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Nova libraries in the PyPI ecosystem. The issue involves openstack nova logs sensitive context from notification exceptions. Remediation is available by upgrading affected packages to version 13.1.4, 14.0.5, 15.0.2.

CVE-2017-7214 at a Glance

CVE Identifier CVE-2017-7214
GHSA Identifier GHSA-f4g4-cj8f-3cr9
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Nova
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

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

How to Fix CVE-2017-7214

To remediate this vulnerability, upgrade all affected Nova dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

nova fixed: 13.1.4
pip install nova>=13.1.4
nova fixed: 14.0.5
pip install nova>=14.0.5
nova fixed: 15.0.2
pip install nova>=15.0.2
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 nova

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2017-7214, inspect your installed packages using pip:

pip show nova

Analyze the terminal output to locate any version of Nova in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 13.1.4), your application is affected.

Note: The pip show nova command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Nova, 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

An issue was discovered in exception_wrapper.py in OpenStack Nova 13.x through 13.1.3, 14.x through 14.0.4, and 15.x through 15.0.1. Legacy notification exception contexts appearing in ERROR level logs may include sensitive information such as account passwords and authorization tokens.

CVE-2017-7214 Affected Nova Versions

3 component(s)
Fixed Versions:
13.1.414.0.515.0.2
Product / Package Ecosystem Affected Versions Fixed Version
nova
PyPI
≥ 13.0.0
< 13.1.4
13.1.4
nova
PyPI
≥ 14.0.0
< 14.0.5
14.0.5
nova
PyPI
≥ 15.0.1
< 15.0.2
15.0.2

References

Frequently Asked Questions

What is CVE-2017-7214?
CVE-2017-7214 is a security vulnerability in Nova involving OpenStack Nova logs sensitive context from notification exceptions under CWE-532: Insertion of Sensitive Information into Log File.
Which Nova versions are affected?
Affected versions include releases prior to 13.1.4, 14.0.5, 15.0.2 across affected packages: nova.
What version fixes CVE-2017-7214?
Upgrading to 13.1.4, 14.0.5, 15.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nova affected?
Yes, nova is affected in releases prior to 13.1.4, 14.0.5, 15.0.2. Upgrade your dependency to 13.1.4, 14.0.5, 15.0.2 or later.
What is the CVSS score of CVE-2017-7214?
CVE-2017-7214 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2017-7214?
CVE-2017-7214 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check PyPI dependencies for CVE-2017-7214?
Run the dependency tree command: 'pip show nova'. 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-f4g4-cj8f-3cr9",
  "modified" : "2024-05-14T21:13:46Z",
  "published" : "2022-05-14T03:53:47Z",
  "aliases" : [ "CVE-2017-7214" ],
  "summary" : "OpenStack Nova logs sensitive context from notification exceptions",
  "details" : "An issue was discovered in exception_wrapper.py in OpenStack Nova 13.x through 13.1.3, 14.x through 14.0.4, and 15.x through 15.0.1. Legacy notification exception contexts appearing in ERROR level logs may include sensitive information such as account passwords and authorization tokens.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "13.0.0"
      }, {
        "fixed" : "13.1.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "14.0.0"
      }, {
        "fixed" : "14.0.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "nova"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "15.0.1"
      }, {
        "fixed" : "15.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-7214"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/3f985f1eda6f29180878a3d21c20c5057179486a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/acb19160d4d348e29a21ad57c61c7369352c4d1c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/c2c91ce44592fc5dc2aacee1cf7f5b5cfd2e9a0a"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openstack/nova/commit/e193201fa1de5b08b29adefd8c149935c5529598"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:1508"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2017:1595"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/nova"
  }, {
    "type" : "WEB",
    "url" : "https://launchpad.net/bugs/1673569"
  }, {
    "type" : "WEB",
    "url" : "http://www.securityfocus.com/bid/96998"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-14T21:13:46Z",
    "nvd_published_at" : "2017-03-21T18:59:00Z"
  }
}