🛡️ CVE-2024-50343 — symfony
Description
Symfony has an incorrect response from Validator when input ends with \n
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.
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is high, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity none, availability none.
Weakness class
CVE-2024-50343 is classified as CWE-20: Improper Input Validation. The application accepts input without checking that it has the expected form, so malformed values reach code that assumes they are well formed.
Affected software
CVE-2024-50343 is recorded against 3 packages.
- symfony/symfony (from 7.0.0 up to 7.1.4)
- symfony/validator (from 7.0.0 up to 7.1.4)
- unknown
Timeline and source
Published on 6 November 2024 and last revised on 3 November 2025. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)
lists.debian.org (Web)
symfony.com (Web)
CVE-2024-50343 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| symfony/symfony | 7.0.0 | 7.1.4 |
| symfony/validator | 7.0.0 | 7.1.4 |
| unknown | — | — |
Similar Threats
- High CVE-2014-4931
- High CVE-2014-5244
- High CVE-2014-5245
- Unknown CVE-2014-6061
- High CVE-2014-6072
Free Vulnerability Check
Is your site affected by CVE-2024-50343?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2024-50343 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.