# GHSA-3H27-HJV7-FQJX: Path Rules Enforced in Front of PHP Can Be Bypassed by Appending the Path to the Script Name

- Database: GitHub
- Severity: low (stated by ghsa, no CVSS score)
- Published: 2026-11-04
- Modified: 2026-11-24

## Tracked as

- [CVE-2026-135801](https://cve.now/CVE-2026-135801.md): Symfony authentication bypass in path-based access rules

## Affected versions

- symfony/http-foundation (Packagist): from 5.4.50, fixed in 5.4.56
- symfony/http-foundation (Packagist): from 6.4.29, fixed in 6.4.50
- symfony/http-foundation (Packagist): from 7.3.7, fixed in 7.4.23
- symfony/http-foundation (Packagist): from 8, fixed in 8.1.11
- symfony/symfony (Packagist): from 5.4.50, fixed in 5.4.56
- symfony/symfony (Packagist): from 6.4.29, fixed in 6.4.50
- symfony/symfony (Packagist): from 7.3.7, fixed in 7.4.23
- symfony/symfony (Packagist): from 8, fixed in 8.1.11

## Description

### Description

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.

### Resolution

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`.

The patch for this issue is available [here](https://github.com/symfony/symfony/commit/e256536ee7b57a45d69177743c86367e51551122) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).

### Credits

We would like to thank Nicolas Grekas for reporting the issue and Jack Worman for providing the fix.

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-3h27-hjv7-fqjx

Page: https://cve.now/GHSA-3H27-HJV7-FQJX

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
