- Severity: LOW
- CVE: CVE-2026-123746
- Ecosystems: composer, composer, composer, composer, composer, composer, composer, composer
- Packages: symfony/security-http, symfony/security-http, symfony/security-http, symfony/security-http, symfony/symfony, symfony/symfony, symfony/symfony, symfony/symfony
### Description
`Security::login()` and `UserAuthenticatorInterface::authenticateUser()` log a user in programmatically, for example after a password reset or after an email verification link. The fix for CVE-2024-50341 made `Security::login()` call the `checkPreAuth()` method of the user checker of the firewall. But neither method ran `checkPostAuth()`: this method runs on the `security.authentication.success` event, which `AuthenticatorManager::authenticateUser()` did not dispatch.
As a consequence, an account that a user checker rejects in `checkPostAuth()`, such as an expired account, was refused by form login and the other authenticators of the firewall, but could still be logged in through these methods.
Applications are affected when they use a custom user checker that rejects users in `checkPostAuth()` and log users in programmatically. On 6.4 and up, the default user checker does nothing in `checkPostAuth()`. On 5.4, it rejects users of the deprecated `User` class whose credentials expired.
### Resolution
`AuthenticatorManager::authenticateUser()` now dispatches the `security.authentication.success` event once the token is created and before it is stored, as authentications through the firewall do. `checkPostAuth()` runs on this event and can reject the user.
As a consequence, an exception thrown by `checkPostAuth()` now comes out of `Security::login()` and `authenticateUser()`. Code that logs users in programmatically, such as a registration controller, may ne…
Source: GitHub Security Advisories · 2026-12-01