Skip to content
porro

Advisories  /  composer  /  symfony/symfony  /  CVE-2024-50343

LOW3.1 Composer

Symfony has an incorrect response from Validator when input ends with `\n` (CVE-2024-50343)

CVE-2024-50343 GHSA-g3rh-rrhp-jhh9 Published 6 Nov 2024

Affects 2 packages. Each has a fixed release.

$ composer require symfony/symfony:^5.4.43
$ composer require symfony/symfony:^6.4.11
$ composer require symfony/symfony:^7.1.4
$ composer require symfony/validator:^5.4.43
$ composer require symfony/validator:^6.4.11
$ composer require symfony/validator:^7.1.4

Which versions are affected

Package Affected Fixed in
symfony/symfony < 5.4.43≥ 6.0.0, < 6.4.11≥ 7.0.0, < 7.1.4 5.4.436.4.117.1.4
symfony/validator < 5.4.43≥ 6.0.0, < 6.4.11≥ 7.0.0, < 7.1.4 5.4.436.4.117.1.4

Check a site from its project folder: composer show symfony/symfony shows the installed version. Or paste the lock file into the lock file checker to check every package at once.

Timeline

  1. Advisory published, with a fix

Questions

Which version of symfony/symfony is safe from CVE-2024-50343?

7.1.4 and later. Versions affected: < 5.4.43, ≥ 6.0.0, < 6.4.11, ≥ 7.0.0, < 7.1.4.

Which version of symfony/validator is safe from CVE-2024-50343?

7.1.4 and later. Versions affected: < 5.4.43, ≥ 6.0.0, < 6.4.11, ≥ 7.0.0, < 7.1.4.