Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/validator
  4. ›
  5. CVE-2024-50343

CVE-2024-50343: Symfony has an incorrect response from Validator when input ends with `\n`

November 6, 2024

It is possible to trick a Validator configured with a regular expression using the $ metacharacters, with an input ending with \n.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50343.yaml
  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/validator/CVE-2024-50343.yaml
  • github.com/advisories/GHSA-g3rh-rrhp-jhh9
  • github.com/symfony/symfony
  • github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f
  • github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9
  • nvd.nist.gov/vuln/detail/CVE-2024-50343
  • symfony.com/cve-2024-50343

Code Behaviors & Features

Detect and mitigate CVE-2024-50343 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.4.43, all versions starting from 6.0.0 before 6.4.11, all versions starting from 7.0.0 before 7.1.4

Fixed versions

  • 5.4.43
  • 6.4.11
  • 7.1.4

Solution

Upgrade to versions 5.4.43, 6.4.11, 7.1.4 or above.

Impact 3.1 LOW

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

packagist/symfony/validator/CVE-2024-50343.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:16 +0000.