GitHub Advisoryadvisory · Packagist
GHSA-q8fc-v85f-78pw stormpath/sdk uses Insecure Random Number Generator
MEDIUM
Official page ↗
- Ecosystem
- Packagist
- Packages
- stormpath/sdk
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Weaknesses
- CWE-338
- Reviewed
- 2024-05-29
Affected packages
• Packagist stormpath/sdk: <= 1.19.0 (no fix yet)
Description
The vulnerability pertains to the usage of an insecure random number generator (RNG) in the "stormpath-sdk-php" library. Specifically, the issue is present in the generation of UUID (Universally Unique Identifier) version 4 within the codebase.
Related
Weakness · CWE (1)
- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) weakness
References
- https://github.com/stormpath/stormpath-sdk-php/issues/132 web
- https://github.com/FriendsOfPHP/security-advisories/blob/master/stormpath/sdk/2017-11-20.yaml web
- https://github.com/stormpath/stormpath-sdk-php package
- https://github.com/stormpath/stormpath-sdk-php/blob/15aee3007b8aa41c20cdf28fd650b8a2368a7fa9/src/Util/UUID.php#L167-L181 web
- https://github.com/stormpath/stormpath-sdk-php/blob/62698ea98ef89217f932e28cf3e511d39af3b4cf/src/Authc/Api/ApiKeyEncryptionOptions.php#L48-L50 web