Dežurni tim za incidente, 0–24: +385 98 1900 984NovoIR Retainer: tim ugovoren prije napada
HR · EN
Niska 2.3CVE-2026-133749

Programmatic Logins With Guard Skip the checkPostAuth() Method of User Checkers

Objavljeno 25. 11. 2026. · Ažurirano 25. 11. 2026. · symfony/security-bundle

Izvorni opis (engleski)

Za ovu ranjivost još nema našeg sažetka. Prikazujemo službeni opis proizvođača.

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.

Zahvaćeni proizvodi i verzije

Symfony symfony/security-bundle< 5.4.57Ispravljeno u: 5.4.57
Symfony symfony/security-guard< 5.4.57Ispravljeno u: 5.4.57
Symfony symfony/symfony< 5.4.57Ispravljeno u: 5.4.57

CVSS vektor, objašnjeno

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

Put napada
Preko mreže (s interneta)
Složenost napada
Niska
Preduvjeti napada
Postoje
Potrebne ovlasti
Obični korisnik
Interakcija korisnika
Nije potrebna
Povjerljivost
Bez utjecaja
Integritet
Nizak utjecaj
Dostupnost
Bez utjecaja

Vrsta slabosti (CWE)

Reference

Izvori: CVE.org (CNA i CISA ADP), CISA KEV, FIRST EPSS. Sažetke piše AI uz pregled pravila; uvijek provjerite službenu objavu proizvođača.