{"id":"CVE-2024-50340","published":"2024-11-06T21:09:46Z","modified":"2024-11-07T15:29:50Z","title":"Ability to change environment from query in symfony/runtime","vendor":"symfony","product":"symfony","tier":"core","eol":null,"affectedVersions":[{"vendor":"symfony","product":"symfony","versions":["< 5.4.46",">= 6.0.0, < 6.4.14",">= 7.0.0, < 7.1.7"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-11-07T15:27:34.309967Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"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.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:13:16Z"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.61814,"percentile":0.99193,"date":"2026-11-21","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-09-10","exploitedFirstSeen":"2026-09-10","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-09-10&host_type=src&vulnerability=cve-2024-50340","date":"2026-09-10"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-09-11&host_type=src&vulnerability=cve-2024-50340","date":"2026-09-11"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-09-12&host_type=src&vulnerability=cve-2024-50340","date":"2026-09-12"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-09-13&host_type=src&vulnerability=cve-2024-50340","date":"2026-09-13"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-09-14&host_type=src&vulnerability=cve-2024-50340","date":"2026-09-14"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-09-26&host_type=src&vulnerability=cve-2024-50340","date":"2026-09-26"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-09-27&host_type=src&vulnerability=cve-2024-50340","date":"2026-09-27"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-09-28&host_type=src&vulnerability=cve-2024-50340","date":"2026-09-28"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-11&host_type=src&vulnerability=cve-2024-50340","date":"2026-10-11"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-10-12&host_type=src&vulnerability=cve-2024-50340","date":"2026-10-12"}],"evidenceTotal":26,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-x8vp-gf4q-mw5j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/symfony/symfony/commit/a77b308c3f179ed7c8a8bc295f82b2d6ee3493fa","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Packagist","package":"symfony/runtime","vulnerableRanges":[">=5.3.0, <5.4.46",">=6.0.0, <6.4.14",">=7.0.0, <7.1.7"],"patched":["5.4.46","6.4.14","7.1.7"],"from":["GHSA-x8vp-gf4q-mw5j"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=5.3.0, <5.4.46",">=6.0.0, <6.4.14",">=7.0.0, <7.1.7"],"patched":["5.4.46","6.4.14","7.1.7"],"from":["GHSA-x8vp-gf4q-mw5j"],"provenance":"source"}],"advisories":[{"id":"GHSA-x8vp-gf4q-mw5j","url":"https://github.com/advisories/GHSA-x8vp-gf4q-mw5j","severity":"MODERATE","ecosystem":"Packagist","package":"symfony/runtime","vulnerableRanges":[">=5.3.0, <5.4.46"],"patched":["5.4.46"],"provenance":"source","from":"GHSA"},{"id":"GHSA-x8vp-gf4q-mw5j","url":"https://github.com/advisories/GHSA-x8vp-gf4q-mw5j","severity":"MODERATE","ecosystem":"Packagist","package":"symfony/runtime","vulnerableRanges":[">=6.0.0, <6.4.14"],"patched":["6.4.14"],"provenance":"source","from":"GHSA"},{"id":"GHSA-x8vp-gf4q-mw5j","url":"https://github.com/advisories/GHSA-x8vp-gf4q-mw5j","severity":"MODERATE","ecosystem":"Packagist","package":"symfony/runtime","vulnerableRanges":[">=7.0.0, <7.1.7"],"patched":["7.1.7"],"provenance":"source","from":"GHSA"},{"id":"GHSA-x8vp-gf4q-mw5j","url":"https://github.com/advisories/GHSA-x8vp-gf4q-mw5j","severity":"MODERATE","ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=5.3.0, <5.4.46"],"patched":["5.4.46"],"provenance":"source","from":"GHSA"},{"id":"GHSA-x8vp-gf4q-mw5j","url":"https://github.com/advisories/GHSA-x8vp-gf4q-mw5j","severity":"MODERATE","ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=6.0.0, <6.4.14"],"patched":["6.4.14"],"provenance":"source","from":"GHSA"},{"id":"GHSA-x8vp-gf4q-mw5j","url":"https://github.com/advisories/GHSA-x8vp-gf4q-mw5j","severity":"MODERATE","ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":[">=7.0.0, <7.1.7"],"patched":["7.1.7"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-3330","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-3330","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-11-06","earliestUrl":"https://github.com/Nyamort/CVE-2024-50340","repos":[{"name":"Nyamort/CVE-2024-50340","url":"https://github.com/Nyamort/CVE-2024-50340","stars":11,"created":"2024-11-06"}]},"nuclei":[{"id":"CVE-2024-50340","name":"Symfony Profiler - Remote Access via Injected Arguments","severity":"high","path":"http/cves/2024/CVE-2024-50340.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-50340.yaml"}],"first":{"date":"2024-11-06","source":"PoC-in-GitHub","url":"https://github.com/Nyamort/CVE-2024-50340"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-11-06","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-50340","provenance":"source"},{"date":"2024-11-06","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/Nyamort/CVE-2024-50340","provenance":"source"},{"date":"2026-09-10","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-09-10&host_type=src&vulnerability=cve-2024-50340","provenance":"source"}],"speed":{"daysToPublicExploit":0,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":74.9,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":10.0,"detail":"added 72 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.84,"detail":"percentile 0.9919"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":5.11,"detail":"base score 7.3"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-symfony-cve-2024-50340","children":[{"from":"CVE-2024-50340","to":"CVE-2026-47767","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/runtime","fromFixed":"5.4.46","toFixed":"5.4.52","daysApart":615},{"kind":"version-step","provenance":"source","package":"Packagist:symfony/runtime","fromFixed":"6.4.14","toFixed":"6.4.40","daysApart":615},{"kind":"same-code","provenance":"machine","files":["src/Symfony/Component/Runtime/SymfonyRuntime.php"],"commits":["https://github.com/symfony/symfony/commit/a77b308c3f179ed7c8a8bc295f82b2d6ee3493fa","https://github.com/symfony/symfony/commit/3228c3806ee511008bea19a95084d460b17e5d25"],"basis":"shared function","functions":["__construct","register"]}]}],"packageHistory":[{"cve":"CVE-2023-46735","published":"2023-11-10","fixed":"6.3.8","kev":false},{"cve":"CVE-2024-50341","published":"2024-11-06","fixed":"7.1.3","kev":false},{"cve":"CVE-2024-50343","published":"2024-11-06","fixed":"7.1.4","kev":false,"link":{"from":"CVE-2024-50343","to":"CVE-2024-50340","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"5.4.43","toFixed":"5.4.46","daysApart":0},{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"6.4.11","toFixed":"6.4.14","daysApart":0}]}},{"cve":"CVE-2024-50340","published":"2024-11-06","fixed":"7.1.7","kev":false},{"cve":"CVE-2024-51736","published":"2024-11-06","fixed":"7.1.7","kev":false},{"cve":"CVE-2024-50342","published":"2024-11-06","fixed":"7.1.8","kev":false},{"cve":"CVE-2025-64500","published":"2025-11-12","fixed":"7.3.7","kev":false}],"package":"Packagist:symfony/symfony"}}