{"id":"CVE-2024-50343","state":"PUBLISHED","title":"Incorrect response from Validator when input ends with `\\n` in symfony/validator","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.","publishedAt":"2024-11-06T21:00:55.266Z","updatedAt":"2025-11-03T19:31:45.637Z","severity":{"score":3.1,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["symfony symfony"],"affected":[{"vendor":"symfony","product":"symfony","versions":[{"version":"< 5.4.43","status":"affected"},{"version":">= 6.0.0, < 6.4.11","status":"affected"},{"version":">= 7.0.0, < 7.1.4","status":"affected"}]}],"references":["https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9","https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f","https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/50xxx/CVE-2024-50343.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-50343","state":"PUBLISHED","datePublished":"2024-11-06T21:00:55.266Z","dateUpdated":"2025-11-03T19:31:45.637Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-10-22T17:54:40.955Z"},"containers":{"cna":{"title":"Incorrect response from Validator when input ends with `\\n` in symfony/validator","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"symfony","product":"symfony","versions":[{"version":"< 5.4.43","status":"affected"},{"version":">= 6.0.0, < 6.4.11","status":"affected"},{"version":">= 7.0.0, < 7.1.4","status":"affected"}]}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9","name":"https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f","name":"https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.1,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","lang":"en","description":"CWE-20: Improper Input Validation","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-11-06T21:00:55.266Z"},"source":{"advisory":"GHSA-g3rh-rrhp-jhh9","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-11-07T15:25:47.383236Z","id":"CVE-2024-50343","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-07T15:25:56.212Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T19:31:45.637Z"}}]}}}