Ability to change environment from query in symfony/runtime
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| symfony | symfony | before 5.4.46; 6.0.0 to before 6.4.14; 7.0.0 to before 7.1.7 | 5.4.46, 6.4.14, 7.1.7 | Patch available | CNA |
| — | symfony/runtime (Packagist) | 5.3.0 to before 5.4.46 | 5.4.46 | Patch available | GHSA-x8vp-gf4q-mw5j |
| — | symfony/runtime (Packagist) | 6.0.0 to before 6.4.14 | 6.4.14 | Patch available | GHSA-x8vp-gf4q-mw5j |
| — | symfony/runtime (Packagist) | 7.0.0 to before 7.1.7 | 7.1.7 | Patch available | GHSA-x8vp-gf4q-mw5j |
| — | symfony/symfony (Packagist) | 5.3.0 to before 5.4.46 | 5.4.46 | Patch available | GHSA-x8vp-gf4q-mw5j |
| — | symfony/symfony (Packagist) | 6.0.0 to before 6.4.14 | 6.4.14 | Patch available | GHSA-x8vp-gf4q-mw5j |
| — | symfony/symfony (Packagist) | 7.0.0 to before 7.1.7 | 7.1.7 | Patch available | GHSA-x8vp-gf4q-mw5j |
- symfony Vendorsymfony Affected before 5.4.46; 6.0.0 to before 6.4.14; 7.0.0 to before 7.1.7 Fixed in 5.4.46, 6.4.14, 7.1.7 Patch available CNA
- symfony/runtime (Packagist) Vendor— Affected 5.3.0 to before 5.4.46 Fixed in 5.4.46 Patch available GHSA-x8vp-gf4q-mw5j
- symfony/runtime (Packagist) Vendor— Affected 6.0.0 to before 6.4.14 Fixed in 6.4.14 Patch available GHSA-x8vp-gf4q-mw5j
- symfony/runtime (Packagist) Vendor— Affected 7.0.0 to before 7.1.7 Fixed in 7.1.7 Patch available GHSA-x8vp-gf4q-mw5j
- symfony/symfony (Packagist) Vendor— Affected 5.3.0 to before 5.4.46 Fixed in 5.4.46 Patch available GHSA-x8vp-gf4q-mw5j
- symfony/symfony (Packagist) Vendor— Affected 6.0.0 to before 6.4.14 Fixed in 6.4.14 Patch available GHSA-x8vp-gf4q-mw5j
- symfony/symfony (Packagist) Vendor— Affected 7.0.0 to before 7.1.7 Fixed in 7.1.7 Patch available GHSA-x8vp-gf4q-mw5j
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* | — | — | sensiolabs |
- cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* Versions — — ·sensiolabs
Remediation
- Fix · CNA symfony (symfony) Fixed in 5.4.46, 6.4.14, 7.1.7
- Fix · GHSA-x8vp-gf4q-mw5j symfony/runtime (Packagist) Fixed in 5.4.46 Advisory →
- Fix · GHSA-x8vp-gf4q-mw5j symfony/runtime (Packagist) Fixed in 6.4.14 Advisory →
- Fix · GHSA-x8vp-gf4q-mw5j symfony/runtime (Packagist) Fixed in 7.1.7 Advisory →
- Fix · GHSA-x8vp-gf4q-mw5j symfony/symfony (Packagist) Fixed in 5.4.46 Advisory →
- Fix · GHSA-x8vp-gf4q-mw5j symfony/symfony (Packagist) Fixed in 6.4.14 Advisory →
- Fix · GHSA-x8vp-gf4q-mw5j symfony/symfony (Packagist) Fixed in 7.1.7 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-50340
- 2026-10-03 Alias added: GHSA-x8vp-gf4q-mw5j
References
Other 6
- https://github.com/symfony/symfony/security/advisories/GHSA-x8vp-gf4q-mw5j
- https://github.com/symfony/symfony/commit/a77b308c3f179ed7c8a8bc295f82b2d6ee3493fa
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/runtime/CVE-2024-50340.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50340.yaml
- https://github.com/symfony/symfony
- https://symfony.com/cve-2024-50340
More symfony vulnerabilities
- TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
- TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
- TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
- TI-2026-35851 Incorrect authorization in symfony CVSS 4.0HIGH 8.7
- TI-2026-35264 Improper input validation in symfony CVSS 4.0HIGH 8.3
- TI-2026-33105 Symfony: YAML Parser ReDoS via Catastrophic Backtracking in Parser::cleanup() Regex CVSS 4.0HIGH 8.7
Sources
- CVE-2024-50340 · CVE Program
- CVE-2024-50340 · NVD
- FIRST EPSS
- GHSA-x8vp-gf4q-mw5j · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences