7.3high
Ability to change environment from query in symfony/runtime
- Severity
- 7.3high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 61.8% (higher than 99% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-x8vp-gf4q-mw5j
Description
symfony/runtime is a module for the Symphony PHP framework which enables decoupling PHP applications from global state. When the `register_argv_argc` php directive is set to `on` , and users call any URL with a special crafted query string, they are able to change the environment or debug mode used by the kernel when handling the request. As of versions 5.4.46, 6.4.14, and 7.1.7 the `SymfonyRuntime` now ignores the `argv` values for non-SAPI PHP runtimes. All users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| symfony symfony | < 5.4.46, >= 6.0.0, < 6.4.14, >= 7.0.0, < 7.1.7 | CVE List |
| sensiolabs symfony | before 5.4.46, from 6.0.0 before 6.4.14, from 7.0.0 before 7.1.7 | CVE List |
| symfony/runtime (Packagist) | from 5.3.0 before 5.4.46, from 6.0.0 before 6.4.14, from 7.0.0 before 7.1.7 | GitHub Advisory Database |
| symfony/symfony (Packagist) | from 5.3.0 before 5.4.46, from 6.0.0 before 6.4.14, from 7.0.0 before 7.1.7 | GitHub Advisory Database |
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.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N |
Classification
What each source says
CVE List
symfony/runtime is a module for the Symphony PHP framework which enables decoupling PHP applications from global state. When the `register_argv_argc` php directive is set to `on` , and users call any URL with a special crafted query string, they are able to change the environment or debug mode used by the kernel when handling the request. As of versions 5.4.46, 6.4.14, and 7.1.7 the `SymfonyRuntime` now ignores the `argv` values for non-SAPI PHP runtimes. All users are advised to upgrade. There are no known workarounds for this vulnerability.
GitHub Advisory Database
Description
When the register_argc_argv php directive is set to on , and users call any URL with a special crafted query string, they are able to change the environment or debug mode used by the kernel when handling the request.
Resolution
The SymfonyRuntime now ignores the argv values for non-cli SAPIs PHP runtimes
The patch for this issue is available here for branch 5.4.
Credits
We would like to thank Vladimir Dusheyko for reporting the issue and Wouter de Jong for providing the fix.
NVD (es)
symfony/runtime es un módulo para el framework PHP Symphony que permite desacoplar las aplicaciones PHP del estado global. Cuando la directiva php `register_argv_argc` está establecida en `on` y los usuarios llaman a cualquier URL con una cadena de consulta especialmente manipulada, pueden cambiar el entorno o el modo de depuración utilizado por el núcleo al procesar la solicitud. A partir de las versiones 5.4.46, 6.4.14 y 7.1.7, `SymfonyRuntime` ahora ignora los valores `argv` para los entornos de ejecución PHP que no sean SAPI. Se recomienda a todos los usuarios que actualicen. No existen workarounds para esta vulnerabilidad.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-50340 changed 2024-11-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x8vp-gf4q-mw5j changed 2024-11-07 | CC-BY-4.0 |
| NVD | CVE-2024-50340 changed 2026-06-17 | Public domain |