{"id":"CVE-2012-6431","aliases":[],"url":"https://o3.security/vulnerability/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","published":"2022-05-17T05:17:03Z","modified":"2024-12-03T06:08:10.253084Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"symfony/http-foundation","fixedVersion":"2.0.19"},{"ecosystem":"Packagist","name":"symfony/routing","fixedVersion":"2.0.19"},{"ecosystem":"Packagist","name":"symfony/security","fixedVersion":"2.0.19"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"2.0.19"}],"fix":{"url":"https://github.com/symfony/symfony/commit/55014a6841bec50046e8329a4835c160ac31a496","label":"symfony/symfony@55014a6"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2024-12-03T06:08:10.253084Z"}}