CVE-2024-50343: symfony/symfony · Symfony has an incorrect response from Validator when input ends with `\n`
Affects symfony/symfonySource GCVE Database
Not known to be exploited · CVSS 3.1 Low : upgrade to 5.4.43 when convenient.
Data as of 30 Oct 2026, 02:29 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 3.1 |
|---|
- Patch
- Available – fixed in 5.4.43, 6.4.11, 7.1.4
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Nov 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade symfony/symfony and symfony/validator to 5.4.43; symfony/symfony and symfony/validator to 6.4.11; symfony/symfony and symfony/validator to 7.1.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistsymfony/symfony | Affected
| Fixed in
|
| Packagistsymfony/symfony | Affected
| Fixed in
|
| Packagistsymfony/symfony | Affected
| Fixed in
|
| Packagistsymfony/validator | Affected
| Fixed in
|
| Packagistsymfony/validator | Affected
| Fixed in
|
| Packagistsymfony/validator | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Symfony to version 5.4.43, 6.4.11, 7.1.4 or later where the issue is fixed. The patch adds the 'D' regex modifier to ensure the entire input is matched during validation. No other mitigation is required as the fix addresses the root cause.
Description
CVE-2024-50343 is a vulnerability in the Symfony Validator component where inputs ending with a newline character (\n) can bypass validation rules using regular expressions with the $ metacharacter. This occurs because the Validator did not properly anchor the regex to the end of the input. The issue is fixed by adding the 'D' regex modifier to ensure the entire input is matched. Fixed versions include 5.4.43, 6.4.11, and 7.1.4.
References
- github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-50343 (opens in a new tab)
- github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f (opens in a new tab)
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50343.yaml (opens in a new tab)
- github.com/FriendsOfPHP/security-advisories/blob/master/symfony/validator/CVE-2024-50343.yaml (opens in a new tab)
- github.com/symfony/symfony (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/05/msg00051.html (opens in a new tab)
- symfony.com/cve-2024-50343 (opens in a new tab)