CVE-2024-50343
lowpriority · track · 0EPSS 0.005 · 39 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (18)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-g3rh-rrhp-jhh9Symfony has an incorrect response from Validator when input ends with `\n`2024-11-06ghsa · osvUS
### 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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76fcnnvd
- https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2024-50343cnnvd
- https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76fenisa_euvd
- https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9enisa_euvd
- https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76fnvd
- https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9nvd
- https://lists.debian.org/debian-lts-announce/2025/05/msg00051.htmlnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan