GitHub Advisoryadvisory · Packagist

GHSA-jxgr-3v7q-3w9v Symfony's `Security::login` does not take into account custom `user_checker`

LOW Published 2024-11-06 Modified 2024-11-06 Official page ↗
Aliases
CVE-2024-50341
Ecosystem
Packagist
Packages
symfony/security-bundle, symfony/symfony
Severity
Low
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
Weaknesses
CWE-287
Reviewed
2024-11-06

Affected packages

• Packagist symfony/security-bundle: >= 6.2.0, < 6.4.10 → fixed in 6.4.10 • Packagist symfony/security-bundle: >= 7.0.0, < 7.0.10 → fixed in 7.0.10 • Packagist symfony/security-bundle: >= 7.1.0, < 7.1.3 → fixed in 7.1.3 • Packagist symfony/symfony: >= 6.2.0, < 6.4.10 → fixed in 6.4.10 • Packagist symfony/symfony: >= 7.0.0, < 7.0.10 → fixed in 7.0.10 • Packagist symfony/symfony: >= 7.1.0, < 7.1.3 → fixed in 7.1.3

Description

Description The custom `user_checker` defined on a firewall is not called when Login Programmaticaly with the `Security::login` method, leading to unwanted login. Resolution The `Security::login` method now ensure to call the configured `user_checker`. The patch for this issue is available here for branch 6.4. Credits We would like to thank Oleg Andreyev, Antoine MAKDESSI for reporting the issue and Christian Flothmann for providing the fix.

Related

Alias · CVE (1)

  • CVE-2024-50341 symfony/security-bundle is a module for the Symphony PHP framework which provides a tight integration of the Security component into the… vulnerability

Weakness · CWE (1)

  • CWE-287 Improper Authentication weakness

References