CVE-2026-135802
Last modified
CVE-2026-135802 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. When Request::getBaseUrl() does not find the script name at the start of the request URI, it looks for it further into the path. This supports web servers that rewrite every URL to a front controller in a subdirectory. EPSS estimates a 0.35% chance of exploitation in the next 30 days.
Description
When Request::getBaseUrl() does not find the script name at the start of the request URI, it looks for it further into the path. This supports web servers that rewrite every URL to a front controller in a subdirectory. The base URL then kept everything before the script name, and the client chooses that part. A request URI starting with // or /\ made the base URL start with a host. With SCRIPT_NAME=/public/index.php, a request for //evil.example/public/index.php/login is routed to /login, with the base URL //evil.example/public/index.php and the base path //evil.example/public. The URLs generated for that page then point to evil.example: - links built with path() and the actions of forms, so a login form sends the credentials of the user to evil.example; - redirects to generated URLs, such as the ones of redirectToRoute(); - assets referenced with a relative path through asset(), so the page can load scripts from evil.example. The attacker has to make a user follow a crafted link, such as https://app.example//evil.example/public/index.php/login. framework.trusted_hosts does not help, since the host of the request is the real one. Applications are affected when their front controller is in a subdirectory and the web server sends it URIs that do not start with that directory. A .htaccess file at the root of the project that rewrites every URL to public/ does that, for instance. Applications are also affected when the web server sets SCRIPT_NAME to the path of the request. Some nginx configurations do that when they send every request to the front controller without fastcgi_split_path_info. php -S does it too, with a router script outside the document root. A request for /\evil.example/index.php then gets the base URL /\evil.example/index.php, which browsers read as a link to evil.example. The configurations recommended in the Symfony documentation are not affected. Request::getBaseUrl() now returns an empty base URL when the request URI starts with // or /\.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Symfony | symfony/http-foundation | < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11 |
| Symfony | symfony/symfony | < 5.4.56; >= 6.0.0, < 6.4.50; >= 7.0.0, < 7.4.23; >= 8.0.0, < 8.1.11 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-135802?
How severe is CVE-2026-135802?
How do I fix CVE-2026-135802?
How Strix Helps
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-135798A security flaw has been discovered in Volans NGFW Next-Gene…7.3
- CVE-2026-135799A vulnerability was detected in flowable flowable-engine 8.0…4.7
- CVE-2026-1358Airleader Master versions 6.381 and prior allow for file upl…9.8
- CVE-2026-13580A security vulnerability has been detected in Edimax EW-7478…8.8
- CVE-2026-135800A flaw has been found in hiyouga LLaMA-Factory up to 0.9.5. …7.3
- CVE-2026-135801Since the fix for CVE-2025-64500, Request::getPathInfo() str…7.2
- CVE-2026-135803Most methods of Symfony\Component\Filesystem\Path rely on Pa…9.1
- CVE-2026-135804The fix for CVE-2026-45756 lowers pcre.backtrack_limit to 10…7.5
- CVE-2026-135806Improper Neutralization of Script-Related HTML Tags in a Web…5.3
- CVE-2026-135807Missing Authorization vulnerability in Brainstorm Force Cart…5.3
- CVE-2026-135808Improper Neutralization of Input During Web Page Generation …7.1
- CVE-2026-135809A vulnerability has been found in javahuang SurveyKing up to…5.3
Are you affected by CVE-2026-135802?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
