CVE-2013-5958: Symfony/symfony Denial of Service Vulnerability
MODERATECVE-2013-5958 is a MODERATE denial of service vulnerability (CWE-789: Memory Allocation with Excessive Size Value) affecting Symfony/symfony libraries in the Packagist ecosystem. The issue involves symfony denial of service via long password hashing. Remediation is available by upgrading affected packages to version 2.0.25, 2.1.13, 2.2.9, 2.3.6, 1.10.0.
CVE-2013-5958 at a Glance
How to Fix CVE-2013-5958
To remediate this vulnerability, upgrade all affected Symfony/symfony dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade symfony/symfony to 2.0.25
Upgrade symfony/symfony to 2.1.13
Upgrade symfony/symfony to 2.2.9
Upgrade symfony/symfony to 2.3.6
Upgrade symfony/polyfill to 1.10.0
Upgrade symfony/security to 2.0.25
Upgrade symfony/security to 2.1.13
Upgrade symfony/security to 2.2.9
Upgrade symfony/security to 2.3.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for symfony/symfony
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-5958, inspect your project dependencies for Symfony/symfony:
inspect dependencies for symfony/symfony
Analyze the terminal output to locate any version of Symfony/symfony in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.25), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-789: Memory Allocation with Excessive Size Value, where the product allocates memory based on an untrusted, large size value, but it does not ensure that the size is within expected limits, allowing arbitrary amounts of memory to be allocated. In Symfony/symfony, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2013-5958 Affected Symfony/symfony Versions
9 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/symfony
|
Packagist |
≥ 2.0.0
< 2.0.25
|
2.0.25
|
|
symfony/symfony
|
Packagist |
≥ 2.1.0
< 2.1.13
|
2.1.13
|
|
symfony/symfony
|
Packagist |
≥ 2.2.0
< 2.2.9
|
2.2.9
|
|
symfony/symfony
|
Packagist |
≥ 2.3.0
< 2.3.6
|
2.3.6
|
|
symfony/polyfill
|
Packagist |
≥ 1.0.0
< 1.10.0
|
1.10.0
|
|
symfony/security
|
Packagist |
≥ 2.0.0
< 2.0.25
|
2.0.25
|
|
symfony/security
|
Packagist |
≥ 2.1.0
< 2.1.13
|
2.1.13
|
|
symfony/security
|
Packagist |
≥ 2.2.0
< 2.2.9
|
2.2.9
|
|
symfony/security
|
Packagist |
≥ 2.3.0
< 2.3.6
|
2.3.6
|
References
Frequently Asked Questions
What is CVE-2013-5958?
Which Symfony/symfony versions are affected?
What version fixes CVE-2013-5958?
Is symfony/symfony affected?
Is symfony/polyfill affected?
What CWE is associated with CVE-2013-5958?
How can I check Packagist dependencies for CVE-2013-5958?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cr49-fx2v-9p57",
"modified" : "2024-04-25T22:07:30Z",
"published" : "2022-05-17T04:19:02Z",
"aliases" : [ "CVE-2013-5958" ],
"summary" : "Symfony Denial of Service Via Long Password Hashing",
"details" : "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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.25"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/polyfill"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0"
}, {
"fixed" : "1.10.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.25"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-5958"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/issues/11522"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/polyfill/pull/155"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/polyfill/CVE-2013-5958.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2013-5958.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2013-5958.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/symfony/symfony"
}, {
"type" : "WEB",
"url" : "https://symfony.com/blog/security-releases-cve-2013-5958-symfony-2-0-25-2-1-13-2-2-9-and-2-3-6-released"
}, {
"type" : "WEB",
"url" : "http://symfony.com/blog/security-releases-cve-2013-5958-symfony-2-0-25-2-1-13-2-2-9-and-2-3-6-released"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-789" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-25T22:04:14Z",
"nvd_published_at" : "2014-12-27T18:59:00Z"
}
}