CVE-2022-0718: Oslo utils Python-oslo-utils Has Improper Password Parsing Vulnerability
MODERATECVE-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
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).
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.
pip install oslo-utils>=4.10.1
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
CVE-2022-0718 Affected Oslo utils Versions
1 component(s)| 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?
Which Oslo utils versions are affected?
What version fixes CVE-2022-0718?
Is oslo-utils affected?
What is the CVSS score of CVE-2022-0718?
What CWE is associated with CVE-2022-0718?
How can I check PyPI dependencies for CVE-2022-0718?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}