Vulnerability · Published Nov 6, 2024 · Assigned by GitHub_M

CVE-2024-50343Incorrect response from Validator when input ends with `\n` in symfony/validator

Low 3.1

In plain English

A low-severity improper input validation in symfony from symfony. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.1Low
Exploit odds (30 days)0.5%top 60.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12symfony5.4.23+dfsg-1+deb12u3DSA-5809-1
Debian:12symfony5.4.23+dfsg-1+deb12u3DEBIAN-CVE-2024-50343
Debian:13symfony6.4.11+dfsg-1DEBIAN-CVE-2024-50343
Debian:14symfony6.4.11+dfsg-1DEBIAN-CVE-2024-50343
Packagistsymfony/symfony7.1.4GHSA-g3rh-rrhp-jhh9
Packagistsymfony/symfony5.4.43GHSA-g3rh-rrhp-jhh9
Packagistsymfony/symfony6.4.11GHSA-g3rh-rrhp-jhh9
Packagistsymfony/validator7.1.4GHSA-g3rh-rrhp-jhh9
Packagistsymfony/validator5.4.43GHSA-g3rh-rrhp-jhh9
Packagistsymfony/validator6.4.11GHSA-g3rh-rrhp-jhh9
Ubuntu:25.10symfonyno fix listedUBUNTU-CVE-2024-50343
Ubuntu:26.04:LTSsymfonyno fix listedUBUNTU-CVE-2024-50343

Affected products (as reported)

VendorProductVersions
symfony symfony < 5.4.43>= 6.0.0, < 6.4.11>= 7.0.0, < 7.1.4

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

References