Affected versions
Version ranges need review.
Composersymfony/symfony
- Affected versions
- < 5.4.43
- Fixed version
- 5.4.43
Composersymfony/symfony
- Affected versions
- >= 7.0.0, < 7.1.4
- Fixed version
- 7.1.4
Composersymfony/symfony
- Affected versions
- >=2.0.0,<3.0.0|>=3.0.0,<4.0.0|>=4.0.0,<5.0.0|>=5.0.0,<5.1.0|>=5.1.0,<5.2.0|>=5.2.0,<5.3.0|>=5.3.0,<5.4.0|>=5.4.0,<5.4.43|>=6.0.0,<6.1.0|>=6.1.0,<6.2.0|>=6.2.0,<6.3.0|>=6.3.0,<6.4.0|>=6.4.0,<6.4.11|>=7.0.0,<7.1.0|>=7.1.0,<7.1.4
- Fixed version
- Not reported
Composersymfony/symfony
- Affected versions
- >= 6.0.0, < 6.4.11
- Fixed version
- 6.4.11
Composersymfony/validator
- Affected versions
- >=2.0.0,<3.0.0|>=3.0.0,<4.0.0|>=4.0.0,<5.0.0|>=5.0.0,<5.1.0|>=5.1.0,<5.2.0|>=5.2.0,<5.3.0|>=5.3.0,<5.4.0|>=5.4.0,<5.4.43|>=6.0.0,<6.1.0|>=6.1.0,<6.2.0|>=6.2.0,<6.3.0|>=6.3.0,<6.4.0|>=6.4.0,<6.4.11|>=7.0.0,<7.1.0|>=7.1.0,<7.1.4
- Fixed version
- Not reported
Composersymfony/validator
- Affected versions
- >= 6.0.0, < 6.4.11
- Fixed version
- 6.4.11
Composersymfony/validator
- Affected versions
- < 5.4.43
- Fixed version
- 5.4.43
Composersymfony/validator
- Affected versions
- >= 7.0.0, < 7.1.4
- Fixed version
- 7.1.4
Exploitation
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 for branch 5.4.
Credits
We would like to thank Offscript for reporting the issue and Alexandre Daubois for providing the fix.
Links
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50343.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/validator/CVE-2024-50343.yaml
- https://github.com/advisories/GHSA-g3rh-rrhp-jhh9
- https://github.com/symfony/symfony
- https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f
- https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9
- https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-50343
- https://symfony.com/cve-2024-50343
Credits
- offscriptian
- alexandre-daubois

