CVE-2026-135801 Path Rules Enforced in Front of PHP Can Be Bypassed by Appending the Path to the Script Name
symfony: no CVSS score yet.
Since the fix for CVE-2025-64500, Request::getPathInfo() strips the script name from the start of the URL. It does so even when the script name is only the start of a longer path segment. With SCRIPT_NAME set to /index.php, a request to /index.phpadmin gets the path info /admin and is routed like /admin. Encoded spellings such as /index%2Ephpadmin or /%69ndex.phpadmin work too. Before that fix, the path info was admin, which no route matched.
Rules enforced by Symfony are not affected: access_control and firewalls read the same path info as the router. Rules enforced in front of PHP are. The nginx configuration of the Symfony documentation and the .htaccess file of symfony/apache-pack make /index.php/admin unreachable, but they pass /index.phpadmin to the front controller. So a location /admin block in nginx, a <Location /admin> section in Apache, or a CDN or WAF rule on /admin can be bypassed.
The script name is now stripped only when it is followed by /, ? or the end of the URL. A request to /index.phpadmin gets the path info /index.phpadmin.
- OWASP Top 10
- A06:2025 Insecure Design, A07:2025 Authentication Failures
- Published
- Assigned by
- Symfony (CNA)
- NVD analysis
- Awaiting analysis
- Record from
- the NVD, synced
Ask an AI about this CVE
Show the prompt
Explain CVE-2026-135801 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-135801?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-135801?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-135801 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| symfony/http-foundation | from 5.4.50 before 5.4.56 |
| symfony/http-foundation | from 6.4.29 before 6.4.50 |
| symfony/http-foundation | from 7.3.7 before 7.4.23 |
| symfony/http-foundation | from 8.0.0 before 8.1.11 |
| symfony/symfony | from 5.4.50 before 5.4.56 |
| symfony/symfony | from 6.4.29 before 6.4.50 |
| symfony/symfony | from 7.3.7 before 7.4.23 |
| symfony/symfony | from 8.0.0 before 8.1.11 |
Attack patterns (CAPEC)
- CAPEC-127 Directory Indexing Likelihood: High · Severity: Medium
- CAPEC-665 Exploitation of Thunderbolt Protection Flaws Likelihood: Low · Severity: Very High
- CAPEC-34 HTTP Response Splitting Likelihood: Medium · Severity: High
- CAPEC-105 HTTP Request Splitting Likelihood: Medium · Severity: High
- CAPEC-273 HTTP Response Smuggling Likelihood: Medium · Severity: High
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.