CVE-2024-53865: Zhmcclient Python Package "zhmcclient" Stores Passwords Vulnerability

MODERATE
Advisory Identifier: GHSA-p57h-3cmc-xpjq
CVSS 8.2
CWE-312
Published
Advisory Summary

CVE-2024-53865 is a MODERATE (CVSS 8.2) python package "zhmcclient" stores passwords vulnerability (CWE-312: Cleartext Storage of Sensitive Information) affecting Zhmcclient libraries in the PyPI ecosystem. The issue involves python package "zhmcclient" stores passwords in clear text in its hmc and api logs. Remediation is available by upgrading affected packages to version 1.18.1.

CVE-2024-53865 at a Glance

CVE Identifier CVE-2024-53865
GHSA Identifier GHSA-p57h-3cmc-xpjq
Severity MODERATE
CVSS v3.1 Base Score 8.2
CWE Classification CWE-312: Cleartext Storage of Sensitive Information
Affected Product Zhmcclient
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 8.2

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

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

How to Fix CVE-2024-53865

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

zhmcclient fixed: 1.18.1
pip install zhmcclient>=1.18.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 zhmcclient

How to Check if You Are Affected

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

pip show zhmcclient

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-312: Cleartext Storage of Sensitive Information, where the product stores sensitive information in cleartext within a resource that might be accessible to another control sphere. In Zhmcclient, 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

### Impact The Python package "zhmcclient" writes password-like properties in clear text into its HMC and API logs in the following cases: * The 'boot-ftp-password' and 'ssc-master-pw' properties when creating or updating a partition in DPM mode, in the zhmcclient API and HMC logs * The 'ssc-master-pw' and 'zaware-master-pw' properties when updating an LPAR in classic mode, in the zhmcclient API and HMC logs * The 'ssc-master-pw' and 'zaware-master-pw' properties when creating or updating an image activation profile in classic mode, in the zhmcclient API and HMC logs * The 'password' property when creating or updating an HMC user, in the zhmcclient API log * The 'bind-password' property when creating or updating an LDAP server definition, in the zhmcclient API and HMC logs This issue affects only users of the zhmcclient package that have enabled the Python loggers named "zhmcclient.api" (for the API log) or "zhmcclient.hmc" (for the HMC log) and that use the functions listed above. ### Patches Has been fixed in zhmcclient version 1.18.1 ### Workarounds Not applicable, since fix is available. ### References None

CVE-2024-53865 Affected Zhmcclient Versions

1 component(s)
Fixed Versions:
1.18.1
Product / Package Ecosystem Affected Versions Fixed Version
zhmcclient
PyPI
< 1.18.1
1.18.1

References

Frequently Asked Questions

What is CVE-2024-53865?
CVE-2024-53865 is a security vulnerability in Zhmcclient involving Python package "zhmcclient" stores passwords in clear text in its HMC and API logs under CWE-312: Cleartext Storage of Sensitive Information.
Which Zhmcclient versions are affected?
Affected versions include releases prior to 1.18.1 across affected packages: zhmcclient.
What version fixes CVE-2024-53865?
Upgrading to 1.18.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zhmcclient affected?
Yes, zhmcclient is affected in releases prior to 1.18.1. Upgrade your dependency to 1.18.1 or later.
What is the CVSS score of CVE-2024-53865?
CVE-2024-53865 has a CVSS v3.1 base score of 8.2 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2024-53865?
CVE-2024-53865 is classified under CWE-312: Cleartext Storage of Sensitive Information (The product stores sensitive information in cleartext within a resource that might be accessible to another control sphere.).
How can I check PyPI dependencies for CVE-2024-53865?
Run the dependency tree command: 'pip show zhmcclient'. 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-p57h-3cmc-xpjq",
  "modified" : "2024-12-02T18:35:18Z",
  "published" : "2024-12-02T18:35:18Z",
  "aliases" : [ "CVE-2024-53865" ],
  "summary" : "Python package \"zhmcclient\" stores passwords in clear text in its HMC and API logs",
  "details" : "### Impact\n\nThe Python package \"zhmcclient\" writes password-like properties in clear text into its HMC and API logs in the following cases:\n\n* The 'boot-ftp-password' and 'ssc-master-pw' properties when creating or updating a partition in DPM mode, in the zhmcclient API and HMC logs\n* The 'ssc-master-pw' and 'zaware-master-pw' properties when updating an LPAR in classic mode, in the zhmcclient API and HMC logs\n* The 'ssc-master-pw' and 'zaware-master-pw' properties when creating or updating an image activation profile in classic mode, in the zhmcclient API and HMC logs\n* The 'password' property when creating or updating an HMC user, in the zhmcclient API log\n* The 'bind-password' property when creating or updating an LDAP server definition, in the zhmcclient API and HMC logs\n\nThis issue affects only users of the zhmcclient package that have enabled the Python loggers named \"zhmcclient.api\" (for the API log) or \"zhmcclient.hmc\" (for the HMC log) and that use the functions listed above.\n\n### Patches\n\nHas been fixed in zhmcclient version 1.18.1\n\n### Workarounds\n\nNot applicable, since fix is available.\n\n### References\n\nNone\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "zhmcclient"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.18.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zhmcclient/python-zhmcclient/security/advisories/GHSA-p57h-3cmc-xpjq"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-53865"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zhmcclient/python-zhmcclient/commit/ad32781e782d0f604c6da4680fce48e4cc1f4433"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zhmcclient/python-zhmcclient"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-312" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-12-02T18:35:18Z",
    "nvd_published_at" : "2024-11-29T19:15:09Z"
  }
}