symfony/symfony security advisory
CVE-2026-133749: Programmatic Logins With Guard Skip the checkPostAuth() Method of User Checkers in symfony/symfony
CVE-2026-133749 is a low-severity authentication bypass vulnerability in the PHP package symfony/symfony (CVSS 2.3), published 25 November 2026. It is fixed in 5.4.57; earlier versions are affected. Exploiting it needs a low-privilege user account.
published 2026-11-25
- Affected versions
- >= 2.0.0, < 5.4.57
- Fixed in
- 5.4.57
- Newest release
- 8.2.0
- Type
- Authentication bypass
CWE-287 - Exploited in the wild
- Not on the CISA KEV list
checked 2026-11-29
Is your symfony/symfony version affected?
Who can exploit CVE-2026-133749
- Access: A normal, low-privilege user account in the app.
- Conditions: It only works under specific conditions the attacker does not fully control (CVSS rates the attack as high complexity).
Technical details
Weakness
Authentication bypass CWE-287
A flaw in the login or identity check lets someone be treated as logged in, or as another user, without valid credentials.
An attacker may gain access to accounts, potentially including administrators.
General description of this issue type. The advisory below covers this bug.
CVSS 4.0 breakdown
- Attack vector
- Network (remote)
- Attack complexity
- Low
- Attack requirements
- Specific conditions
- Privileges required
- Low
- User interaction
- None
- Confidentiality impact
- None
- Integrity impact
- Low
- Availability impact
- None
CVSS vector: 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
How to fix CVE-2026-133749 in symfony/symfony
- Find the installed version:
composer show symfony/symfony. If you never required it yourself,composer why symfony/symfonyshows which package pulls it in. - Update it:
composer update symfony/symfony --with-all-dependencies. You need 5.4.57 or newer. - If Composer will not go that high, your composer.json constraint is holding it back. Widen it (for example
"symfony/symfony": "^5.4.57"if you can take that version), or upgrade the package that requires it. - Run
composer audit. It reads the same advisory data and should no longer list CVE-2026-133749. - Commit composer.lock and deploy it. On the server, run
composer install --no-devfrom the lock file, notcomposer update.
If you cannot upgrade yet
- Remove accounts you do not need and review what each role can do.
- Put the admin area behind a VPN, IP allow-list or extra login until you upgrade.
- If your app does not use the affected feature, note that in your audit, but still plan the upgrade.
Is your project exposed to CVE-2026-133749?
Check the one package here, or check everything your project installs at once.
- Check symfony/symfony Enter your installed version and compare it with every known symfony/symfony advisory. Check my version
-
Check your whole composer.lock
The free checker compares every locked package with the same advisory data
composer audituses. Check composer.lock
The CVE-2026-133749 advisory
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.
References
- GitHub security advisory GHSA-jj4m-pcr9-qjrm github.com
- Symfony security advisory symfony.com
- Fix commit 9973213 github.com
Other symfony/symfony advisories
- CVE-2026-133744: JsonPath Queries Can Still Hold a Process Through Duplicated Nodes and Repeated Work: Incomplete Fix for CVE-2026-135804 2026-11-25
- CVE-2026-133747: Scoped HTTP Clients With Caching Enabled Send Their Credentials to Any Origin 2026-11-25
- CVE-2026-134791: Unclosed Comments Make the Lexer of ExpressionLanguage Quadratic, Letting Untrusted Expressions Hold a Process 2026-11-25
- CVE-2026-133755: Mailer Trusts Replies That a Man in the Middle Injects Right After STARTTLS 2026-11-25
- CVE-2026-133750: CachingHttpClient Shares Responses Between Users When Credentials Are Set With withOptions() 2026-11-25
- CVE-2026-133762: Without APP_RUNTIME_MODE, HTTP Workers Running Under the CLI SAPI Return Full Exception Dumps in Production 2026-11-25
Related
Need help patching or upgrading? Laskyr does PHP and Laravel security fixes and upgrades. Tell us what you run and we reply with a plan and a price.
Ask about a fixWhere this data comes from
- Affected and fixed versions: the Packagist security advisories API (GitHub Advisory Database and FriendsOfPHP), the same data
composer audituses. Synced 2026-11-29. - Description, score, weakness and references: NIST National Vulnerability Database (NVD), checked 2026-11-27. This product uses data from the NVD API but is not endorsed or certified by the NVD.
- Exploited-in-the-wild status: the CISA Known Exploited Vulnerabilities catalog, checked 2026-11-29.
- Compiled by Daniel Lasek at Laskyr from the sources above. Everything outside the quoted description is our plain-English reading of the record, generated from it. Spot an error? Tell us.