Incorrect response from Validator when input ends with `\n` in symfony/validator
symfony
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| symfony/symfony Packagist |
|
|
| symfony/validator Packagist |
symfony
| Product | Affected | Fixed in |
|---|---|---|
| symfony/symfony Packagist |
|
|
| symfony/validator Packagist |
< 5.4.43≥ 6.0.0 · < 6.4.11≥ 7.0.0 · < 7.1.4
|
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.
From the CVE record · GitHub_M
A Symfony Validator configured with a regular expression using `$` can be tricked by input ending in a newline. An attacker who can submit such input may bypass the intended validation; the input does not specify whether authentication is required.
Check applications using Packagist symfony/symfony or symfony/validator versions below 5.4.43, from 6.0.0 to below 6.4.11, or from 7.0.0 to below 7.1.4.