CVE-2024-50343

Incorrect response from Validator when input ends with `\n` in symfony/validator

Published Nov 6, 2024 CVSS 3.1 · 3.1 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4200-1 symfony security update
Debian DSA Debian DSA DSA-5809-1 symfony security update
EUVD EUVD EUVD-2024-3249 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.
Github GHSA Github GHSA GHSA-g3rh-rrhp-jhh9 Symfony has an incorrect response from Validator when input ends with `\n`
Ubuntu USN Ubuntu USN USN-7272-1 Symfony vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00105}

epss

{'score': 0.00114}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Incorrect response from Validator when input ends with `\n` in symfony/validator
Weaknesses CWE-20
References
Metrics cvssV3_1

{'score': 3.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2025, 7:31 PM
Reserved
Oct 22, 2024, 5:54 PM
Status
Deferred
Published
Nov 6, 2024, 9:15 PM
Modified
Jun 17, 2026, 8:04 AM