CVE-2022-0718: Oslo utils Python-oslo-utils Has Improper Password Parsing Vulnerability

MODERATE
Advisory Identifier: GHSA-wmqq-r32m-87c5
CVSS 4.9
CWE-532 CWE-522
Published
Advisory Summary

CVE-2022-0718 is a MODERATE (CVSS 4.9) python-oslo-utils has improper password parsing vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Oslo utils libraries in the PyPI ecosystem. The issue involves python-oslo-utils has improper password parsing. Remediation is available by upgrading affected packages to version 4.10.1.

CVE-2022-0718 at a Glance

CVE Identifier CVE-2022-0718
GHSA Identifier GHSA-wmqq-r32m-87c5
Severity MODERATE
CVSS v3.1 Base Score 4.9
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product Oslo utils
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.9

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

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

How to Fix CVE-2022-0718

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

oslo-utils fixed: 4.10.1
pip install oslo-utils>=4.10.1
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 oslo-utils

How to Check if You Are Affected

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

pip show oslo-utils

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

Note: The pip show oslo-utils 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 Oslo utils, 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 flaw was found in python-oslo-utils. Due to improper parsing, passwords with a double quote ( " ) in them cause incorrect masking in debug logs, causing any part of the password after the double quote to be plaintext

CVE-2022-0718 Affected Oslo utils Versions

1 component(s)
Fixed Versions:
4.10.1
Product / Package Ecosystem Affected Versions Fixed Version
oslo-utils
PyPI
< 4.10.1
4.10.1

References

Frequently Asked Questions

What is CVE-2022-0718?
CVE-2022-0718 is a security vulnerability in Oslo utils involving python-oslo-utils has improper password parsing under CWE-532: Insertion of Sensitive Information into Log File.
Which Oslo utils versions are affected?
Affected versions include releases prior to 4.10.1 across affected packages: oslo-utils.
What version fixes CVE-2022-0718?
Upgrading to 4.10.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is oslo-utils affected?
Yes, oslo-utils is affected in releases prior to 4.10.1. Upgrade your dependency to 4.10.1 or later.
What is the CVSS score of CVE-2022-0718?
CVE-2022-0718 has a CVSS v3.1 base score of 4.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-0718?
CVE-2022-0718 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-2022-0718?
Run the dependency tree command: 'pip show oslo-utils'. 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-wmqq-r32m-87c5",
  "modified" : "2024-10-08T12:55:40Z",
  "published" : "2022-08-29T20:06:50Z",
  "aliases" : [ "CVE-2022-0718" ],
  "summary" : "python-oslo-utils has improper password parsing",
  "details" : "A flaw was found in python-oslo-utils. Due to improper parsing, passwords with a double quote ( \" ) in them cause incorrect masking in debug logs, causing any part of the password after the double quote to be plaintext",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "oslo-utils"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.10.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0718"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2022:0993"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2022:8873"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2022-0718"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/oslo.utils/+bug/1949623"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2056850"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-wmqq-r32m-87c5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openstack/oslo.utils"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/oslo-utils/PYSEC-2022-258.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2022/09/msg00015.html"
  }, {
    "type" : "WEB",
    "url" : "https://opendev.org/openstack/oslo.utils/commit/6e17ae1f7959c64dfd20a5f67edf422e702426aa"
  }, {
    "type" : "WEB",
    "url" : "https://security-tracker.debian.org/tracker/CVE-2022-0718"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-522", "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-16T19:32:37Z",
    "nvd_published_at" : "2022-08-29T15:15:00Z"
  }
}