Symfony's incorrect parsing of PATH_INFO can lead to limited authorization bypass
Description
Published to the GitHub Advisory Database
Nov 12, 2025
Reviewed
Nov 12, 2025
Published by the National Vulnerability Database
Nov 12, 2025
Last updated
Nov 15, 2025
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