3.1
CWE
20
Advisory Published
CVE Published
Updated

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

First published: Wed Nov 06 2024(Updated: )

### Description It is possible to trick a `Validator` configured with a regular expression using the `$` metacharacters, with an input ending with `\n`. ### Resolution Symfony now uses the `D` regex modifier to match the entire input. The patch for this issue is available [here](https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f) for branch 5.4. ### Credits We would like to thank Offscript for reporting the issue and Alexandre Daubois for providing the fix.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
composer/symfony/validator>=7.0.0<7.1.4
7.1.4
composer/symfony/validator>=6.0.0<6.4.11
6.4.11
composer/symfony/validator<5.4.43
5.4.43
composer/symfony/symfony>=7.0.0<7.1.4
7.1.4
composer/symfony/symfony>=6.0.0<6.4.11
6.4.11
composer/symfony/symfony<5.4.43
5.4.43
debian/symfony<=4.4.19+dfsg-2+deb11u6
5.4.23+dfsg-1+deb12u4
6.4.18+dfsg-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-50343?

    CVE-2024-50343 has been classified as a moderate severity vulnerability.

  • How do I fix CVE-2024-50343?

    To mitigate CVE-2024-50343, update the symfony/validator and symfony/symfony packages to version 7.1.4, 6.4.11, or 5.4.43.

  • Which Symfony versions are affected by CVE-2024-50343?

    CVE-2024-50343 affects Symfony versions ranging from 5.0.0 to 5.4.43, 6.0.0 to 6.4.11, and 7.0.0 to 7.1.4.

  • What specific issue does CVE-2024-50343 address?

    CVE-2024-50343 addresses a vulnerability in the Validator component that can be exploited using specific regular expression metacharacter patterns.

  • Is there a specific regex modifier used to resolve CVE-2024-50343?

    The resolution for CVE-2024-50343 involves using the 'D' regex modifier to ensure the entire input is matched.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203