# CVE-2024-50340: Ability to change environment from query in symfony/runtime

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 61.8%, higher than 99% of CVEs (2026-12-01)
- Published: 2024-11-06T15:11:07.000Z
- Modified: 2026-06-17T08:04:16.040Z
- Also known as: GHSA-x8vp-gf4q-mw5j
- Weaknesses: CWE-20, CWE-74
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- symfony symfony: < 5.4.46; >= 6.0.0, < 6.4.14; >= 7.0.0, < 7.1.7
- sensiolabs symfony: before 5.4.46; from 6.0.0 before 6.4.14; from 7.0.0 before 7.1.7
- symfony/runtime (Packagist): from 5.3.0 before 5.4.46; from 6.0.0 before 6.4.14; from 7.0.0 before 7.1.7
- symfony/symfony (Packagist): from 5.3.0 before 5.4.46; from 6.0.0 before 6.4.14; from 7.0.0 before 7.1.7

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 7.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/symfony/symfony/security/advisories/GHSA-x8vp-gf4q-mw5j> (web)
- <https://github.com/symfony/symfony/commit/a77b308c3f179ed7c8a8bc295f82b2d6ee3493fa> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-50340> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/runtime/CVE-2024-50340.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50340.yaml> (web)
- <https://github.com/symfony/symfony> (package)
- <https://symfony.com/cve-2024-50340> (web)

## Sources

- CVE List: [CVE-2024-50340](https://www.cve.org/CVERecord?id=CVE-2024-50340), CVE Terms of Use, modified 2024-11-07
- GitHub Advisory Database: [GHSA-x8vp-gf4q-mw5j](https://github.com/advisories/GHSA-x8vp-gf4q-mw5j), CC-BY-4.0, modified 2024-11-07
- NVD: [CVE-2024-50340](https://nvd.nist.gov/vuln/detail/CVE-2024-50340), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50340 · Whole record: https://cve.day/CVE-2024-50340.json · Rebuilt by cve.day 2026-11-25T22:58:47.845Z
