CVE-2026-133749
published low CVSS 4.0 · 2.3Programmatic Logins With Guard Skip the checkPostAuth() Method of User Checkers
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Symfony | — | symfony/security-bundle0 to < 5.4.57 · Other versions: unaffected | Affected | Not stated | Symfony |
| Symfony | — | symfony/security-guard0 to < 5.4.57 · Other versions: unaffected | Affected | Not stated | Symfony |
| Symfony | — | symfony/symfony0 to < 5.4.57 · Other versions: unaffected | Affected | Not stated | Symfony |
| Debian | trixie | symfony | Advisory build | 6.4.51+dfsg-0+deb13u1 | DSA-6668-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.3 / 10
- Severity
- low
- Provider
- Symfony · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Symfony | symfony/security-bundle | 0 to < 5.4.57 (affected · semver)Default: unaffected | Symfony · cna |
| Symfony | symfony/security-guard | 0 to < 5.4.57 (affected · semver)Default: unaffected | Symfony · cna |
| Symfony | symfony/symfony | 0 to < 5.4.57 (affected · semver)Default: unaffected | Symfony · cna |
Weaknesses
1- CWE-287 CWE-287 Improper Authentication
References
3- https://github.com/symfony/symfony/commit/997321301543935ccfb62d8053472cf0a5d12354
- GHSA-jj4m-pcr9-qjrm https://github.com/symfony/symfony/security/advisories/GHSA-jj4m-pcr9-qjrm
- CVE-2026-133749 https://symfony.com/cve-2026-133749
Provider assertions
2Symfony · cna
Programmatic Logins With Guard Skip the checkPostAuth() Method of User Checkers
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dd9051e88a7fe0f6c38f54f7b0de22019abf954a8b0bb9ccd07e9b10436cd2a1
- Ingested
- 01 Dec 2026, 16:54:56 UTC
- Source record
- Official CVE record