CVE-2012-6431: Medium severity symfony vulnerability

Published Mar 19, 2012
·
Updated

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.

Other sources

Routes behind a firewall are accessible even when not logged in

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.

MITRE

Affected Software

28 affected componentsFixes available
composer/symfony/symfony>=2.0.0, <2.0.19
composer/symfony/security>=2.0.0, <2.0.19
composer/symfony/http-foundation>=2.0.0, <2.0.19
composer/symfony/routing>=2.0.0, <2.0.19
composer/symfony/symfony>=2.0.0<2.0.19
2.0.19
composer/symfony/security>=2.0.0<2.0.19
2.0.19
composer/symfony/routing>=2.0.0<2.0.19
2.0.19
composer/symfony/http-foundation>=2.0.0<2.0.19
2.0.19
SensioLabs Symfony=2.0.0
SensioLabs Symfony=2.0.1
SensioLabs Symfony=2.0.2
SensioLabs Symfony=2.0.3
SensioLabs Symfony=2.0.4
SensioLabs Symfony=2.0.5
SensioLabs Symfony=2.0.6
SensioLabs Symfony=2.0.7
SensioLabs Symfony=2.0.8
SensioLabs Symfony=2.0.9
SensioLabs Symfony=2.0.10
SensioLabs Symfony=2.0.11
SensioLabs Symfony=2.0.12
SensioLabs Symfony=2.0.13
SensioLabs Symfony=2.0.14
SensioLabs Symfony=2.0.15
SensioLabs Symfony=2.0.16
SensioLabs Symfony=2.0.17
SensioLabs Symfony=2.0.18
SensioLabs Symfony=2.0.19

Event History

Mar 19, 2012
Advisory Published
03:59 PM
Dec 27, 2012
CVE Published
via MITRE·11:00 AM
Data Sourced
via MITRE·11:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2012-6431?

CVE-2012-6431 has been assigned a medium severity rating as it allows unauthorized access to protected routes.

2

How do I fix CVE-2012-6431?

To mitigate CVE-2012-6431, upgrade Symfony to version 2.0.20 or later.

3

What versions are affected by CVE-2012-6431?

CVE-2012-6431 affects Symfony versions from 2.0.0 to 2.0.19.

4

What components are impacted by CVE-2012-6431?

CVE-2012-6431 impacts the Routing component and the Security component of Symfony.

5

Can CVE-2012-6431 be exploited remotely?

Yes, CVE-2012-6431 can be exploited remotely, allowing unauthorized access without user login.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203