High severity · published Nov 6, 2024
CVE-2024-50340
Ability to change environment from query in symfony/runtime
7.3
CVSS
63.6%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)63.6% · higher than 99% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SY
symfony · symfony
< 5.4.46; >= 6.0.0, < 6.4.14; >= 7.0.0, < 7.1.7 · source: vendor, CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-50340
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-50340
github.com
https://github.com/symfony/symfony/commit/a77b308c3f179ed7c8a8bc295f82b2d6ee3493fa
github.com
https://github.com/symfony/symfony/security/advisories/GHSA-x8vp-gf4q-mw5j
More from symfony
9.8
CVE-2026-47767
Symfony: SymfonyRuntime CVE-2024-50340 Patch Bypass: Web Requests Can Still Set APP_ENV/APP_DEBUG via parse_str/SAPI Argv Mismatch
9.8
CVE-2024-51736
Command execution hijack on Windows with Process class in symfony/process
9.1
CVE-2026-45069
Symfony: OidcTokenHandler Accepts JWTs Missing aud/iss/exp Claims
9.1
CVE-2026-45063
Symfony: Identity Spoofing via Unanchored DN Regex in X509Authenticator
8.6
CVE-2026-48736
Symfony: IpUtils::PRIVATE_SUBNETS Omits IPv6 Transition Forms (6to4, NAT64, Teredo, IPv4-compatible): SSRF Bypass in NoPrivateNetworkHttpClient
