CVE-2026-133749
Published:November 25, 2026
Updated:November 26, 2026
GuardAuthenticatorHandler::authenticateUserAndHandleSuccess() logs a user in programmatically with a Guard authenticator, for example in the registration controllers that MakerBundle generated. This method creates the token and stores it, but it calls neither checkPreAuth() nor checkPostAuth() on the user checker of the firewall. Guard authenticators run both checks when they authenticate a request.
As a consequence, an account that a user checker rejects in checkPostAuth() could still be logged in through this method, for example an expired account.
Applications are affected when they use Guard with a custom user checker that rejects users in checkPostAuth(), and log users in with authenticateUserAndHandleSuccess(). The default user checker also rejects users of the deprecated User class whose credentials expired. This is the issue of GHSA-8f57-m8wj-x65w, for the Guard component of Symfony 5.4. Guard was removed in Symfony 6.0.
GuardAuthenticatorHandler::authenticateUserAndHandleSuccess() now calls the checkPostAuth() method of the user checker of the firewall before it stores the token. AuthenticatorManager::authenticateUser() does the same since the fix for GHSA-8f57-m8wj-x65w. Like authenticateUser(), authenticateUserAndHandleSuccess() doesn't call checkPreAuth(). Programmatic logins skip this check on purpose, for example right after a registration. SecurityBundle now gives the user checkers of the firewalls to the handler, so both symfony/security-guard and symfony/security-bundle must be updated.
As a consequence, an exception thrown by checkPostAuth() now comes out of authenticateUserAndHandleSuccess(). Code that logs users in programmatically may need to catch it.
Affected Packages
https://github.com/symfony/symfony.git (GITHUB):
Affected version(s) >=v2.8.0-BETA1 <v5.4.57 || >=v3.0.0-BETA1 <v5.4.57 || >=v4.0.0-BETA1 <v5.4.57 || >=v5.0.0-BETA1 <v5.4.57Fix Suggestion:
Update to version v5.4.57symfony/security-guard (PHP):
Affected version(s) >=v4.0.0-BETA1 <v5.4.57 || >=v3.0.0-BETA1 <v5.4.57 || >=v5.0.0-BETA1 <v5.4.57 || >=v2.8.0-BETA1 <v5.4.57Fix Suggestion:
Update to version v5.4.57symfony/symfony (PHP):
Affected version(s) >=v4.0.0-BETA1 <v5.4.57 || >=v5.0.0-BETA1 <v5.4.57 || >=v3.0.0-BETA1 <v5.4.57 || >=v2.8.0-BETA1 <v5.4.57Fix Suggestion:
Update to version v5.4.57symfony/security-bundle (PHP):
Affected version(s) >=v5.0.0-BETA1 <v5.4.57 || >=v3.0.0-BETA1 <v5.4.57 || >=v4.0.0-BETA1 <v5.4.57 || >=v2.8.0-BETA1 <v5.4.57Fix Suggestion:
Update to version v5.4.57Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Authentication
EPSS
Base Score:
0.41