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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | symfony | 2.7.9+dfsg-1 | — |
| Debian 13 | symfony | 2.7.9+dfsg-1 | — |
| Debian 12 | symfony | 2.7.9+dfsg-1 | — |
| Debian 8 | symfony | 2.3.21+dfsg-4+deb8u3 | DSA-3588-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | symfony/security | >= 2.3.0, < 2.3.37 | 2.3.37 | GHSA-jjx5-fq5g-8xpc |
| Packagist | symfony/security | >= 2.4.0, < 2.6.13 | 2.6.13 | GHSA-jjx5-fq5g-8xpc |
| Packagist | symfony/security | >= 2.7.0, < 2.7.9 | 2.7.9 | GHSA-jjx5-fq5g-8xpc |
| Packagist | symfony/security-core | >= 2.4.0, < 2.6.13 | 2.6.13 | GHSA-jjx5-fq5g-8xpc |
| Packagist | symfony/security-core | >= 2.7.0, < 2.7.9 | 2.7.9 | GHSA-jjx5-fq5g-8xpc |
| Packagist | symfony/symfony | >= 2.3.0, < 2.3.37 | 2.3.37 | GHSA-jjx5-fq5g-8xpc |
| Packagist | symfony/symfony | >= 2.4.0, < 2.6.13 | 2.6.13 | GHSA-jjx5-fq5g-8xpc |
| Packagist | symfony/symfony | >= 2.7.0, < 2.7.9 | 2.7.9 | GHSA-jjx5-fq5g-8xpc |
Advisories 1
- DSA-3588-1 symfony - security update Debian Security (DSA / DLA) · Mar 9, 2026