CVE-2026-133749Programmatic Logins With Guard Skip the checkPostAuth() Method of User Checkers
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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | symfony | Fix pending | UBUNTU-CVE-2026-133749 | |
| Ubuntu 26.04 | symfony | Under investigation | UBUNTU-CVE-2026-133749 | |
| Ubuntu 24.04 | symfony | Fix pending | UBUNTU-CVE-2026-133749 | |
| Ubuntu 22.04 | symfony | Fix pending | UBUNTU-CVE-2026-133749 | |
| Ubuntu 20.04 | symfony | Fix pending | UBUNTU-CVE-2026-133749 | |
| Ubuntu 18.04 | symfony | Fix pending | UBUNTU-CVE-2026-133749 | |
| Ubuntu 16.04 | symfony | Fix pending | UBUNTU-CVE-2026-133749 |
What the vendor says
As published in the CVE record by Symfony, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- symfony/security-bundle: affected: before 5.4.57; fixed in
5.4.57 - symfony/security-guard: affected: before 5.4.57; fixed in
5.4.57 - symfony/symfony: affected: before 5.4.57; fixed in
5.4.57
Vendor advisories:
- https://symfony.com/cve-2026-133749 (vendor-advisory)
- https://github.com/symfony/symfony/security/advisories/GHSA-jj4m-pcr9-qjrm (vendor-advisory)
- https://github.com/symfony/symfony/commit/997321301543935ccfb62d8053472cf0a5d12354 (patch)
References
- https://symfony.com/cve-2026-133749
- https://github.com/symfony/symfony/security/advisories/GHSA-jj4m-pcr9-qjrm
- https://github.com/symfony/symfony/commit/997321301543935ccfb62d8053472cf0a5d12354
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.