Dec 1, 2026·10 min read·1 visit
Symfony versions prior to 5.4.56, 6.4.50, 7.4.23, and 8.1.11 fail to dispatch the authentication success event during programmatic logins via AuthenticatorManager::authenticateUser(). This omission causes custom UserCheckerInterface::checkPostAuth() validations to be bypassed, allowing restricted or expired user accounts to establish authenticated sessions through secondary login workflows.
An authentication bypass vulnerability in the Symfony Security HTTP component (symfony/security-http) causes programmatic login operations to skip the checkPostAuth() method of configured user checkers. Because AuthenticatorManager::authenticateUser() fails to dispatch the security.authentication.success event, custom post-authentication restrictions—such as checks for expired or locked accounts—are bypassed when users authenticate via programmatic flows like password resets or email verification callbacks.
The Symfony PHP framework provides modular authentication and authorization handling through its Security component, specifically within the symfony/security-http package. Central to this architecture is Symfony\Component\Security\Http\Authentication\AuthenticatorManager, which orchestrates user authentication across interactive firewall authenticators (such as form logins, JSON API endpoints, and HTTP Basic authentication) as well as programmatic login flows.
Programmatic authentication allows developers to log a user into the application directly via code without requiring standard interactive credential submission. In Symfony, developers invoke programmatic authentication using either Symfony\Component\Security\Http\Authentication\UserAuthenticatorInterface::authenticateUser() or the higher-level Symfony\Bundle\SecurityBundle\Security::login() helper method. Both entry points delegate the core authentication token generation and session persistence to AuthenticatorManager::authenticateUser().
CVE-2026-123746 (classified under CWE-288: Authentication Bypass Using an Alternate Path or Channel) stems from an incomplete event lifecycle inside AuthenticatorManager::authenticateUser(). When a user is authenticated programmatically, the method generates an authenticated token and persists it to the token storage without dispatching the AuthenticationEvents::AUTHENTICATION_SUCCESS (security.authentication.success) event.
Because Symfony relies on event listeners subscribed to security.authentication.success to execute post-authentication account checks (UserCheckerInterface::checkPostAuth()), any custom validation logic placed in checkPostAuth() is bypassed during programmatic logins. Consequently, accounts that are properly rejected during standard interactive logins—such as expired, suspended, or password-lapsed accounts—can establish valid authenticated sessions through secondary workflows like password reset confirmations or email verification links.
In Symfony's security architecture, account status verification is decoupled from credential verification through the Symfony\Component\Security\Core\User\UserCheckerInterface. This interface defines two distinct lifecycle hooks: checkPreAuth(UserInterface $user) and checkPostAuth(UserInterface $user). The checkPreAuth() method executes prior to credential evaluation to verify basic account validity (e.g., checking whether an account is deleted or administratively banned). Conversely, checkPostAuth() executes after credential verification to enforce stateful or temporal rules, such as verifying whether the user's password or account tenure has expired.
Enforcement of these checks during the authentication lifecycle is managed by Symfony\Component\Security\Http\EventListener\UserCheckerListener. During a standard interactive firewall authentication flow in AuthenticatorManager::executeAuthenticator(), the manager dispatches a specific sequence of events:
CheckPassportEvent (triggers UserCheckerListener::preCheckCredentials(), which calls checkPreAuth()).AuthenticationTokenCreatedEvent (allows listeners to inspect or mutate the newly created security token).AuthenticationSuccessEvent under the event name AuthenticationEvents::AUTHENTICATION_SUCCESS (security.authentication.success).UserCheckerListener registers its postCheckCredentials() method as a listener on AuthenticationEvents::AUTHENTICATION_SUCCESS with a priority of 256. When this event fires, postCheckCredentials() extracts the user object from the event token and invokes $this->userChecker->checkPostAuth($user). If the user fails the check, the method throws an AccountStatusException subclass (such as AccountExpiredException or CredentialsExpiredException), aborting the authentication flow before the token is committed to TokenStorageInterface.
The root cause of CVE-2026-123746 lies in how AuthenticatorManager::authenticateUser() implemented an abbreviated version of this lifecycle. When authenticating a user programmatically, authenticateUser() constructed a SelfValidatingPassport, generated the authenticated token via $authenticator->createToken(), and dispatched AuthenticationTokenCreatedEvent. Immediately afterward, it called $this->handleAuthenticationSuccess(), which writes the token into TokenStorageInterface and triggers the authenticator's success handler.
By omitting the dispatch of AuthenticationEvents::AUTHENTICATION_SUCCESS between AuthenticationTokenCreatedEvent and handleAuthenticationSuccess(), UserCheckerListener::postCheckCredentials() was never invoked. This vulnerability represents an incomplete remediation of an earlier flaw, CVE-2024-50341. The patch for CVE-2024-50341 ensured that Security::login() explicitly invoked checkPreAuth(), but it failed to address checkPostAuth() within AuthenticatorManager::authenticateUser().
The defect and its corresponding fix are localized within src/Symfony/Component/Security/Http/Authentication/AuthenticatorManager.php. In vulnerable versions, authenticateUser() transitions directly from token creation announcement to final session persistence.
Below is the vulnerable implementation of AuthenticatorManager::authenticateUser() prior to commit af0aae5012beedf0a0c3fd581fd8b9ef696240c4:
public function authenticateUser(UserInterface $user, AuthenticatorInterface $authenticator, Request $request, array $badges = [], array $attributes = []): ?Response
{
// create an authenticated token for the User
$passport = new SelfValidatingPassport(new UserBadge($user->getUserIdentifier(), fn () => $user), $badges);
foreach ($attributes as $k => $v) {
$passport->setAttribute($k, $v);
}
$token = $authenticator->createToken($passport, $this->firewallName);
// announce the authentication token
$token = $this->eventDispatcher->dispatch(new AuthenticationTokenCreatedEvent($token, $passport))->getAuthenticatedToken();
// VULNERABILITY: AuthenticationEvents::AUTHENTICATION_SUCCESS is never dispatched here.
// UserCheckerListener::postCheckCredentials() is skipped before storing the token.
// authenticate this in the system
return $this->handleAuthenticationSuccess($token, $passport, $request, $authenticator, $this->tokenStorage->getToken());
}Commit af0aae5012beedf0a0c3fd581fd8b9ef696240c4, authored by Nicolas Grekas, resolves the vulnerability by dispatching AuthenticationSuccessEvent under the AuthenticationEvents::AUTHENTICATION_SUCCESS event identifier immediately after AuthenticationTokenCreatedEvent and prior to calling handleAuthenticationSuccess():
File: src/Symfony/Component/Security/Http/Authentication/AuthenticatorManager.php
@@ -83,6 +83,8 @@ public function authenticateUser(UserInterface $user, AuthenticatorInterface $au
// announce the authentication token
$token = $this->eventDispatcher->dispatch(new AuthenticationTokenCreatedEvent($token, $passport))->getAuthenticatedToken();
+ $this->eventDispatcher->dispatch(new AuthenticationSuccessEvent($token), AuthenticationEvents::AUTHENTICATION_SUCCESS);
+
// authenticate this in the system
return $this->handleAuthenticationSuccess($token, $passport, $request, $authenticator, $this->tokenStorage->getToken());
}To verify the fix and prevent regressions, the patch adds unit test testAuthenticateUserRunsThePostAuthCheckOfTheUserChecker() to AuthenticatorManagerTest.php. The test configures a mock UserCheckerInterface that throws an AccountExpiredException when checkPostAuth() is called, attaches UserCheckerListener::postCheckCredentials to the event dispatcher, and verifies that calling $manager->authenticateUser() both throws the exception and leaves TokenStorage empty (null).
public function testAuthenticateUserRunsThePostAuthCheckOfTheUserChecker()
{
$authenticator = $this->createMock(TestInteractiveAuthenticator::class);
$authenticator->method('createToken')->willReturn($this->token);
// Verify the authenticator's success handler is never reached when post-auth fails
$authenticator->expects($this->never())->method('onAuthenticationSuccess');
$userChecker = $this->createMock(UserCheckerInterface::class);
$userChecker->expects($this->once())
->method('checkPostAuth')
->with($this->user)
->willThrowException(new AccountExpiredException());
$this->eventDispatcher->addListener(
AuthenticationEvents::AUTHENTICATION_SUCCESS,
[new UserCheckerListener($userChecker), 'postCheckCredentials']
);
$tokenStorage = new TokenStorage();
$manager = new AuthenticatorManager([$authenticator], $tokenStorage, $this->eventDispatcher, 'main');
try {
$manager->authenticateUser($this->user, $authenticator, $this->request);
$this->fail('The user checker should have rejected the user.');
} catch (AccountExpiredException $e) {
// Expected exception caught
}
// Confirm the rejected token was not persisted to storage
$this->assertNull($tokenStorage->getToken());
}The fix aligns the post-token-creation behavior of AuthenticatorManager::authenticateUser() with the standard interactive authentication flow in AuthenticatorManager::executeAuthenticator(). Combined with the earlier fix for CVE-2024-50341 (which added checkPreAuth() execution to Security::login()), programmatic logins via Security::login() now trigger both pre-authentication and post-authentication checks.
One architectural nuance remains for developers calling UserAuthenticatorInterface::authenticateUser() directly rather than Security::login(). Because Security::login() invokes checkPreAuth() directly before delegating to UserAuthenticatorInterface::authenticateUser(), callers who bypass Security::login() and call AuthenticatorManager::authenticateUser() directly will execute checkPostAuth() (via AUTHENTICATION_SUCCESS), while CheckPassportEvent (which triggers checkPreAuth() in interactive flows) is still not dispatched inside AuthenticatorManager::authenticateUser(). Developers implementing custom programmatic login flows should prefer Security::login() or ensure checkPreAuth() is enforced if calling UserAuthenticatorInterface::authenticateUser() directly.
Exploiting CVE-2026-123746 does not require memory corruption or malformed protocol payloads; rather, it involves leveraging legitimate application workflows that culminate in a programmatic login. For an application to be vulnerable, two specific architectural preconditions must be satisfied:
UserCheckerInterface on its security firewall that enforces account rejection logic inside checkPostAuth(UserInterface $user). Default Symfony installations use Symfony\Component\Security\Core\User\InMemoryUserChecker or standard user checkers where checkPostAuth() is a no-op, meaning default configurations are unaffected.$security->login($user) or $userAuthenticator->authenticateUser($user, $authenticator, $request).Consider a common enterprise Symfony application with the following custom user checker and password reset controller:
namespace App\Security;
use App\Entity\User;
use Symfony\Component\Security\Core\Exception\AccountExpiredException;
use Symfony\Component\Security\Core\Exception\CustomUserMessageAccountStatusException;
use Symfony\Component\Security\Core\User\UserCheckerInterface;
use Symfony\Component\Security\Core\User\UserInterface;
class CustomAccountChecker implements UserCheckerInterface
{
public function checkPreAuth(UserInterface $user): void
{
if (!$user instanceof User) {
return;
}
if ($user->isDeleted()) {
throw new CustomUserMessageAccountStatusException('Account has been deleted.');
}
}
public function checkPostAuth(UserInterface $user): void
{
if (!$user instanceof User) {
return;
}
// Post-auth check: verify subscription / account expiration or administrative suspension
if ($user->getExpiresAt() !== null && $user->getExpiresAt() < new \DateTimeImmutable()) {
throw new AccountExpiredException('Your account access has expired.');
}
}
}When a user whose expiresAt timestamp is in the past attempts to log in through the standard login form (form_login), Symfony validates their password and then fires AuthenticationEvents::AUTHENTICATION_SUCCESS. CustomAccountChecker::checkPostAuth() executes, throws AccountExpiredException, and denies access.
However, if the same application implements an automated login after a password reset using Symfony's Security::login() service:
#[Route('/reset-password/confirm/{token}', name: 'app_reset_password_confirm')]
public function resetConfirm(string $token, Request $request, Security $security): Response
{
$user = $this->resetPasswordHelper->validateTokenAndFetchUser($token);
if ($this->isValidPasswordResetSubmission($request)) {
$this->updateUserPassword($user, $request->request->get('new_password'));
// Programmatic login after password update:
// In vulnerable versions, checkPreAuth() runs, but checkPostAuth() is skipped!
return $security->login($user, 'form_login', 'main');
}
// ...
}/login and receives an "Account expired" error generated by checkPostAuth()./reset-password and requests a password reset token for their account email address.checkPreAuth()), the application dispatches a password reset link to the user's email./reset-password/confirm/{token} and submits a new password.$security->login($user, 'form_login', 'main'), which delegates to AuthenticatorManager::authenticateUser().AuthenticatorManager::authenticateUser() skips AuthenticationEvents::AUTHENTICATION_SUCCESS, bypasses CustomAccountChecker::checkPostAuth(), stores the authenticated UsernamePasswordToken in the session, and returns a session cookie granting full authenticated access to the expired account.The security impact of CVE-2026-123746 is scored at 2.3 (Low) under CVSS v4.0 (CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N). The low base score reflects the strict preconditions required for exploitation (AT:P - Attack Requirements Present) and the limited scope of compromise (PR:L, VC:L, VI:L).
Specifically, an attacker cannot use this vulnerability to compromise arbitrary accounts without possessing control over the target account's secondary authentication channel (such as the account's registered email inbox for password reset or magic link delivery). Furthermore, the attacker only gains the privileges inherent to that specific restricted user account (VC:L/VI:L), with no direct impact on application availability (VA:N) or downstream systems (SC:N/SI:N/SA:N).
Despite the low CVSS v4.0 rating, the real-world impact depends heavily on how an organization partitions its security controls between checkPreAuth() and checkPostAuth(). Symfony documentation historically suggested placing credential-dependent or post-verification checks (such as account expiration, mandatory 2FA enrollment enforcement, or license/subscription validity checks) inside checkPostAuth() to prevent user enumeration or timing leaks before password verification.
In multi-tenant SaaS platforms or enterprise applications where customer offboarding, trial expiration, or compliance suspension is enforced inside checkPostAuth(), this vulnerability allows former employees or lapsed subscribers who retain access to their email address to regain authenticated access to the platform.
From a threat intelligence perspective, the Exploit Prediction Scoring System (EPSS) score for CVE-2026-123746 is 0.00337 (0.34%, 29.07th percentile), indicating a low likelihood of widespread automated exploitation. Because exploitation requires application-specific knowledge of custom UserChecker implementations and business logic workflows, automated mass-scanning is unfeasible. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and no public weaponized exploits exist.
To remediate CVE-2026-123746, administrators and developers must upgrade the symfony/security-http package (or the monolithic symfony/symfony package) to a patched release corresponding to their active major branch:
Updates can be applied via Composer:
composer update symfony/security-http --with-dependencies> [!NOTE]
> After upgrading symfony/security-http, ensure that any unit or integration tests mocking AuthenticatorManager::authenticateUser() account for the newly dispatched AuthenticationEvents::AUTHENTICATION_SUCCESS event, as listeners attached to security.authentication.success will now execute during programmatic logins.
For environments where upgrading Symfony packages cannot be performed immediately, developers can implement two complementary workarounds:
checkPostAuth() Before Programmatic Logins: Inject the firewall's UserCheckerInterface service into any controller or service that invokes Security::login() or UserAuthenticatorInterface::authenticateUser(), and call checkPostAuth($user) manually before authenticating:use Symfony\Bundle\SecurityBundle\Security;
use Symfony\Component\Security\Core\User\UserCheckerInterface;
use Symfony\Component\Security\Core\User\UserInterface;
public function authenticateVerifiedUser(
UserInterface $user,
UserCheckerInterface $userChecker,
Security $security
): void {
// Manually enforce both pre-auth and post-auth checks
$userChecker->checkPreAuth($user);
$userChecker->checkPostAuth($user);
$security->login($user);
}checkPreAuth(): If the validation logic inside checkPostAuth() does not strictly depend on credentials having already been verified (for example, checking an isSuspended or accountExpiresAt flag on the user entity), move that validation logic into checkPreAuth() and ensure the application is running a version patched against CVE-2024-50341.CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N| Product | Affected Versions | Fixed Version |
|---|---|---|
symfony/security-http Symfony | < 5.4.56 | 5.4.56 |
symfony/security-http Symfony | >= 6.0.0, < 6.4.50 | 6.4.50 |
symfony/security-http Symfony | >= 7.0.0, < 7.4.23 | 7.4.23 |
symfony/security-http Symfony | >= 8.0.0, < 8.1.11 | 8.1.11 |
| Attribute | Detail |
|---|---|
| CVE ID | CVE-2026-123746 (GHSA-8f57-m8wj-x65w) |
| Vulnerability Class | CWE-288: Authentication Bypass Using an Alternate Path or Channel |
| Affected Component | symfony/security-http (AuthenticatorManager::authenticateUser) |
| CVSS v4.0 Score | 2.3 Low (CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N) |
| EPSS Score | 0.34% (29.07th Percentile) |
| Impact | Bypass of UserCheckerInterface::checkPostAuth() restrictions during programmatic login |
| Exploit Status | No known public exploits or active exploitation |
| CISA KEV Status | Not Listed |
A product requires authentication, but it has an alternate path or channel that does not require authentication or lacks equivalent security validation checks.
CVE-2026-140015 is a high-severity Denial of Service (DoS) vulnerability affecting the Ruby gem websocket-driver in versions prior to 0.9.1. The flaw resides in the HyBi protocol parser (lib/websocket/driver/hybi.rb), which fails to stop buffering incoming TCP stream data after receiving a WebSocket close control frame. Because TCP supports half-open connections, an unauthenticated remote attacker can transmit a close frame to transition the state machine into a non-consuming shutdown stage, and subsequently stream arbitrary data over the open socket to exhaust server heap memory and crash the host Ruby process.
A high-severity denial-of-service vulnerability exists in node-tar versions 7.5.22 prior to 8.0.0 within the synchronous stream extraction implementation (UnpackSync). Due to an asymmetrical reference-counting design between the asynchronous base class Unpack and its synchronous subclass UnpackSync, handling any non-fatal entry error or skipped entry causes the internal pending operation counter to decrement below zero. Because the stream termination logic strictly checks for a counter value equal to zero, the extraction stream enters an unrecoverable state where lifecycle completion events (prefinish, finish, end) are never emitted, permanently blocking downstream stream consumers.
CVE-2026-140014 (also tracked as GHSA-8wcq-xq25-7fhm and RUSTSEC-2026-0594) is a cryptographic weakness in the Rust cookie library (cookie-rs). Affected versions use userspace thread-local pseudo-random number generators (rand::thread_rng() or rand::rng()) to generate 96-bit nonces for AES-256-GCM encrypted cookies in PrivateJar. Because these generators buffer entropy in userspace memory, invoking a Unix fork() system call without exec() clones the internal RNG buffer into child processes. When sibling or parent-child processes subsequently seal private cookies on the same thread using a shared key, they emit identical nonces. This nonce reuse under AES-GCM compromises ciphertext confidentiality via keystream XOR recovery and enables arbitrary cookie forgery via polynomial GHASH authentication key recovery.
An algorithmic complexity vulnerability (CWE-407) in the JavaScript glob-matching package minimatch affects versions 11.0.0 through 11.0.6. The flaw originates in the mergeRows() optimization method in src/index.ts, which repeatedly clones and joins entire pattern arrays across every wildcard segment position. This creates quadratic O(N^2) compilation overhead for patterns containing repeated slash-separated wildcards, blocking the single-threaded Node.js event loop and resulting in an unauthenticated Denial of Service.
A denial-of-service vulnerability exists in the Go library github.com/blakesmith/ar across all released versions. The archive header parser fails to validate that the 10-byte decimal size field of an archive member is non-negative. When an application processes a crafted Unix ar archive (such as a .deb package or .rlib archive) containing a negative member size, a subsequent read operation attempts to reslice an internal byte buffer using the negative integer as the upper bound. This triggers an unhandled Go runtime slice bounds out-of-range panic, terminating the calling process.
Vite+ (vp) versions 0.2.9 through 1.5.0 contain an integrity verification flaw (CWE-494) in the internal package manager bootstrap mechanism. When initializing in an environment where the pinned pnpm distribution is not cached, the runtime queries the registry specified in the local workspace's .npmrc file and validates the downloaded tarball exclusively against the self-reported integrity digest provided by that same registry. An attacker who supplies a repository with a malicious .npmrc pointing to an attacker-controlled registry can achieve arbitrary code execution when a developer or CI runner invokes basic vp commands.