CVE-2024-50341: Security::login does not take into account custom user_checker
Description
The custom userchecker 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 userchecker.
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.
Other sources
CVE-2024-50341: Security::login does not take into account custom userchecker
— Packagist
symfony/security-bundle is a module for the Symphony PHP framework which provides a tight integration of the Security component into the Symfony full-stack framework. The custom userchecker defined on a firewall is not called when Login Programmaticaly with the Security::login method, leading to unwanted login. As of versions 6.4.10, 7.0.10 and 7.1.3 the Security::login method now ensure to call the configured userchecker. All users are advised to upgrade. There are no known workarounds for this vulnerability.
— NVD
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 7.1.3 - Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 7.0.10 - Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 6.4.10 - Upgrade
Upgrade
composer/symfony/security-bundleto a version that resolves this vulnerability.Fixed in 7.1.3 - Upgrade
Upgrade
composer/symfony/security-bundleto a version that resolves this vulnerability.Fixed in 7.0.10 - Upgrade
Upgrade
composer/symfony/security-bundleto a version that resolves this vulnerability.Fixed in 6.4.10 - Upgrade
Upgrade
debian/symfonyto a version that resolves this vulnerability.Fixed in 6.4.10+dfsg-1 - Upgrade
Upgrade
debian/symfonyto a version that resolves this vulnerability.Fixed in 5.4.53+dfsg-0+deb12u1Fixed in 6.4.41+dfsg-0+deb13u1Fixed in 7.4.22+dfsg-1 - Upgrade
Upgrade
symfony/security-bundleto a version that resolves this vulnerability.Fixed in 6.4.10 - Upgrade
Upgrade
symfony/security-bundleto a version that resolves this vulnerability.Fixed in 7.0.10 - Upgrade
Upgrade
symfony/security-bundleto a version that resolves this vulnerability.Fixed in 7.1.3
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50341?
CVE-2024-50341 has a critical severity due to the potential for unauthorized logins.
How do I fix CVE-2024-50341?
To fix CVE-2024-50341, update the Symfony package to version 7.1.3, 7.0.10, or 6.4.10.
What versions of Symfony are affected by CVE-2024-50341?
CVE-2024-50341 affects Symfony versions between 6.2.0 and 6.4.10, 7.0.0 and 7.0.10, and 7.1.0 and 7.1.3.
What is the impact of not resolving CVE-2024-50341?
Not resolving CVE-2024-50341 may allow attackers to gain unauthorized access to user accounts.
Is CVE-2024-50341 related to the Security::login method in Symfony?
Yes, CVE-2024-50341 specifically involves the Security::login method not calling the configured user_checker.