Every CVE Search/ Get API key

CVE-2012-6431

Symfony Allows URI Restrictions Bypass Via Double-Encoded String

6.4 MediumFix available

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

1.88%Up 0.8 points since Feb 4, 2022
90%50%10%1%

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 MediumAV: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

Affected packages
PackageAffectedFixed
symfony/http-foundation
Packagist
2.0.0 up to 2.0.19
2.0.19
symfony/routing
Packagist
2.0.0 up to 2.0.19
2.0.19
symfony/security
Packagist
2.0.0 up to 2.0.19
2.0.19
symfony/symfony
Packagist
2.0.0 up to 2.0.19
2.0.19
symfony/http-foundation
Packagist
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 less
v2.0.12v2.0.13v2.0.14v2.0.15v2.0.16v2.0.17v2.0.18v2.0.9
2.0.19
symfony/routing
Packagist
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 less
v2.0.12v2.0.13v2.0.14v2.0.15v2.0.16v2.0.17v2.0.18v2.0.9
2.0.19
symfony/security
Packagist
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 less
v2.0.12v2.0.13v2.0.14v2.0.15v2.0.16v2.0.17v2.0.18v2.0.9
2.0.19
symfony/symfony
Packagist
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 less
v2.0.11v2.0.12v2.0.13v2.0.14v2.0.15v2.0.16v2.0.17v2.0.18v2.0.9
2.0.19

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

MoveEnter Open