ADVISORIES

GitHub Advisory Database

GHSA-jxgr-3v7q-3w9v

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

Details

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.

Affected packages

EcosystemPackageAffected versions
Packagistsymfony/security-bundle
From 6.2.0 before 6.4.10 (fixed in 6.4.10)
Packagistsymfony/security-bundle
From 7.0.0 before 7.0.10 (fixed in 7.0.10)
Packagistsymfony/security-bundle
From 7.1.0 before 7.1.3 (fixed in 7.1.3)
Packagistsymfony/symfony
From 6.2.0 before 6.4.10 (fixed in 6.4.10)
Packagistsymfony/symfony
From 7.0.0 before 7.0.10 (fixed in 7.0.10)
Packagistsymfony/symfony
From 7.1.0 before 7.1.3 (fixed in 7.1.3)

References