7.3high
Symfony's incorrect parsing of PATH_INFO can lead to limited authorization bypass
- Severity
- 7.3high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 3.37% (higher than 89% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3rg7-wf37-54rm
Description
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Symfony's HttpFoundation component defines an object-oriented layer for the HTTP specification. Starting in version 2.0.0 and prior to version 5.4.50, 6.4.29, and 7.3.7, 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. Starting in versions 5.4.50, 6.4.29, and 7.3.7, the `Request` class now ensures that URL paths always start with a `/`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| symfony symfony | >= 2.0.0, < 5.4.50, >= 6.0.0, < 6.4.29, >= 7.0.0, < 7.3.7 | CVE List |
| symfony/http-foundation (Packagist) | before 5.4.50, from 6.0.0 before 6.4.29, from 7.0.0 before 7.3.7 | GitHub Advisory Database |
| symfony/symfony (Packagist) | from 2.0.0 before 5.4.50, from 6.0.0 before 6.4.29, from 7.0.0 before 7.3.7 | GitHub Advisory Database |
| sensiolabs httpfoundation | from 2.0.0 before 5.4.50, from 6.0.0 before 6.4.29, from 7.0.0 before 7.3.7 | NVD |
| sensiolabs symfony | from 2.0.0 before 5.4.50, from 6.0.0 before 6.4.29, from 7.0.0 before 7.3.7 | NVD |
All scores
| GitHub_M | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Symfony's HttpFoundation component defines an object-oriented layer for the HTTP specification. Starting in version 2.0.0 and prior to version 5.4.50, 6.4.29, and 7.3.7, 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. Starting in versions 5.4.50, 6.4.29, and 7.3.7, the `Request` class now ensures that URL paths always start with a `/`.
GitHub Advisory Database
Description
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.
NVD (es)
Symfony es un framework PHP para aplicaciones web y de consola y un conjunto de componentes PHP reutilizables. El componente HttpFoundation de Symfony define una capa orientada a objetos para la especificación HTTP. A partir de la versión 2.0.0 y versiones anteriores a la 5.4.50, 6.4.29 y 7.3.7, la clase 'Request' interpreta incorrectamente algunos 'PATH_INFO' de una manera que lleva a representar algunas URL con una ruta que no comienza con un '/'. Esto puede permitir eludir algunas reglas de control de acceso que se construyen con esta suposición de prefijo '/'. A partir de las versiones 5.4.50, 6.4.29 y 7.3.7, la clase 'Request' ahora asegura que las rutas de URL siempre comiencen con un '/'.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-64500 changed 2025-11-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3rg7-wf37-54rm changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-64500 changed 2026-10-19 | Public domain |