CVE-2013-5958 — symfony
Fix: symfony/polyfill#155CVE-2013-5958 is a CWE-399 vulnerability in symfony/symfony. A fix is available for symfony/symfony — see the affected versions and patch details below.
Symfony Denial of Service Via Long Password Hashing
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
symfony/symfony🐘symfony/symfony🐘symfony/symfony🐘symfony/symfony🐘symfony/polyfill🐘symfony/security🐘symfony/security🐘symfony/security+1 moreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
The Security component in Symfony 2.0.x before 2.0.25, 2.1.x before 2.1.13, 2.2.x before 2.2.9, and 2.3.x before 2.3.6 allows remote attackers to cause a denial of service (CPU consumption) via a long password that triggers an expensive hash computation, as demonstrated by a PBKDF2 computation, a similar issue to CVE-2013-5750.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | symfony/symfony | ≥ 2.0.0&&< 2.0.25 | 2.0.25composer require symfony/symfony:^2.0.25 |
| 🐘Packagist | symfony/symfony | ≥ 2.1.0&&< 2.1.13 | 2.1.13composer require symfony/symfony:^2.1.13 |
| 🐘Packagist | symfony/symfony | ≥ 2.2.0&&< 2.2.9 | 2.2.9composer require symfony/symfony:^2.2.9 |
| 🐘Packagist | symfony/symfony | ≥ 2.3.0&&< 2.3.6 | 2.3.6composer require symfony/symfony:^2.3.6 |
| 🐘Packagist | symfony/polyfill | ≥ 1.0.0&&< 1.10.0 | 1.10.0composer require symfony/polyfill:^1.10.0 |
| 🐘Packagist | symfony/security | ≥ 2.0.0&&< 2.0.25 | 2.0.25composer require symfony/security:^2.0.25 |
Affected Products
symfonysensiolabsDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for symfony/symfony, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update symfony/symfony to 2.0.25 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2013-5958 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is CVE-2013-5958 in your dependencies?
Find it across Packagist, including transitive dependencies.