CVE-2024-50343
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 6.4.11+dfsg-1 |
| sid | Fixed | 6.4.11+dfsg-1 |
| forky | Fixed | 6.4.11+dfsg-1 |
| bullseye | Fixed | 4.4.19+dfsg-2+deb11u7 |
| bookworm | Fixed | 5.4.23+dfsg-1+deb12u3 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | symfony/symfony | <5.4.43 | 5.4.43 |
| Packagist | symfony/symfony | >=6.0.0,<6.4.11 | 6.4.11 |
| Packagist | symfony/symfony | >=7.0.0,<7.1.4 | 7.1.4 |
| Packagist | symfony/validator | <5.4.43 | 5.4.43 |
| Packagist | symfony/validator | >=6.0.0,<6.4.11 | 6.4.11 |
| Packagist | symfony/validator | >=7.0.0,<7.1.4 | 7.1.4 |
References
- https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9
- https://nvd.nist.gov/vuln/detail/CVE-2024-50343
- https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f
- 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/symfony/symfony
- https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html
- https://symfony.com/cve-2024-50343
- https://security-tracker.debian.org/tracker/CVE-2024-50343
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.