Patchfirst
CVE-2024-50340 Public exploit High · 7.3 EPSS 61.8%

Ability to change environment from query in symfony/runtime

Fix:upgrade runtime and symfony Versions ↓

symfony · symfony

Summary

The Symfony Runtime component (symfony/runtime, part of the Symfony PHP framework) incorrectly trusts values from the command-line argument array when the register_argv_argc PHP directive is enabled, so a crafted query string can reach it. An unauthenticated remote attacker who can reach the application over the network can send a single specially crafted request to any URL, with no user interaction needed, to alter the environment or debug mode the kernel uses to handle that request.

Official description · CVE.org

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.

Breakdown
74.9 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 22 months after disclosure. Public exploit code (PoC-in-GitHub) was available the same day.

  1. DisclosedPublic exploit codePoC-in-GitHubday 0
  2. First seen exploitedVulnCheck KEV evidence+22 mo

2 related vulnerabilities in the same code over 20 months. The latest fix listed for symfony/symfony is 7.3.7.

Linked vulnerabilitiesLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2024-50340Ability to change environment from query in symfony/runtime6 Nov 2024
  2. relatedHigh

    Why these are linked:

    • Fixed one release later5.4.46 → 5.4.52 (symfony/runtime)
    • Fixed one release later6.4.14 → 6.4.40 (symfony/runtime)
    • Same code patched: SymfonyRuntime.php (machine-matched)Functions: __construct, registercommit a77b308commit 3228c38
    CVE-2026-47767Symfony: SymfonyRuntime CVE-⁠2024-⁠50340 Patch Bypass: Web…14 Jul 2026

Fixes in symfony/symfonyPackagist package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 6.3.8CVE-2023-4673510 Nov 2023
  2. 7.1.3CVE-2024-503416 Nov 2024
  3. 7.1.4CVE-2024-503436 Nov 2024
  4. 7.1.7CVE-2024-503406 Nov 2024
  5. 7.1.7CVE-2024-517366 Nov 2024
  6. 7.1.8CVE-2024-503426 Nov 2024
  7. 7.3.7CVE-2025-6450012 Nov 2025Latest listed

Affected versions and fixes

as published in the CVE record

symfony symfony

Affected: < 5.4.46 · >= 6.0.0, < 6.4.14 · >= 7.0.0, < 7.1.7

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

2 packages in 1 ecosystem. No single main package: each of these ships the affected code.

  • Packagistsymfony/runtime
    Affected: 7.0.0 up to 7.1.7; 6.0.0 up to 6.4.14; 5.3.0 up to 5.4.46Upgrade to 7.1.7 or later (older lines: 6.4.14, 5.4.46)
  • Packagistsymfony/symfony
    Affected: 7.0.0 up to 7.1.7; 6.0.0 up to 6.4.14; 5.3.0 up to 5.4.46Upgrade to 7.1.7 or later (older lines: 6.4.14, 5.4.46)

Check your lockfile against all CVEs

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close