You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Symfony's incorrect parsing of PATH_INFO can lead to limited authorization bypass
High severity
GitHub Reviewed
Published
Nov 12, 2025
in
symfony/symfony
•
Updated Nov 15, 2025
The Request class improperly interprets some PATH_INFO in a way that leads to representing some URLs with a path that doesn't start with a /. This can allow bypassing some access control rules that are built with this /-prefix assumption.
Resolution
The Request class now ensures that URL paths always start with a /.
The patch for this issue is available here for branch 5.4.
Credits
We would like to thank Andrew Atkinson for discovering the issue, Chris Smith for reporting it and Nicolas Grekas for providing the fix.
The product defines policy namespaces and makes authorization decisions based on the assumption that a URL is canonical. This can allow a non-canonical URL to bypass the authorization.
Learn more on MITRE.
Description
The
Requestclass improperly interprets somePATH_INFOin a way that leads to representing some URLs with a path that doesn't start with a/. This can allow bypassing some access control rules that are built with this/-prefix assumption.Resolution
The
Requestclass now ensures that URL paths always start with a/.The patch for this issue is available here for branch 5.4.
Credits
We would like to thank Andrew Atkinson for discovering the issue, Chris Smith for reporting it and Nicolas Grekas for providing the fix.
References