GHSA-g3rh-rrhp-jhh9

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

En bref

Publiée
Mise à jour
CVE
CVE-2024-50343
CVSS_V3
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Description

### 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.

Paquets affectés

PaquetVersions
Packagist · symfony/symfonyintroduced 0, fixed 5.4.43
Packagist · symfony/symfonyintroduced 6.0.0, fixed 6.4.11
Packagist · symfony/symfonyintroduced 7.0.0, fixed 7.1.4
Packagist · symfony/validatorintroduced 0, fixed 5.4.43
Packagist · symfony/validatorintroduced 6.0.0, fixed 6.4.11
Packagist · symfony/validatorintroduced 7.0.0, fixed 7.1.4

Références

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database