# GHSA-3h27-hjv7-fqjx: Path Rules Enforced in Front of PHP Can Be Bypassed by Appending the Path to the Script Name

DevFeed: [GHSA-3h27-hjv7-fqjx: Path Rules Enforced in Front of PHP Can Be Bypassed by Appending the Path to the Script Name](<https://devfeed.tech/articles/ghsa-3h27-hjv7-fqjx-path-rules-enforced-in-front-of-php-can-be-bypassed-by-appending-the-path-to-the-script-name-116457.md>)

Original publisher: [Read original article](<https://symfony.com/blog/ghsa-3h27-hjv7-fqjx-path-rules-enforced-in-front-of-php-can-be-bypassed-by-appending-the-path-to-the-script-name>)

Author: Fabien Potencier

Published: 2026-11-04T11:54:00Z

Content type: release

Language: en

Sources: [Symfony](<https://devfeed.tech/sources/symfony-blog.md>)

Topics: [Symfony](<https://devfeed.tech/topics/symfony.md>), [frontend security](<https://devfeed.tech/topics/frontend-security.md>)

Tags: [admin](<https://devfeed.tech/tags/admin.md>), [apache](<https://devfeed.tech/tags/apache.md>), [block](<https://devfeed.tech/tags/block.md>), [branch](<https://devfeed.tech/tags/branch.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [cve](<https://devfeed.tech/tags/cve.md>), [foundation](<https://devfeed.tech/tags/foundation.md>), [http](<https://devfeed.tech/tags/http.md>), [location](<https://devfeed.tech/tags/location.md>), [nginx](<https://devfeed.tech/tags/nginx.md>), [patch](<https://devfeed.tech/tags/patch.md>), [php](<https://devfeed.tech/tags/php.md>), [request](<https://devfeed.tech/tags/request.md>), [route](<https://devfeed.tech/tags/route.md>), [router](<https://devfeed.tech/tags/router.md>), [rules](<https://devfeed.tech/tags/rules.md>), [script](<https://devfeed.tech/tags/script.md>), [security](<https://devfeed.tech/tags/security.md>), [symfony](<https://devfeed.tech/tags/symfony.md>), [waf](<https://devfeed.tech/tags/waf.md>)

## AI overview

Affected Symfony HTTP Foundation releases strip a script name such as `/index.php` even when it is only the beginning of a longer path segment. With `SCRIPT_NAME=/index.php`, `/index.phpadmin` can therefore be routed as `/admin`; encoded variants also work. Symfony `access_control` and firewall rules use the same path info as the router and are not affected, but front-of-PHP protections such as nginx or Apache path rules and CDN or WAF rules on `/admin` can be bypassed. The issue affects versions 5.4.50-5.4.55, 6.4.29-6.4.49, 7.3.7-7.4.22, and 8.0 through 8.1.10. The fix strips the script name only when followed by `/`, `?`, or the end of the URL; fixed releases are 5.4.56, 6.4.50, 7.4.23, and 8.1.11.

## Source excerpt

Affected versions Symfony HTTP Foundation versions >=5.4.50, <5.4.56, >=6.4.29, <6.4.50, >=7.3.7, <7.4.23, >=8, <8.1.11 are affected by this security issue. The issue has been fixed in Symfony HTTP Foundation 5.4.56, 6.4.50, 7.4.23,...