CVE-2022-23472: Passeo Passeo Uses Insecure Random Number Vulnerability
HIGHCVE-2022-23472 is a HIGH (CVSS 5.9) passeo uses insecure random number vulnerability (CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)) affecting Passeo libraries in the PyPI ecosystem. The issue involves passeo uses insecure random number generator. Remediation is available by upgrading affected packages to version 1.0.5.
CVE-2022-23472 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2022-23472
To remediate this vulnerability, upgrade all affected Passeo 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 passeo>=1.0.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show passeo
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2022-23472, inspect your installed packages using pip:
pip show passeo
Analyze the terminal output to locate any version of Passeo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.5), your application is affected.
Note: The pip show passeo command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG), where the product uses a pseudo-random number generator (prng) in a security context, but the prng's algorithm is not cryptographically strong. In Passeo, 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-23472 Affected Passeo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
passeo
|
PyPI |
< 1.0.5
|
1.0.5
|
References
Frequently Asked Questions
What is CVE-2022-23472?
Which Passeo versions are affected?
What version fixes CVE-2022-23472?
Is passeo affected?
What is the CVSS score of CVE-2022-23472?
What CWE is associated with CVE-2022-23472?
How can I check PyPI dependencies for CVE-2022-23472?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mhhf-vgwh-fw9h",
"modified" : "2024-10-09T20:09:02Z",
"published" : "2022-12-06T21:13:32Z",
"aliases" : [ "CVE-2022-23472" ],
"summary" : "Passeo uses insecure random number generator",
"details" : "### Impact\nEveryone below v1.0.5 is impacted by this flaw, of confidentiality being at risk due to the password(s) being easily able to be guessed with Passeo's use of the ``random`` library. It is recommended to change any passwords made with Passeo before v1.0.5 and upgrade to v1.0.5, and v1.0.5 patches this with the ``secrets`` library.\n\n### Workarounds\nNo current workaround available than updating to v1.0.5.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "passeo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ArjunSharda/Passeo/security/advisories/GHSA-mhhf-vgwh-fw9h"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23472"
}, {
"type" : "WEB",
"url" : "https://github.com/ArjunSharda/Passeo/commit/8caa798b6bc4647dca59b2376204b6dc6176361a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ArjunSharda/Passeo"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/passeo/PYSEC-2022-42997.yaml"
}, {
"type" : "WEB",
"url" : "https://peps.python.org/pep-0506"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-338" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-06T21:13:32Z",
"nvd_published_at" : "2022-12-06T18:15:00Z"
}
}