Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccount rejected by checkPostAuth (e.g. expired)
-
ExploitApp calls authenticateUserAndHandleSuccess()
-
ExecutionHandler stores token without checkPostAuth
-
ImpactRejected account gains authenticated session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all of the following, per the advisory: the legacy Guard component (Symfony 5.4; removed in 6.0), programmatic login through GuardAuthenticatorHandler::authenticateUserAndHandleSuccess() (as in MakerBundle-generated registration controllers), and a user checker that rejects the account in checkPostAuth() - either a custom checker or the default checker rejecting deprecated User-class accounts with expired credentials. The 'attacker' is the owner of an account that should be rejected (e.g., an expired account). Limiting factors: applications not using Guard, not using this handler method, or whose user checker performs no checkPostAuth() rejection are unaffected; checkPreAuth() is intentionally still skipped for programmatic logins and is not part of this issue. The complete fix requires updating both symfony/security-guard and symfony/security-bundle to 5.4.57, since SecurityBundle must pass the firewall user checkers to the handler; updating is the fix the vendor provides. |
| Impact | This is a low-priority authentication logic flaw, not an emergency, and the signals are consistent. The input CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N) with VI:L and all other impacts N yields a 2.3 score, and the vuln.today Decision label is 'monitor' - both point to minor severity. There is no KEV listing and no EPSS score or PoC reference in the input, so exploitation status is 'no public exploit identified at time of analysis'. PR:L indicates the scenario involves an account holder (an already-rejected or expired user), not an anonymous external attacker, and AT:P reflects that a specific non-default precondition must hold. The real-world impact is narrow: it only matters for applications still on the legacy Guard component (Symfony 5.4; Guard was removed in 6.0) that use a custom user checker rejecting users in checkPostAuth() and log users in via authenticateUserAndHandleSuccess(). No signals conflict; the chief caveat is that this requires a specific code and configuration pattern rather than affecting default deployments. |
| Exploit ScenarioDerived | An application built on Symfony 5.4 Guard uses authenticateUserAndHandleSuccess() for programmatic login (e.g., auto-login after registration) with a user checker that normally rejects certain accounts in checkPostAuth(), such as expired accounts or deprecated User-class users with expired credentials. Because that method never invoked checkPostAuth() before storing the token, such an account obtains a valid authenticated session that the user checker should have blocked. No public exploit is identified; exploitation depends on the application's own login code path rather than a remotely delivered payload. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Symfony 5.4's legacy Guard component can complete a login for an account that the firewall's user checker would reject, because GuardAuthenticatorHandler::authenticateUserAndHandleSuccess() creates and stores the token without invoking checkPreAuth() or checkPostAuth(). Applications are exposed only if they use Guard together with a user checker that rejects accounts in checkPostAuth() - a custom checker, or the default checker refusing deprecated User-class accounts with expired credentials - and log users in programmatically through that method, as MakerBundle-generated registration controllers do. This is a low-priority authentication logic flaw, not an emergency, and the signals are consistent: CVSS 2.3 (v4.0) / 3.1 AV:N/AC:H/PR:L/UI:N/C:N/I:L/A:N, no CISA KEV entry, and no public exploit identified at time of analysis. The 'attacker' here is the holder of an account that should have been refused, not an anonymous remote party.
RemediationAI
Vendor-released patch: upgrade symfony/security-guard and symfony/security-bundle to 5.4.57 (symfony/symfony 5.4.57 accordingly), updating both packages together because SecurityBundle must supply the per-firewall user checkers to the guard handler - a Guard-only update will not close the gap. Composer users can pin the pair (e.g. composer require symfony/security-guard:5.4.57 symfony/security-bundle:5.4.57) or run a targeted composer update for both. The fix commit is https://github.com/symfony/symfony/commit/997321301543935ccfb62d8053472cf0a5d12354 and the advisories are https://symfony.com/cve-2026-133749 and https://github.com/symfony/symfony/security/advisories/GHSA-jj4m-pcr9-qjrm. Behavioural side effect after patching: checkPostAuth() now runs inside authenticateUserAndHandleSuccess(), so an exception such as AccountExpiredException propagates out of the call - code that logs users in programmatically (registration controllers and similar) may need to catch it and handle the rejection. Note that checkPreAuth() is still deliberately skipped for programmatic logins and is not addressed by this patch. For environments that cannot update immediately, the practical interim control is to stop routing logins through authenticateUserAndHandleSuccess() for accounts whose state the user checker is supposed to enforce - authenticate through the normal firewall flow, or evaluate the account state explicitly before establishing the session - accepting that this shifts the check into application code the framework no longer performs for you; the vendor's position is that updating is the fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Guard is the legacy authentication subsystem shipped in Symfony 5.4 and removed in Symfony 6.0; it is built around AbstractGuardAuthenticator implementations and the GuardAuthenticatorHandler service (security.authentication.guard_handler), which owns programmatic login. Symfony's firewall model separates authentication from post-authentication policy: a UserCheckerInterface implementation exposes checkPreAuth() (run before credentials are validated) and checkPostAuth() (run after, to enforce account state such as expiry, locking or credential freshness). When a Guard authenticator handles a real request, both callbacks run. authenticateUserAndHandleSuccess() bypasses that pipeline: it builds the token and hands it to the token storage without consulting the firewall's user checker at all, so the account-state gate is silently skipped. The root cause is CWE-287 (Improper Authentication) - an authentication decision path that omits a required policy check. The vendor fix refactors SecurityBundle DependencyInjection so a new security.user_checker_locator ServiceLocator is populated per firewall and injected as the fourth argument of the guard handler; the handler then calls checkPostAuth() before storing the token. checkPreAuth() remains intentionally skipped for programmatic logins (e.g. immediately after registration), as it already is in AuthenticatorManager::authenticateUser() since the related GHSA-8f57-m8wj-x65w fix. Because the wiring lives in SecurityBundle, the handler change in symfony/security-guard alone is not sufficient.
Know when Symfony gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AC:H because exploitation needs the specific Guard+checkPostAuth-rejecting-checker configuration; PR:L as the actor holds a (rejected) account; impact limited to a minor integrity/authentication-state issue, so I:L, C:N, A:N.
Primary rating from Vendor (Symfony).
CVSS VectorVendor: Symfony
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
FragmentListener in the HttpKernel component in Symfony 2.3.19 through 2.3.28, 2.4.9 through 2.4.10, 2.5.4 through 2.5.1
In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, when servic
Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. Rated critical sever
Insufficient verification of payment-claim state in the Sylius e-commerce platform (versions before 2.1.16 and 2.2.9) le
Incorrect authorization in the Sylius Shop API lets anyone holding an order token submit arbitrary payment actions - mos
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Rated high severity (C
Symfony versions up to 5.4.51 contains a vulnerability that allows attackers to operations being performed on an uninten
Reflected Cross-site scripting (XSS) vulnerability in the web profiler in SensioLabs Symfony 3.3.6 allows remote attacke
Symfony before 2.8.6 and 3.x before 3.0.6 allows remote attackers to bypass authentication by logging in with an empty p
Symphony process is a module for the Symphony PHP framework which executes commands in sub-processes. Rated critical sev
An issue was discovered in Symfony 3.4.0 through 3.4.34, 4.2.0 through 4.2.11, and 4.3.0 through 4.3.7. Rated critical s
An issue was discovered in Symfony before 4.2.12 and 4.3.x before 4.3.8. Rated critical severity (CVSS 9.8), this vulner
EUVD-2026-135238
NVD
CVE.org
EPSS
GitHub
Exploit-DB