Skip to main content
← All vulnerabilities
CVE-2024-50343GHSA-G3RH-RRHP-JHH9

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.43, 6.4.11, 7.1.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • symfony symfony

    fixed in 5.4.43; From 6.0.0 · fixed in 6.4.11; From 7.0.0 · fixed in 7.1.4

  • symfony/symfonyPackagist

    fixed in 5.4.43

  • symfony/symfonyPackagist

    From 6.0.0 · fixed in 6.4.11

  • symfony/symfonyPackagist

    From 7.0.0 · fixed in 7.1.4

  • symfony/validatorPackagist

    fixed in 5.4.43

  • symfony/validatorPackagist

    From 6.0.0 · fixed in 6.4.11

  • symfony/validatorPackagist

    From 7.0.0 · fixed in 7.1.4

References 2

GitHub · symfony/symfony