Low severity · published Nov 6, 2024
CVE-2024-50343
Incorrect response from Validator when input ends with `\n` in symfony/validator
3.1
CVSS
0.5%
EPSS
No
On KEV
Description
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 vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
Attack vector
Network
Complexity
High
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 39% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SY
symfony · symfony
< 5.4.43; >= 6.0.0, < 6.4.11; >= 7.0.0, < 7.1.4 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-50343
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-50343
github.com
https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f
github.com
https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9
lists.debian.org
https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html
More from symfony
9.8
CVE-2026-47767
Symfony: SymfonyRuntime CVE-2024-50340 Patch Bypass: Web Requests Can Still Set APP_ENV/APP_DEBUG via parse_str/SAPI Argv Mismatch
9.8
CVE-2024-51736
Command execution hijack on Windows with Process class in symfony/process
9.1
CVE-2026-45069
Symfony: OidcTokenHandler Accepts JWTs Missing aud/iss/exp Claims
9.1
CVE-2026-45063
Symfony: Identity Spoofing via Unanchored DN Regex in X509Authenticator
8.6
CVE-2026-48736
Symfony: IpUtils::PRIVATE_SUBNETS Omits IPv6 Transition Forms (6to4, NAT64, Teredo, IPv4-compatible): SSRF Bypass in NoPrivateNetworkHttpClient
