CVE-2022-23472: Passeo uses insecure random number generator
5.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.29385%
CWE
Published
12/6/2022
Updated
10/9/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
Passeo | pip | < 1.0.5 | 1.0.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from using Python's insecure random module for password generation. The commit diff shows the vulnerable version used random.sample()
in the generate
function, which was replaced with secrets.choice()
in the patched version. This matches the CWE-338 description of using weak PRNGs. No other functions in the diff show direct use of random for security-sensitive operations.