CVE-2024-50343 json
Incorrect response from Validator when input ends with `\n` in symfony/validator
published 2024-11-06 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-3249 , GHSA-g3rh-rrhp-jhh9
- cvss
- 3.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist symfony/symfony 5.4.43, 6.4.11, 7.1.4
- packagist symfony/validator 5.4.43, 6.4.11, 7.1.4
- sensiolabs symfony 5.4.43, 6.4.11, 7.1.4
- symfony Debian 12 5.4.23+dfsg-1+deb12u3
- symfony Debian 14, Debian 13 6.4.11+dfsg-1
debian advisories DEBIAN-CVE-2024-50343
- symfony Ubuntu Pro 20.04 LTS 4.3.8+dfsg-1ubuntu1+esm2
- symfony Ubuntu Pro 22.04 LTS 5.4.4+dfsg-1ubuntu8+esm1
- symfony Ubuntu Pro 24.04 LTS 6.4.5+dfsg-3ubuntu3+esm1
ubuntu advisories UBUNTU-CVE-2024-50343
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.46% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 3.1 | 3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | symfony/symfony | <5.4.43 >=6.0.0, <6.4.11 >=7.0.0, <7.1.4 |
5.4.43 6.4.11 7.1.4 |
| packagist | symfony/validator | <5.4.43 >=6.0.0, <6.4.11 >=7.0.0, <7.1.4 |
5.4.43 6.4.11 7.1.4 |
Affected products
- symfony symfony
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f
web
-
github.com
/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9
web
-
lists.debian.org
/debian-lts-announce/2025/05/msg00051.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-50343
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50343.yaml
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/symfony/validator/CVE-2024-50343.yaml
web
-
github.com
/symfony/symfony
package
-
symfony.com
/cve-2024-50343
web
Sources
- CVE List CVE-2024-50343
- GitHub Advisory GHSA-g3rh-rrhp-jhh9
- NVD CVE-2024-50343
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.