CVE-2024-53865: Zhmcclient Python Package "zhmcclient" Stores Passwords Vulnerability
MODERATECVE-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
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).
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.
pip install zhmcclient>=1.18.1
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
CVE-2024-53865 Affected Zhmcclient Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
zhmcclient
|
PyPI |
< 1.18.1
|
1.18.1
|
References
Frequently Asked Questions
What is CVE-2024-53865?
Which Zhmcclient versions are affected?
What version fixes CVE-2024-53865?
Is zhmcclient affected?
What is the CVSS score of CVE-2024-53865?
What CWE is associated with CVE-2024-53865?
How can I check PyPI dependencies for CVE-2024-53865?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}