CVE-2024-50343
PHP vulnerability analysis and mitigation

Overview

The CVE-2024-50343 affects symfony/validator, a module for the Symphony PHP framework which provides tools to validate values. The vulnerability was discovered and disclosed on November 6, 2024. The issue affects Symfony versions prior to 5.4.43, 6.4.11, and 7.1.4. The vulnerability allows attackers to bypass validation rules when using regular expressions with the $ metacharacter by appending a newline character (\n) to the input (GitHub Advisory).

Technical details

The vulnerability exists in the Validator component's handling of regular expressions that use the $ metacharacter for end-of-string matching. When an input string ends with a newline character (\n), the validation can be bypassed because the regular expression doesn't properly match the entire input. The issue has been assigned a CVSS v3.1 base score of 3.1 (LOW) with the vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N, indicating network accessibility with high attack complexity, requiring low privileges, and potentially leading to low confidentiality impact (GitHub Advisory).

Impact

The vulnerability could allow attackers to bypass validation rules in applications using the symfony/validator component, potentially leading to the exposure of sensitive information. The impact is considered low due to the high attack complexity and limited confidentiality impact (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Symfony versions 5.4.43, 6.4.11, and 7.1.4 by implementing the D regex modifier to ensure proper matching of the entire input. Users are advised to upgrade to these patched versions (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66312MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66311MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66310MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management