Incorrect response from Validator when input ends with `\n` in symfony/validator
Summary
Incorrect response from Validator when input ends with \n in symfony/validator
Original description
The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Debian DEBIAN-CVE-2024-50343 symfony Fixed in: 4.4.19+dfsg-2+deb11u7
- Ubuntu UBUNTU-CVE-2024-50343 symfony
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web lists.debian.org