CVE-2024-50343

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

State
Published
Severity
3.1 Low
Published
Nov 6, 2024
Updated
Nov 3, 2025
Reserved
Oct 22, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.13.1 LowCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:NGitHub_M

Weaknesses

  • CWE-20 Improper Input Validation

Affected Products

ProductVersions
symfonysymfony
  • < 5.4.43Affected
  • >= 6.0.0, < 6.4.11Affected
  • >= 7.0.0, < 7.1.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.