CVE-2016-1902
Symfony Cryptographic Vulnerability
Also known as GHSA-jjx5-fq5g-8xpc
Mitigation
- Upgrade symfony/security-core to one of 2.6.13, 2.7.9 (or later in the same release line).
- Upgrade symfony/security to one of 2.3.37, 2.6.13, 2.7.9 (or later in the same release line).
- Upgrade symfony/symfony to one of 2.3.37, 2.6.13, 2.7.9 (or later in the same release line).
Who should check
- Projects that depend on Packagist package symfony/security-core (>= 2.4.0, < 2.6.13)
- Projects that depend on Packagist package symfony/security (>= 2.3.0, < 2.3.37)
- Projects that depend on Packagist package symfony/symfony (>= 2.3.0, < 2.3.37)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- symfony/security-core >= 2.4.0, < 2.6.13; symfony/security >= 2.3.0, < 2.3.37; symfony/symfony >= 2.3.0, < 2.3.37
- Fixed in
- 2.6.13, 2.7.9, 2.3.37
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 1.91% chance of exploitation in 30 days (percentile 80, 2026-11-26)
- CWE
- CWE-310
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist symfony/security-core | >= 2.4.0, < 2.6.13 | 2.6.13, 2.7.9 | osv |
| Packagist symfony/security | >= 2.3.0, < 2.3.37 | 2.3.37, 2.6.13, 2.7.9 | osv |
| Packagist symfony/symfony | >= 2.3.0, < 2.3.37 | 2.3.37, 2.6.13, 2.7.9 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2016-1902. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2016-1902.md Affected: symfony/security-core >= 2.4.0, < 2.6.13; symfony/security >= 2.3.0, < 2.3.37; symfony/symfony >= 2.3.0, < 2.3.37 Fixed in: 2.6.13, 2.7.9, 2.3.37 Steps: 1. Search this machine and project for symfony/security-core (Packagist), symfony/security (Packagist), symfony/symfony (Packagist), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- https://www.landaire.net/blog/cve-2016-1902-symfony-securerandom/
- 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://symfony.com/cve-2016-1902
- https://www.landaire.net/blog/cve-2016-1902-symfony-securerandom
FAQ
Is CVE-2016-1902 being exploited?
There is no confirmed exploitation: CVE-2016-1902 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.91% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2016-1902?
High: CVSS 7.5 (v3.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2016-1902?
symfony/security-core >= 2.4.0, < 2.6.13; symfony/security >= 2.3.0, < 2.3.37; symfony/symfony >= 2.3.0, < 2.3.37.
Is there a fix for CVE-2016-1902?
Yes. Fixed in 2.6.13, 2.7.9, 2.3.37. Upgrade symfony/security-core to one of 2.6.13, 2.7.9 (or later in the same release line). Upgrade symfony/security to one of 2.3.37, 2.6.13, 2.7.9 (or later in the same release line). Upgrade symfony/symfony to one of 2.3.37, 2.6.13, 2.7.9 (or later in the same release line).
How do I check if I'm affected by CVE-2016-1902?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.