GHSA-jxgr-3v7q-3w9v

Symfony's `Security::login` does not take into account custom `user_checker`

At a glance

Published
Updated
CVE
CVE-2024-50341
CVSS_V3
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
CVSS_V4
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

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](https://github.com/symfony/symfony/commit/22a0789a0085c3ee96f4ef715ecad8255cf0e105) 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.

Affected packages

PackageVersions
Packagist · symfony/security-bundleintroduced 6.2.0, fixed 6.4.10
Packagist · symfony/security-bundleintroduced 7.0.0, fixed 7.0.10
Packagist · symfony/security-bundleintroduced 7.1.0, fixed 7.1.3
Packagist · symfony/symfonyintroduced 6.2.0, fixed 6.4.10
Packagist · symfony/symfonyintroduced 7.0.0, fixed 7.0.10
Packagist · symfony/symfonyintroduced 7.1.0, fixed 7.1.3

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database