CVE-2024-50343: Symfony has an incorrect response from Validator when input ends with `\n`
(updated )
It is possible to trick a Validator configured with a regular expression using the $ metacharacters, with an input ending with \n.
References
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50343.yaml
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/validator/CVE-2024-50343.yaml
- github.com/advisories/GHSA-g3rh-rrhp-jhh9
- github.com/symfony/symfony
- github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f
- github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9
- lists.debian.org/debian-lts-announce/2025/05/msg00051.html
- nvd.nist.gov/vuln/detail/CVE-2024-50343
- symfony.com/cve-2024-50343
Code Behaviors & Features
Detect and mitigate CVE-2024-50343 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →