{"answers":{"affected":"12 open source packages ship an affected version, including symfony/symfony and symfony/validator.","exploited":"There is no known exploitation of CVE-2024-50343 in the wild and no public exploit code.","fix":"Upgrade symfony/symfony to a fixed version for your release line: 5.4.43, 6.4.11 or 7.1.4.","what":"CVE-2024-50343 is a low-severity vulnerability in symfony, published on 6 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-50343 and fix it if it is affected.\n\nWhat it is: CVE-2024-50343 is a low-severity vulnerability in symfony, published on 6 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-50343 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- symfony/symfony (Packagist): affected all versions; fixed in 5.4.43\n- symfony/symfony (Packagist): affected all versions; fixed in 5.4.43\n- symfony/symfony (Packagist): affected from 6.0.0; fixed in 6.4.11\n- symfony/symfony (Packagist): affected from 6.0.0; fixed in 6.4.11\n- symfony/symfony (Packagist): affected from 7.0.0; fixed in 7.1.4\n- symfony/symfony (Packagist): affected from 7.0.0; fixed in 7.1.4\n- symfony/validator (Packagist): affected all versions; fixed in 5.4.43\n- symfony/validator (Packagist): affected all versions; fixed in 5.4.43\n- symfony/validator (Packagist): affected from 6.0.0; fixed in 6.4.11\n- symfony/validator (Packagist): affected from 6.0.0; fixed in 6.4.11\n- symfony/validator (Packagist): affected from 7.0.0; fixed in 7.1.4\n- symfony/validator (Packagist): affected from 7.0.0; fixed in 7.1.4\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-50343/ (Markdown: https://insights.sbomify.com/CVE-2024-50343/index.md)","id":"CVE-2024-50343","markdown":"https://insights.sbomify.com/CVE-2024-50343/index.md","name":"CVE-2024-50343","record":{"aliases":["DEBIAN-CVE-2024-50343","GHSA-g3rh-rrhp-jhh9","UBUNTU-CVE-2024-50343"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Symfony validation library","requires_auth":"low_privilege","summary":"Attackers can bypass regex validation rules ending with $ by appending newlines, requiring specific validator configuration.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":3.1,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"symfony/validator is a module for the Symphony PHP framework which provides tools to validate values. It is possible to trick a `Validator` configured with a regular expression using the `$` metacharacters, with an input ending with `\\n`. Symfony as of versions 5.4.43, 6.4.11, and 7.1.4 now uses the `D` regex modifier to match the entire input. Users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Incorrect response from Validator when input ends with `\\n` in symfony/validator","id":"CVE-2024-50343","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"other","year":"2024"},"n_packages":12,"n_references":2,"next":{"headline":"I, Librarian has a Stored XSS vulnerability in Supplemental Files","id":"CVE-2024-50344"},"packages":[{"ecosystem":"Packagist","fixed":["5.4.43"],"introduced":["0"],"last_affected":[],"package":"symfony/symfony","purl":null,"source":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","fixed":["5.4.43"],"introduced":["0"],"last_affected":[],"package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","fixed":["6.4.11"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/symfony","purl":null,"source":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","fixed":["6.4.11"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","fixed":["7.1.4"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/symfony","purl":null,"source":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","fixed":["7.1.4"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","fixed":["5.4.43"],"introduced":["0"],"last_affected":[],"package":"symfony/validator","purl":null,"source":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","fixed":["5.4.43"],"introduced":["0"],"last_affected":[],"package":"symfony/validator","purl":"pkg:composer/symfony/validator","source":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","fixed":["6.4.11"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/validator","purl":null,"source":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","fixed":["6.4.11"],"introduced":["6.0.0"],"last_affected":[],"package":"symfony/validator","purl":"pkg:composer/symfony/validator","source":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","fixed":["7.1.4"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/validator","purl":null,"source":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","fixed":["7.1.4"],"introduced":["7.0.0"],"last_affected":[],"package":"symfony/validator","purl":"pkg:composer/symfony/validator","source":"GHSA-g3rh-rrhp-jhh9"}],"prev":{"headline":"Internal address and port enumeration allowed by NoPrivateNetworkHttpClient in symfony/http-client","id":"CVE-2024-50342"},"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-03","vendors":["symfony"]},"summary":"Attackers can bypass regex validation rules ending with $ by appending newlines, requiring specific validator configuration.","url":"https://insights.sbomify.com/CVE-2024-50343/"}