CVE-2024-50340
Ability to change environment from query in symfony/runtime
HIGH 7.3
At a glance
- Source
- NVD
- EPSS
- EPSS 63.60 % · percentile 99 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Deferred
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.
Weaknesses (CWE)
- CWE-74 — Improper Neutralization of Special Elements in Output Used by a Downstream Component
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L | GitHub_M |
| CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L | NVD · security-advisories@github.com (Secondary) |
Advisories
- GHSA-x8vp-gf4q-mw5j — Symfony allows changing the environment through a query
European references
- ENISA EUVD · EUVD-2024-3330
- GCVE · GCVE-0-2024-50340
CERT-FR advisories
- CERTFR-2024-AVI-0948 — Multiples vulnérabilités dans les produits Symfony · cert.ssi.gouv.fr
Affected products
| Product | Versions |
|---|---|
| symfony · symfony | affected < 5.4.46 ; affected >= 6.0.0, < 6.4.14 ; affected >= 7.0.0, < 7.1.7 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |