What’s Vulnerable › Vulnerabilities
CVE-2024-50343: Incorrect response from Validator when input ends with `\n` in symfony/validator
- Severity: low (CVSS 3.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-11-06 · updated 2026-06-17
- Weakness: CWE-20
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.
Affected products
- symfony: before 5.4.43; from 6.0.0, < 6.4.11; from 7.0.0, < 7.1.4
References
- https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f
- https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9
- https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html
Get alerted when CVE-2024-50343 or the next vulnerability affects your stack