{"answers":{"affected":"12 open source packages ship an affected version, including symfony/runtime and symfony/symfony.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-50340 exists.","fix":"Upgrade symfony/runtime to a fixed version for your release line: 5.4.46, 6.4.14 or 7.1.7.","what":"CVE-2024-50340 is a high-severity vulnerability in symfony, published on 6 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-50340 and fix it if it is affected.\n\nWhat it is: CVE-2024-50340 is a high-severity vulnerability in symfony, published on 6 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-50340 exists.\n\nAffected packages and fixed versions:\n- symfony/runtime (Packagist): affected from 5.3.0; fixed in 5.4.46\n- symfony/runtime (Packagist): affected from 5.3.0; fixed in 5.4.46\n- symfony/runtime (Packagist): affected from 6.0.0; fixed in 6.4.14\n- symfony/runtime (Packagist): affected from 6.0.0; fixed in 6.4.14\n- symfony/runtime (Packagist): affected from 7.0.0; fixed in 7.1.7\n- symfony/runtime (Packagist): affected from 7.0.0; fixed in 7.1.7\n- symfony/symfony (Packagist): affected from 5.3.0; fixed in 5.4.46\n- symfony/symfony (Packagist): affected from 5.3.0; fixed in 5.4.46\n- symfony/symfony (Packagist): affected from 6.0.0; fixed in 6.4.14\n- symfony/symfony (Packagist): affected from 6.0.0; fixed in 6.4.14\n- symfony/symfony (Packagist): affected from 7.0.0; fixed in 7.1.7\n- symfony/symfony (Packagist): affected from 7.0.0; fixed in 7.1.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-50340/ (Markdown: https://insights.sbomify.com/CVE-2024-50340/index.md)","id":"CVE-2024-50340","markdown":"https://insights.sbomify.com/CVE-2024-50340/index.md","name":"CVE-2024-50340","record":{"aliases":["DEBIAN-CVE-2024-50340","GHSA-x8vp-gf4q-mw5j","UBUNTU-CVE-2024-50340"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Symfony PHP framework","requires_auth":"none","summary":"Attackers can alter application environment or debug mode via crafted query strings when specific PHP directives are enabled, potentially exposing sensitive configurations.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"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.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":"2024-11-06","github_poc":1,"max_poc_stars":12,"metasploit":0,"nuclei":1,"refs":[{"date":"2024-11-06T21:24:43Z","kind":"github_poc","ref":"https://github.com/Nyamort/CVE-2024-50340","stars":12,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-50340.yaml","stars":null,"title":"Symfony Profiler - Remote Access via Injected Arguments"}],"tier":"weaponised"},"has_fix":true,"headline":"Ability to change environment from query in symfony/runtime","id":"CVE-2024-50340","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"security_feature_bypass","year":"2024"},"n_packages":12,"n_references":2,"next":{"headline":"Security::login does not take into account custom user_checker in symfony/security-bundle","id":"CVE-2024-50341"},"packages":[{"ecosystem":"Packagist","fixed":["5.4.46"],"introduced":["5.3.0"],"last_affected":[],"package":"symfony/runtime","purl":null,"source":"GHSA-x8vp-gf4q-mw5j"},{"ecosystem":"Packagist","fixed":["5.4.46"],"introduced":["5.3.0"],"last_affected":[],"package":"symfony/runtime","purl":"pkg:composer/symfony/runtime","source":"GHSA-x8vp-gf4q-mw5j"},{"ecosystem":"Packagist","fixed":["6.4.14"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/runtime","purl":null,"source":"GHSA-x8vp-gf4q-mw5j"},{"ecosystem":"Packagist","fixed":["6.4.14"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/runtime","purl":"pkg:composer/symfony/runtime","source":"GHSA-x8vp-gf4q-mw5j"},{"ecosystem":"Packagist","fixed":["7.1.7"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/runtime","purl":null,"source":"GHSA-x8vp-gf4q-mw5j"},{"ecosystem":"Packagist","fixed":["7.1.7"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/runtime","purl":"pkg:composer/symfony/runtime","source":"GHSA-x8vp-gf4q-mw5j"},{"ecosystem":"Packagist","fixed":["5.4.46"],"introduced":["5.3.0"],"last_affected":[],"package":"symfony/symfony","purl":null,"source":"GHSA-x8vp-gf4q-mw5j"},{"ecosystem":"Packagist","fixed":["5.4.46"],"introduced":["5.3.0"],"last_affected":[],"package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"GHSA-x8vp-gf4q-mw5j"},{"ecosystem":"Packagist","fixed":["6.4.14"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/symfony","purl":null,"source":"GHSA-x8vp-gf4q-mw5j"},{"ecosystem":"Packagist","fixed":["6.4.14"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"GHSA-x8vp-gf4q-mw5j"},{"ecosystem":"Packagist","fixed":["7.1.7"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/symfony","purl":null,"source":"GHSA-x8vp-gf4q-mw5j"},{"ecosystem":"Packagist","fixed":["7.1.7"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"GHSA-x8vp-gf4q-mw5j"}],"prev":{"headline":"GLPI vulnerable to unauthenticated session hijacking","id":"CVE-2024-50339"},"products":["symfony"],"published":"2024-11-06","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-07","vendors":["symfony"]},"summary":"Attackers can alter application environment or debug mode via crafted query strings when specific PHP directives are enabled, potentially exposing sensitive configurations.","url":"https://insights.sbomify.com/CVE-2024-50340/"}