CVE-2024-50340

Ability to change environment from query in symfony/runtime

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.

Category

7.3
CVSS
Severity: High
CVSS 3.1 •
EPSS 84.87% Top 5%
Affected: symfony symfony
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-50340?
CVE-2024-50340 has been scored as a high severity vulnerability.
How to fix CVE-2024-50340?
To fix CVE-2024-50340, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-50340 being actively exploited in the wild?
It is possible that CVE-2024-50340 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~85% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-50340?
CVE-2024-50340 affects symfony symfony.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.