CVE-2012-6431
Symfony Allows URI Restrictions Bypass Via Double-Encoded String
Symfony 2.0.x before 2.0.20 does not process URL encoded data consistently within the Routing and Security components, which allows remote attackers to bypass intended URI restrictions via a doubly encoded string.
Exploit likelihood
What each source reports
NVD Score used
6.4
Symfony 2.0.x before 2.0.20 does not process URL encoded data consistently within the Routing and Security components, which allows remote attackers to bypass intended URI restrictions via a doubly encoded string.
- Record
CVE-2012-6431- CVSS 2.0
- 6.4 Medium
AV:N/AC:L/Au:N/C:P/I:P/A:N - Weakness
- CWE-264
- Updated
- 2026-11-02
CVE List No score
Symfony 2.0.x before 2.0.20 does not process URL encoded data consistently within the Routing and Security components, which allows remote attackers to bypass intended URI restrictions via a doubly encoded string.
- Record
CVE-2012-6431- Updated
- 2026-11-02
EUVDEUVD-2022-3093 No score
Symfony 2.0.x before 2.0.20 does not process URL encoded data consistently within the Routing and Security components, which allows remote attackers to bypass intended URI restrictions via a doubly encoded string.
- Record
EUVD-2022-3093- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-83c3-qx27-2rwr No score
Symfony Allows URI Restrictions Bypass Via Double-Encoded String
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.
Both 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.
This difference causes Symfony 2.0 to be vulnerable to double encoding attacks.
- Record
GHSA-83c3-qx27-2rwr- Weakness
- CWE-287
- Updated
- 2026-11-02
OSVGHSA-83c3-qx27-2rwr No score
Symfony Allows URI Restrictions Bypass Via Double-Encoded String
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.
Both 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.
This difference causes Symfony 2.0 to be vulnerable to double encoding attacks.
- Record
GHSA-83c3-qx27-2rwr- Weakness
- CWE-287
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
symfony/http-foundationPackagist |
2.0.0 up to 2.0.19 | 2.0.19 |
symfony/routingPackagist |
2.0.0 up to 2.0.19 | 2.0.19 |
symfony/securityPackagist |
2.0.0 up to 2.0.19 | 2.0.19 |
symfony/symfonyPackagist |
2.0.0 up to 2.0.19 | 2.0.19 |
symfony/http-foundationPackagist |
2.0.0 up to 2.0.19, plus listed versions 2.0.42.0.52.0.62.0.7v2.0.10 Show 8 moreShow lessv2.0.12v2.0.13v2.0.14v2.0.15v2.0.16v2.0.17v2.0.18v2.0.9 |
2.0.19 |
symfony/routingPackagist |
2.0.0 up to 2.0.19, plus listed versions 2.0.42.0.52.0.62.0.7v2.0.10 Show 8 moreShow lessv2.0.12v2.0.13v2.0.14v2.0.15v2.0.16v2.0.17v2.0.18v2.0.9 |
2.0.19 |
symfony/securityPackagist |
2.0.0 up to 2.0.19, plus listed versions 2.0.42.0.52.0.62.0.7v2.0.10 Show 8 moreShow lessv2.0.12v2.0.13v2.0.14v2.0.15v2.0.16v2.0.17v2.0.18v2.0.9 |
2.0.19 |
symfony/symfonyPackagist |
2.0.0 up to 2.0.19, plus listed versions 2.0.42.0.52.0.62.0.7v2.0.10 Show 9 moreShow lessv2.0.11v2.0.12v2.0.13v2.0.14v2.0.15v2.0.16v2.0.17v2.0.18v2.0.9 |
2.0.19 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2012-6431 is a medium vulnerability (CVSS 6.4) in Sensiolabs Symfony, published December 27, 2012. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.88%, the 79th percentile. Fixed in symfony/http-foundation 2.0.19.
References
symfony.com/blog/security-release-symfony-2-0-20-and-2-1-5-released
nvd.nist.gov/vuln/detail/CVE-2012-6431
github.com/symfony/symfony/commit/55014a6841bec50046e8329a4835c160ac31a496
github.com/symfony/symfony/commit/8b2c17f80377582287a78e0b521497e039dd6b0d
github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2012-6431.yaml
github.com/FriendsOfPHP/security-advisories/blob/master/symfony/routing/CVE-2012-6431.yaml
github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2012-6431.yaml
github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2012-6431.yaml
github.com/advisories/GHSA-83c3-qx27-2rwr