CVE-2016-1902
HIGH 7.5CVSS 3.0Symfony Cryptographic Vulnerability
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.
- Published
- 1 Jun 2016
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-310CWE-332
- Also known as
- GHSA-jjx5-fq5g-8xpc
- Sources
- NVDJSONOSV GHSA-jjx5-fq5g-8xpcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* |
<= 2.3.36 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.0:*:*:*:*:*:*:* |
= 2.6.0 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.1:*:*:*:*:*:*:* |
= 2.6.1 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.2:*:*:*:*:*:*:* |
= 2.6.2 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.3:*:*:*:*:*:*:* |
= 2.6.3 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.4:*:*:*:*:*:*:* |
= 2.6.4 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.5:*:*:*:*:*:*:* |
= 2.6.5 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.6:*:*:*:*:*:*:* |
= 2.6.6 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.7:*:*:*:*:*:*:* |
= 2.6.7 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.8:*:*:*:*:*:*:* |
= 2.6.8 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.9:*:*:*:*:*:*:* |
= 2.6.9 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.10:*:*:*:*:*:*:* |
= 2.6.10 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.11:*:*:*:*:*:*:* |
= 2.6.11 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.6.12:*:*:*:*:*:*:* |
= 2.6.12 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.7.0:*:*:*:*:*:*:* |
= 2.7.0 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.7.1:*:*:*:*:*:*:* |
= 2.7.1 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.7.2:*:*:*:*:*:*:* |
= 2.7.2 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.7.3:*:*:*:*:*:*:* |
= 2.7.3 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.7.4:*:*:*:*:*:*:* |
= 2.7.4 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.7.5:*:*:*:*:*:*:* |
= 2.7.5 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.7.6:*:*:*:*:*:*:* |
= 2.7.6 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.7.7:*:*:*:*:*:*:* |
= 2.7.7 | |
| NVD | sensiolabs | symfonycpe:2.3:a:sensiolabs:symfony:2.7.8:*:*:*:*:*:*:* |
= 2.7.8 | |
| OSV | Packagist | symfony/security-core | >= 2.4.0, < 2.6.13 | 2.6.13 |
| OSV | Packagist | symfony/security-core | >= 2.7.0, < 2.7.9 | 2.7.9 |
| OSV | Packagist | symfony/security | >= 2.3.0, < 2.3.37 | 2.3.37 |
| OSV | Packagist | symfony/security | >= 2.4.0, < 2.6.13 | 2.6.13 |
| OSV | Packagist | symfony/security | >= 2.7.0, < 2.7.9 | 2.7.9 |
| OSV | Packagist | symfony/symfony | >= 2.3.0, < 2.3.37 | 2.3.37 |
| OSV | Packagist | symfony/symfony | >= 2.4.0, < 2.6.13 | 2.6.13 |
| OSV | Packagist | symfony/symfony | >= 2.7.0, < 2.7.9 | 2.7.9 |
References
- http://symfony.com/blog/cve-2016-1902-securerandom-s-fallback-not-secure-when-openssl-fails · Vendor Advisory, WEB
- http://www.debian.org/security/2016/dsa-3588 · WEB
- https://github.com/symfony/symfony/pull/17359 · Patch, WEB
- https://www.landaire.net/blog/cve-2016-1902-symfony-securerandom/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2016-1902 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-core/CVE-2016-1902.yaml · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2016-1902.yaml · WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2016-1902.yaml · WEB
- https://symfony.com/cve-2016-1902 · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 1 Jun 2016)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 17 May 2022)