NetSight
low3.1

CVE-2024-50343

Symfony has an incorrect response from Validator when input ends with `\n`

Impact

### Description It is possible to trick a `Validator` configured with a regular expression using the `$` metacharacters, with an input ending with `\n`. ### Resolution Symfony now uses the `D` regex modifier to match the entire input. The patch for this issue is available [here](https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f) for branch 5.4. ### Credits We would like to thank Offscript for reporting the issue and Alexandre Daubois for providing the fix.

Affected packages

EcosystemPackageAffectedFixed in
composersymfony/symfony< 5.4.435.4.43
composersymfony/validator< 5.4.435.4.43

Weakness classification

References