{"id":"CVE-2024-50340","aliases":["GHSA-x8vp-gf4q-mw5j"],"url":"https://o3.security/vulnerability/CVE-2024-50340","summary":"Ability to change environment from query in symfony/runtime","details":"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.","published":"2024-11-06T21:09:46.750Z","modified":"2026-08-08T03:30:56.289650234Z","cvss":{"score":7.3,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"Packagist","name":"symfony/runtime","fixedVersion":"5.4.46"},{"ecosystem":"Packagist","name":"symfony/runtime","fixedVersion":"6.4.14"},{"ecosystem":"Packagist","name":"symfony/runtime","fixedVersion":"7.1.7"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"5.4.46"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"6.4.14"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"7.1.7"}],"fix":{"url":"https://github.com/symfony/symfony/commit/a77b308c3f179ed7c8a8bc295f82b2d6ee3493fa","label":"symfony/symfony@a77b308"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50340.json"},{"type":"ADVISORY","url":"https://github.com/symfony/symfony/security/advisories/GHSA-x8vp-gf4q-mw5j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50340"},{"type":"FIX","url":"https://github.com/symfony/symfony/commit/a77b308c3f179ed7c8a8bc295f82b2d6ee3493fa"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-08T03:30:56.289650234Z"}}