Live threats

All CVEs / symfony

CVE-2024-50343symfony

Low 3.1

Priority
19
CVSS 3.1
3.1
EPSS
0.7%
probability of exploitation in 30 days · percentile 50
Auth required
Yes
Published
Nov 6, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for symfony.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist symfony/symfony < 5.4.43 5.4.43 composer require "symfony/symfony:^5.4.43"
Packagist symfony/symfony ≥ 6.0.0 < 6.4.11 6.4.11 composer require "symfony/symfony:^6.4.11"
Packagist symfony/symfony ≥ 7.0.0 < 7.1.4 7.1.4 composer require "symfony/symfony:^7.1.4"
Packagist symfony/validator < 5.4.43 5.4.43 composer require "symfony/validator:^5.4.43"
Packagist symfony/validator ≥ 6.0.0 < 6.4.11 6.4.11 composer require "symfony/validator:^6.4.11"
Packagist symfony/validator ≥ 7.0.0 < 7.1.4 7.1.4 composer require "symfony/validator:^7.1.4"

Per OSV / GitHub Advisories (GHSA-g3rh-rrhp-jhh9). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.