{"id":"CVE-2024-50343","aliases":["GHSA-g3rh-rrhp-jhh9"],"url":"https://o3.security/vulnerability/CVE-2024-50343","summary":"Incorrect response from Validator when input ends with `\\n` in symfony/validator","details":"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.","published":"2024-11-06T21:00:55.266Z","modified":"2026-08-12T03:51:39.686944601Z","cvss":{"score":3.1,"severity":"LOW","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"5.4.43"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"6.4.11"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"7.1.4"},{"ecosystem":"Packagist","name":"symfony/validator","fixedVersion":"5.4.43"},{"ecosystem":"Packagist","name":"symfony/validator","fixedVersion":"6.4.11"},{"ecosystem":"Packagist","name":"symfony/validator","fixedVersion":"7.1.4"}],"fix":{"url":"https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f","label":"symfony/symfony@7d1032b"},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50343.json"},{"type":"ADVISORY","url":"https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50343"},{"type":"FIX","url":"https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:39.686944601Z"}}