CVE-2012-6431: Symfony/http foundation Symfony Allows URI Restrictions Bypass Vulnerability
MODERATECVE-2012-6431 is a MODERATE symfony allows uri restrictions bypass vulnerability (CWE-287: Improper Authentication) affecting Symfony/http foundation libraries in the Packagist ecosystem. The issue involves symfony allows uri restrictions bypass via double-encoded string. Remediation is available by upgrading affected packages to version 2.0.19.
CVE-2012-6431 at a Glance
How to Fix CVE-2012-6431
To remediate this vulnerability, upgrade all affected Symfony/http foundation 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/http-foundation to 2.0.19
Upgrade symfony/routing to 2.0.19
Upgrade symfony/security to 2.0.19
Upgrade symfony/symfony to 2.0.19
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for symfony/http-foundation
How to Check if You Are Affected
To determine whether your application is affected by CVE-2012-6431, inspect your project dependencies for Symfony/http foundation:
inspect dependencies for symfony/http-foundation
Analyze the terminal output to locate any version of Symfony/http foundation in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.19), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Symfony/http foundation, 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-2012-6431 Affected Symfony/http foundation Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/http-foundation
|
Packagist |
≥ 2.0.0
< 2.0.19
|
2.0.19
|
|
symfony/routing
|
Packagist |
≥ 2.0.0
< 2.0.19
|
2.0.19
|
|
symfony/security
|
Packagist |
≥ 2.0.0
< 2.0.19
|
2.0.19
|
|
symfony/symfony
|
Packagist |
≥ 2.0.0
< 2.0.19
|
2.0.19
|
References
Frequently Asked Questions
What is CVE-2012-6431?
Which Symfony/http foundation versions are affected?
What version fixes CVE-2012-6431?
Is symfony/http-foundation affected?
Is symfony/routing affected?
What CWE is associated with CVE-2012-6431?
How can I check Packagist dependencies for CVE-2012-6431?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-83c3-qx27-2rwr",
"modified" : "2023-09-21T23:06:08Z",
"published" : "2022-05-17T05:17:03Z",
"aliases" : [ "CVE-2012-6431" ],
"summary" : "Symfony Allows URI Restrictions Bypass Via Double-Encoded String",
"details" : "On the Symfony 2.0.x version, there's a security issue that allows access to routes protected by a firewall even when the user is not logged in.\n\nBoth the Routing component and the Security component uses the path returned by `getPathInfo()` to match a Request. The `getPathInfo()` returns a decoded path, but the Routing component (`Symfony\\Component\\Routing\\Matcher\\UrlMatcher`) decodes the path a second time; whereas the Security component, `Symfony\\Component\\HttpFoundation\\RequestMatcher`, does not.\n\nThis difference causes Symfony 2.0 to be vulnerable to double encoding attacks.\n\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/http-foundation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/routing"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.19"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-6431"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/commit/55014a6841bec50046e8329a4835c160ac31a496"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/commit/8b2c17f80377582287a78e0b521497e039dd6b0d"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2012-6431.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/routing/CVE-2012-6431.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2012-6431.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2012-6431.yaml"
}, {
"type" : "WEB",
"url" : "https://symfony.com/blog/security-release-symfony-2-0-20-and-2-1-5-released"
}, {
"type" : "WEB",
"url" : "http://symfony.com/blog/security-release-symfony-2-0-20-and-2-1-5-released"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-15T23:43:25Z",
"nvd_published_at" : "2012-12-27T11:47:00Z"
}
}