# CVE-2024-50343: Incorrect response from Validator when input ends with `\n` in symfony/validator

- Severity: Low 3.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2024-11-06T15:21:08.000Z
- Modified: 2026-06-17T08:04:16.380Z
- Also known as: GHSA-g3rh-rrhp-jhh9
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- symfony symfony: < 5.4.43; >= 6.0.0, < 6.4.11; >= 7.0.0, < 7.1.4
- symfony/symfony (Packagist): before 5.4.43; from 6.0.0 before 6.4.11; from 7.0.0 before 7.1.4
- symfony/validator (Packagist): before 5.4.43; from 6.0.0 before 6.4.11; from 7.0.0 before 7.1.4

## Every score

- GitHub_M: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9> (web)
- <https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f> (web)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-50343> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50343.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/validator/CVE-2024-50343.yaml> (web)
- <https://github.com/symfony/symfony> (package)
- <https://symfony.com/cve-2024-50343> (web)

## Sources

- CVE List: [CVE-2024-50343](https://www.cve.org/CVERecord?id=CVE-2024-50343), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-g3rh-rrhp-jhh9](https://github.com/advisories/GHSA-g3rh-rrhp-jhh9), CC-BY-4.0, modified 2025-11-03
- NVD: [CVE-2024-50343](https://nvd.nist.gov/vuln/detail/CVE-2024-50343), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50343 · Whole record: https://cve.day/CVE-2024-50343.json · Rebuilt by cve.day 2026-11-25T22:58:47.846Z
