CVE-2025-64500·PHP vulnerability
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 `/`.
- Severity
- high
- Software
- PHP
- Fixed in
- 7.3.7
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 1.3% — higher than 68% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 7.0.0
Until: 7.3.7
Fixed in: 7.3.7
How to fix this CVE
Update Symfony's HttpFoundation component to version 7.3.7 or later to resolve the PATH_INFO parsing vulnerability. This fix ensures that URL paths are consistently normalized to begin with a forward slash, preventing authorization bypass attacks that rely on malformed path interpretation. Administrators should also review access control rules that depend on path prefixes to ensure they remain effective after the update.
sudo dnf update php-symfony-http-foundationDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
GET|POST requests with malformed PATH_INFO values that lack a leading forward slash, or requests attempting to access paths through encoded or normalized variations to bypass authorization checks (e.g., PATH_INFO=admin instead of PATH_INFO=/admin)WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Configure WAF rules to enforce that all incoming request paths normalize to start with a forward slash, and reject or rewrite requests with PATH_INFO values that don't conform to this pattern. Implement path normalization rules before evaluating authorization policies.How to check if you are affected
- Step 1: Check installed Symfony version with: composer show symfony/http-foundation | grep Version
- Step 2: Verify if HttpFoundation is actively used in your application by checking composer.json and autoload configuration for symfony/http-foundation
- Step 3: Search web server access logs for requests with unusual PATH_INFO values that don't start with '/' or contain path traversal sequences: grep -E 'PATH_INFO=[^/]|\.\./' /var/log/apache2/access.log
- Step 4: After patching, confirm the updated version with: composer show symfony/http-foundation | grep Version and restart the PHP application service
FAQ
What is CVE-2025-64500?
CVE-2025-64500 is a vulnerability in Symfony's HttpFoundation component where the Request class incorrectly parses PATH_INFO values, allowing paths that do not start with a forward slash. This can enable attackers to bypass authorization rules that assume all paths begin with '/'.
Is CVE-2025-64500 being actively exploited?
No, CVE-2025-64500 is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits have been released, though the vulnerability should still be patched promptly.
What versions of PHP are affected by CVE-2025-64500?
Symfony versions 7.0.0 through 7.3.6 are affected. The vulnerability was introduced in Symfony 2.0.0 and persists through multiple major versions; patches are available for versions 5.4.50, 6.4.29, and 7.3.7 or later.
How do I check if my server is vulnerable to CVE-2025-64500?
Run 'composer show symfony/http-foundation' in your project root and verify the version is 7.3.7 or later. If the version is 7.3.6 or earlier, your installation is vulnerable.
Does Defensia detect CVE-2025-64500?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP or Symfony HttpFoundation is installed on a monitored server, CVE-2025-64500 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2025-64500.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2025-64500.yaml
- https://github.com/symfony/symfony/commit/9962b91b12bb791322fa73836b350836b6db7cac
- https://github.com/symfony/symfony/security/advisories/GHSA-3rg7-wf37-54rm
- https://symfony.com/blog/cve-2025-64500-incorrect-parsing-of-path-info-can-lead-to-limited-authorization-bypass
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-64500. Free for 1 server.
Get started free