CVE-2024-50343
Incorrect response from Validator when input ends with `\n` in symfony/validator
Also known as GHSA-g3rh-rrhp-jhh9
Mitigation
- Upgrade symfony/symfony to one of 5.4.43, 6.4.11, 7.1.4 (or later in the same release line).
- Upgrade symfony/validator to one of 5.4.43, 6.4.11, 7.1.4 (or later in the same release line).
Who should check
- Projects that depend on Packagist package symfony/symfony (< 5.4.43)
- Projects that depend on Packagist package symfony/validator (< 5.4.43)
- Anyone running symfony < 5.4.43; >= 6.0.0, < 6.4.11; >= 7.0.0, < 7.1.4
Vulnerability facts
- Affected
- symfony/symfony < 5.4.43; symfony/validator < 5.4.43
- Fixed in
- 5.4.43, 6.4.11, 7.1.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 3.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.73% chance of exploitation in 30 days (percentile 50, 2026-11-26)
- CWE
- CWE-20
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist symfony/symfony | < 5.4.43 | 5.4.43, 6.4.11, 7.1.4 | osv |
| Packagist symfony/validator | < 5.4.43 | 5.4.43, 6.4.11, 7.1.4 | osv |
| symfony | < 5.4.43; >= 6.0.0, < 6.4.11; >= 7.0.0, < 7.1.4 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-50343. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-50343.md Affected: symfony/symfony < 5.4.43; symfony/validator < 5.4.43 Fixed in: 5.4.43, 6.4.11, 7.1.4 Steps: 1. Search this machine and project for symfony/symfony (Packagist), symfony/validator (Packagist), symfony: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html
- 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://symfony.com/cve-2024-50343
FAQ
Is CVE-2024-50343 being exploited?
There is no confirmed exploitation: CVE-2024-50343 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.73% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-50343?
Low: CVSS 3.1 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-50343?
symfony/symfony < 5.4.43; symfony/validator < 5.4.43.
Is there a fix for CVE-2024-50343?
Yes. Fixed in 5.4.43, 6.4.11, 7.1.4. Upgrade symfony/symfony to one of 5.4.43, 6.4.11, 7.1.4 (or later in the same release line). Upgrade symfony/validator to one of 5.4.43, 6.4.11, 7.1.4 (or later in the same release line).
How do I check if I'm affected by CVE-2024-50343?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.