CVE-2016-1902
mediumpriority · track · 31EPSS 0.019 · 80 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (33)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-jjx5-fq5g-8xpcSymfony Cryptographic Vulnerability2022-05-17ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (13)
External citations — patches, advisories, analysis.
- http://symfony.com/blog/cve-2016-1902-securerandom-s-fallback-not-secure-when-openssl-failscnnvd
- http://www.debian.org/security/2016/dsa-3588cnnvd
- http://www.securityfocus.com/bid/81805cnnvd
- https://github.com/symfony/symfony/pull/17359cnnvd
- https://www.landaire.net/blog/cve-2016-1902-symfony-securerandom/cnnvd
- http://symfony.com/blog/cve-2016-1902-securerandom-s-fallback-not-secure-when-openssl-failsenisa_euvd
- http://www.debian.org/security/2016/dsa-3588enisa_euvd
- https://github.com/symfony/symfony/pull/17359enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan