{"id":"CVE-2026-123746","aliases":["GHSA-8f57-m8wj-x65w"],"url":"https://o3.security/vulnerability/CVE-2026-123746","summary":"Symfony: Programmatic Logins Skip the checkPostAuth() Method of User Checkers","details":"### Description\n\n`Security::login()` and `UserAuthenticatorInterface::authenticateUser()` log a user in programmatically, for example after a password reset or after an email verification link. The fix for CVE-2024-50341 made `Security::login()` call the `checkPreAuth()` method of the user checker of the firewall. But neither method ran `checkPostAuth()`: this method runs on the `security.authentication.success` event, which `AuthenticatorManager::authenticateUser()` did not dispatch.\n\nAs a consequence, an account that a user checker rejects in `checkPostAuth()`, such as an expired account, was refused by form login and the other authenticators of the firewall, but could still be logged in through these methods.\n\nApplications are affected when they use a custom user checker that rejects users in `checkPostAuth()` and log users in programmatically. On 6.4 and up, the default user checker does nothing in `checkPostAuth()`. On 5.4, it rejects users of the deprecated `User` class whose credentials expired.\n\n### Resolution\n\n`AuthenticatorManager::authenticateUser()` now dispatches the `security.authentication.success` event once the token is created and before it is stored, as authentications through the firewall do. `checkPostAuth()` runs on this event and can reject the user.\n\nAs a consequence, an exception thrown by `checkPostAuth()` now comes out of `Security::login()` and `authenticateUser()`. Code that logs users in programmatically, such as a registration controller, may need to catch it.\n\n`UserAuthenticatorInterface::authenticateUser()` still doesn't call `checkPreAuth()`, on purpose. That's where checks like \"the email isn't verified yet\" usually are, and registration controllers use this method to log in users that just registered.\n\nThe patches for this issue are available [here](https://github.com/symfony/symfony/commit/af0aae5012beedf0a0c3fd581fd8b9ef696240c4) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).\n\n### Credits\n\nSymfony would like to thank Vincent Cassiau (CyberVanguard) for reporting the issue and Nicolas Grekas for providing the fix.\n\nSymfony would also like to thank [Bruno Dias](https://github.com/cx-bruno-dias) from Checkmarx for their help getting a CVE assigned.","published":"2026-11-06T12:36:50.994Z","modified":"2026-11-12T02:30:25.548027597Z","cvss":null,"epss":{"score":0.00337,"percentile":0.29072,"asOf":"2026-12-01"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"symfony/security-http","fixedVersion":"5.4.56"},{"ecosystem":"Packagist","name":"symfony/security-http","fixedVersion":"6.4.50"},{"ecosystem":"Packagist","name":"symfony/security-http","fixedVersion":"7.4.23"},{"ecosystem":"Packagist","name":"symfony/security-http","fixedVersion":"8.1.11"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"5.4.56"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"6.4.50"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"7.4.23"},{"ecosystem":"Packagist","name":"symfony/symfony","fixedVersion":"8.1.11"}],"fix":{"url":"https://github.com/symfony/symfony/commit/af0aae5012beedf0a0c3fd581fd8b9ef696240c4","label":"symfony/symfony@af0aae5"},"references":[{"type":"WEB","url":"https://packagist.org/packages/symfony/security-http"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/123xxx/CVE-2026-123746.json"},{"type":"ADVISORY","url":"https://github.com/symfony/symfony/security/advisories/GHSA-8f57-m8wj-x65w"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123746"},{"type":"FIX","url":"https://github.com/symfony/symfony/commit/af0aae5012beedf0a0c3fd581fd8b9ef696240c4"},{"type":"PACKAGE","url":"https://github.com/symfony/security-http"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2026-123746.yaml"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-123746.yaml"},{"type":"PACKAGE","url":"https://github.com/symfony/symfony"},{"type":"WEB","url":"https://github.com/symfony/symfony/releases/tag/v5.4.56"},{"type":"WEB","url":"https://github.com/symfony/symfony/releases/tag/v6.4.50"},{"type":"WEB","url":"https://github.com/symfony/symfony/releases/tag/v7.4.23"},{"type":"WEB","url":"https://github.com/symfony/symfony/releases/tag/v8.1.11"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-12T02:30:25.548027597Z"}}