symfony: Use of Non-Canonical URL Paths for Authorization Decisions
CVE-2025-64500 is a high-severity use of non-canonical URL paths for authorization decisions vulnerability in symfony, with a CVSS 3.1 base score of 7.3 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected symfony versions: >= 2.0.0, < 5.4.50; >= 6.0.0, < 6.4.29; >= 7.0.0, < 7.3.7. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 1.41% chance of exploitation within 30 days, higher than 73% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Httpfoundation to 5.4.50 or 6.4.29 or 7.3.7, whichever matches your release line, or a later version.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Symfony | symfony | >= 2.0.0, < 5.4.50; >= 6.0.0, < 6.4.29; >= 7.0.0, < 7.3.7 | Not stated |
| Sensiolabs | Httpfoundation | 2.0.0 up to, but not including, 5.4.50; 6.0.0 up to, but not including, 6.4.29; 7.0.0 up to, but not including, 7.3.7 | 5.4.50, 6.4.29, 7.3.7 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- LowSome restricted data can be read.
- Integrity
- LowLimited modification of data is possible.
- Availability
- LowPerformance or availability is reduced.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L. Scored by CNA (github.com).
Official description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Symfony's HttpFoundation component defines an object-oriented layer for the HTTP specification. Starting in version 2.0.0 and prior to version 5.4.50, 6.4.29, and 7.3.7, the `Request` class improperly interprets some `PATH_INFO` in a way that leads to representing some URLs with a path that doesn't start with a `/`. This can allow bypassing some access control rules that are built with this `/`-prefix assumption. Starting in versions 5.4.50, 6.4.29, and 7.3.7, the `Request` class now ensures that URL paths always start with a `/`.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Use of Non-Canonical URL Paths for Authorization Decisions
The product defines policy namespaces and makes authorization decisions based on the assumption that a URL is canonical.
How developers prevent this class of flaw
- Make access control policy based on path information in canonical form, with all alternate encodings rejected (which can be accomplished by a default deny rule). Consider very restrictive regular expressions to validate that the path is in the expected form. Reject all alternate path encodings that are not in the expected canonical form.
More Use of Non-Canonical URL Paths for Authorization Decisions vulnerabilities (CWE-647)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
Patches and release notes
Third-party and government advisories
Other vulnerabilities in symfony
- 8.6 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 9.8 Critical severity
- 7.5 High severity
Recent Use of Non-Canonical URL Paths for Authorization Decisions vulnerabilities
- 9.8 Critical severity
Spotted an error? Tell us.