logo

CVE-2024-50343 symfony/validator

Package

Manager: composer
Name: symfony/validator
Vulnerable Version: >=0 <5.4.43 || >=6.0.0 <6.4.11 || >=7.0.0 <7.1.4

Severity

Level: Low

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

CVSS v4.0: 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

EPSS: 0.00133 pctl0.3364

Details

Symfony has an incorrect response from Validator when input ends with `\n` ### 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.

Metadata

Created: 2024-11-06T15:21:08Z
Modified: 2024-11-06T23:40:08Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-g3rh-rrhp-jhh9/GHSA-g3rh-rrhp-jhh9.json
CWE IDs: ["CWE-20"]
Alternative ID: GHSA-g3rh-rrhp-jhh9
Finding: F184
Auto approve: 1