Affected versions
Version ranges need review.
Composersymfony/security-core
- Affected versions
- >=2.4.0,<2.5.0|>=2.5.0,<2.6.0|>=2.6.0,<2.6.13|>=2.7.0,<2.7.9
- Fixed version
- Not reported
Composersymfony/security-core
- Affected versions
- >= 2.4.0, < 2.6.13
- Fixed version
- 2.6.13
Composersymfony/security-core
- Affected versions
- >= 2.7.0, < 2.7.9
- Fixed version
- 2.7.9
Composersymfony/security
- Affected versions
- >= 2.3.0, < 2.3.37
- Fixed version
- 2.3.37
Composersymfony/security
- Affected versions
- >= 2.4.0, < 2.6.13
- Fixed version
- 2.6.13
Composersymfony/security
- Affected versions
- >= 2.7.0, < 2.7.9
- Fixed version
- 2.7.9
Composersymfony/security
- Affected versions
- >=2.3.0,<2.3.37|>=2.4.0,<2.5.0|>=2.5.0,<2.6.0|>=2.6.0,<2.6.13|>=2.7.0,<2.7.9
- Fixed version
- Not reported
Composersymfony/symfony
- Affected versions
- >= 2.7.0, < 2.7.9
- Fixed version
- 2.7.9
Composersymfony/symfony
- Affected versions
- >= 2.3.0, < 2.3.37
- Fixed version
- 2.3.37
Composersymfony/symfony
- Affected versions
- >= 2.4.0, < 2.6.13
- Fixed version
- 2.6.13
Composersymfony/symfony
- Affected versions
- >=2.3.0,<2.3.37|>=2.4.0,<2.5.0|>=2.5.0,<2.6.0|>=2.6.0,<2.6.13|>=2.7.0,<2.7.9
- Fixed version
- Not reported
Exploitation
Description
The nextBytes function in the SecureRandom class in Symfony before 2.3.37, 2.6.x before 2.6.13, and 2.7.x before 2.7.9 does not properly generate random numbers when used with PHP 5.x without the paragonie/random_compat library and the openssl_random_pseudo_bytes function fails, which makes it easier for attackers to defeat cryptographic protection mechanisms via unspecified vectors.
Links
- http://symfony.com/blog/cve-2016-1902-securerandom-s-fallback-not-secure-when-openssl-fails
- http://www.debian.org/security/2016/dsa-3588
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-core/CVE-2016-1902.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2016-1902.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2016-1902.yaml
- https://github.com/advisories/GHSA-jjx5-fq5g-8xpc
- https://github.com/symfony/symfony/pull/17359
- https://nvd.nist.gov/vuln/detail/CVE-2016-1902
- https://symfony.com/cve-2016-1902
- https://www.landaire.net/blog/cve-2016-1902-symfony-securerandom
- https://www.landaire.net/blog/cve-2016-1902-symfony-securerandom/

