CVE-2024-50343
symfony/validator is a module for the Symphony PHP framework which …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9
- github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50343.yam
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/validator/CVE-2024-50343.y
- symfony.com/cve-2024-50343
- nvd.nist.gov/vuln/detail/CVE-2024-50343
- lists.debian.org/debian-lts-announce/2025/05/msg00051.html
- github.com/advisories/GHSA-g3rh-rrhp-jhh9
- nvd.nist.gov/vuln/detail/CVE-2024-50343
- cve.org/CVERecord?id=CVE-2024-50343
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.