# CVE-2012-6431: Symfony Allows URI Restrictions Bypass Via Double-Encoded String

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.4
- **CVSS:** 6.4 (v2.0, NVD) `AV:N/AC:L/Au:N/C:P/I:P/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Authentication: None; Confidentiality impact: Partial; Integrity impact: Partial; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.88% (percentile 80, 2026-11-26)
- **CWE:** CWE-264
- **Aliases:** GHSA-83c3-qx27-2rwr
- **Published:** 2012-12-27T11:00:00.000Z
- **Modified:** 2026-06-16T23:48:05.447Z

## Who should check

- Projects that depend on Packagist package symfony/http-foundation (\>= 2.0.0, \< 2.0.19)
- Projects that depend on Packagist package symfony/routing (\>= 2.0.0, \< 2.0.19)
- Projects that depend on Packagist package symfony/security (\>= 2.0.0, \< 2.0.19)
- Projects that depend on Packagist package symfony/symfony (\>= 2.0.0, \< 2.0.19)
- Anyone running n/a (versions: see the vendor advisory)

## Description

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.

## Affected and fixed versions

- Packagist `symfony/http-foundation`: affected \>= 2.0.0, \< 2.0.19; fixed 2.0.19 (osv)
- Packagist `symfony/routing`: affected \>= 2.0.0, \< 2.0.19; fixed 2.0.19 (osv)
- Packagist `symfony/security`: affected \>= 2.0.0, \< 2.0.19; fixed 2.0.19 (osv)
- Packagist `symfony/symfony`: affected \>= 2.0.0, \< 2.0.19; fixed 2.0.19 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade symfony/http-foundation to 2.0.19 or later.
- Upgrade symfony/routing to 2.0.19 or later.
- Upgrade symfony/security to 2.0.19 or later.
- Upgrade symfony/symfony to 2.0.19 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2012-6431. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2012-6431.md
Affected: symfony/http-foundation >= 2.0.0, < 2.0.19; symfony/routing >= 2.0.0, < 2.0.19; symfony/security >= 2.0.0, < 2.0.19; symfony/symfony >= 2.0.0, < 2.0.19
Fixed in: 2.0.19

Steps:
1. Search this machine and project for symfony/http-foundation (Packagist), symfony/routing (Packagist), symfony/security (Packagist), symfony/symfony (Packagist), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2012-6431 being exploited?

There is no confirmed exploitation: CVE-2012-6431 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.88% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2012-6431?

Medium: CVSS 6.4 (v2.0, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2012-6431?

symfony/http-foundation \>= 2.0.0, \< 2.0.19; symfony/routing \>= 2.0.0, \< 2.0.19; symfony/security \>= 2.0.0, \< 2.0.19; symfony/symfony \>= 2.0.0, \< 2.0.19.

### Is there a fix for CVE-2012-6431?

Yes. Fixed in 2.0.19. Upgrade symfony/http-foundation to 2.0.19 or later. Upgrade symfony/routing to 2.0.19 or later. Upgrade symfony/security to 2.0.19 or later. Upgrade symfony/symfony to 2.0.19 or later.

### How do I check if I'm affected by CVE-2012-6431?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <http://symfony.com/blog/security-release-symfony-2-0-20-and-2-1-5-released>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2012-6431>
- patch: <https://github.com/symfony/symfony/commit/55014a6841bec50046e8329a4835c160ac31a496>
- patch: <https://github.com/symfony/symfony/commit/8b2c17f80377582287a78e0b521497e039dd6b0d>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2012-6431.yaml>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/routing/CVE-2012-6431.yaml>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2012-6431.yaml>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2012-6431.yaml>
- other: <https://symfony.com/blog/security-release-symfony-2-0-20-and-2-1-5-released>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2012-6431>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-83c3-qx27-2rwr> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2012-6431> · JSON: <https://flawdb.com/api/v1/entries/CVE-2012-6431>
