{"id":"CVE-2024-50343","published":"2024-11-06T21:00:55Z","modified":"2025-11-03T19:31:45Z","title":"Incorrect response from Validator when input ends with `\\n` in symfony/validator","vendor":"symfony","product":"symfony","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.1,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00455,"percentile":0.40399,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html","tags":[]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":8.08},{"name":"CVSS severity","points":2.17}]},"vendorSlug":"symfony","affectedVersions":[{"vendor":"symfony","product":"symfony","versions":["< 5.4.43",">= 6.0.0, < 6.4.11",">= 7.0.0, < 7.1.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-11-07T15:25:47.383236Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"symfony/symfony","vulnerableRanges":["<5.4.43",">=6.0.0, <6.4.11",">=7.0.0, <7.1.4"],"patched":["5.4.43","6.4.11","7.1.4"],"from":["GHSA-g3rh-rrhp-jhh9"],"provenance":"source"},{"ecosystem":"Packagist","package":"symfony/validator","vulnerableRanges":["<5.4.43",">=6.0.0, <6.4.11",">=7.0.0, <7.1.4"],"patched":["5.4.43","6.4.11","7.1.4"],"from":["GHSA-g3rh-rrhp-jhh9"],"provenance":"source"}],"summary":{"text":"The flaw is in the validator component of the Symfony PHP framework (symfony/validator), where a Validator configured with a regular expression using the $ metacharacter can be bypassed because $ also matches before a trailing newline, so input ending in \\n is incorrectly accepted as valid. An attacker who can submit input to a validator with a $-anchored regex, with low privileges and no user interaction, can cause the validation to pass for a crafted value ending in a newline, with the impact limited to incorrect validation results.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:29Z"},"euvd":{"id":"EUVD-2024-3249","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-46734","published":"2023-11-10","fixed":"6.3.8","kev":false,"link":{"from":"CVE-2023-46734","to":"CVE-2024-50343","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"5.4.31","toFixed":"5.4.43","daysApart":362}]}},{"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,"link":{"from":"CVE-2024-50341","to":"CVE-2024-50343","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"6.4.10","toFixed":"6.4.11","daysApart":0},{"kind":"version-step","provenance":"source","package":"Packagist:symfony/symfony","fromFixed":"7.1.3","toFixed":"7.1.4","daysApart":0}]}},{"cve":"CVE-2024-50343","published":"2024-11-06","fixed":"7.1.4","kev":false},{"cve":"CVE-2024-50340","published":"2024-11-06","fixed":"7.1.7","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-51736","published":"2024-11-06","fixed":"7.1.7","kev":false,"link":{"from":"CVE-2024-50343","to":"CVE-2024-51736","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-50342","published":"2024-11-06","fixed":"7.1.8","kev":false}],"package":"Packagist:symfony/symfony"}}