CVE-2022-23472: Passeo Passeo Uses Insecure Random Number Vulnerability

HIGH
Advisory Identifier: GHSA-mhhf-vgwh-fw9h
CVSS 5.9
CWE-338
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-23472
GHSA Identifier GHSA-mhhf-vgwh-fw9h
Severity HIGH
CVSS v3.1 Base Score 5.9
CWE Classification CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Affected Product Passeo
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
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-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.

passeo fixed: 1.0.5
pip install passeo>=1.0.5
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 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

### Impact Everyone 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. ### Workarounds No current workaround available than updating to v1.0.5.

CVE-2022-23472 Affected Passeo Versions

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

References

Frequently Asked Questions

What is CVE-2022-23472?
CVE-2022-23472 is a security vulnerability in Passeo involving Passeo uses insecure random number generator under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG).
Which Passeo versions are affected?
Affected versions include releases prior to 1.0.5 across affected packages: passeo.
What version fixes CVE-2022-23472?
Upgrading to 1.0.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is passeo affected?
Yes, passeo is affected in releases prior to 1.0.5. Upgrade your dependency to 1.0.5 or later.
What is the CVSS score of CVE-2022-23472?
CVE-2022-23472 has a CVSS v3.1 base score of 5.9 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2022-23472?
CVE-2022-23472 is classified under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.).
How can I check PyPI dependencies for CVE-2022-23472?
Run the dependency tree command: 'pip show passeo'. 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-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"
  }
}