Path Rules Enforced in Front of PHP Can Be Bypassed by Appending the Path to the Script Name

State
Published
Severity
7.2 High
Published
Nov 24, 2026
Updated
Nov 25, 2026
Reserved
Nov 24, 2026

Read the record on cve.org

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.

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.

ProductVersions
symfony/http-foundation Symfony5.4.50 to before 5.4.56 Affected6.4.29 to before 6.4.50 Affected7.3.7 to before 7.4.23 Affected8.0.0 to before 8.1.11 Affected
symfony/symfony Symfony5.4.50 to before 5.4.56 Affected6.4.29 to before 6.4.50 Affected7.3.7 to before 7.4.23 Affected8.0.0 to before 8.1.11 Affected

Weaknesses

  • CWE-288 Authentication Bypass Using an Alternate Path or Channel
  • CWE-436 Interpretation Conflict

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.