CVE-2026-135801: Path Rules Enforced in Front of PHP Can Be Bypassed by Appending the Path to the Script Name

Published Nov 24, 2026
·
Updated

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 SCRIPTNAME 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: accesscontrol 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.

Affected Software

1 affected component
packagist/symfony/http-foundation

Event History

Nov 24, 2026
CVE Published
via MITRE·08:55 AM
Data Sourced
via MITRE·08:55 AM
DescriptionWeakness
Data Sourced
via NVD·09:17 AM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this bypass?

Applications are exposed when access restrictions for paths such as /admin are enforced in front of PHP, for example by an nginx location block, an Apache <Location> section, or a CDN or WAF rule. Symfony access_control rules and firewalls are not affected because they use the same path information as the router.

2

What request form is needed to bypass an affected front-end path rule?

An attacker can append the protected path directly to the front controller script name, such as /index.phpadmin for a rule targeting /admin. Encoded variants including /index%2Ephpadmin and /%69ndex.phpadmin can also work.

3

Are common Symfony nginx and Apache front-controller configurations affected?

The nginx configuration in Symfony documentation and the .htaccess file from symfony/apache-pack block /index.php/admin, but pass /index.phpadmin to the front controller. As a result, they do not prevent this bypass when a separate front-end rule protects /admin.

4

How can I tell whether the correction is present?

With the correction, the script name is stripped only when followed by /, ?, or the end of the URL. A request to /index.phpadmin should therefore have path info /index.phpadmin rather than being interpreted as /admin.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203