CVE-2026-123746: Symfony Programmatic Logins Skip The CheckPostAuth() Vulnerability

LOW
Advisory Identifier: GHSA-8f57-m8wj-x65w
CWE-287 CWE-288
Published
Advisory Summary

CVE-2026-123746 is a LOW programmatic logins skip the checkpostauth() vulnerability (CWE-287: Improper Authentication) affecting Symfony libraries in the Packagist ecosystem. The issue involves programmatic logins skip the checkpostauth() method of user checkers. Remediation is available by upgrading affected packages to version 5.4.56, 6.4.50, 7.4.23, 8.1.11.

CVE-2026-123746 at a Glance

CVE Identifier CVE-2026-123746
GHSA Identifier GHSA-8f57-m8wj-x65w
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-287: Improper Authentication
Affected Product Symfony
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-123746

To remediate this vulnerability, upgrade all affected Symfony dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

symfony/security-http fixed: 5.4.56
Upgrade symfony/security-http to 5.4.56
symfony/security-http fixed: 6.4.50
Upgrade symfony/security-http to 6.4.50
symfony/security-http fixed: 7.4.23
Upgrade symfony/security-http to 7.4.23
symfony/security-http fixed: 8.1.11
Upgrade symfony/security-http to 8.1.11
symfony/symfony fixed: 5.4.56
Upgrade symfony/symfony to 5.4.56
symfony/symfony fixed: 6.4.50
Upgrade symfony/symfony to 6.4.50
symfony/symfony fixed: 7.4.23
Upgrade symfony/symfony to 7.4.23
symfony/symfony fixed: 8.1.11
Upgrade symfony/symfony to 8.1.11
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for symfony/security-http

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-123746, inspect your project dependencies for Symfony:

inspect dependencies for symfony/security-http

Analyze the terminal output to locate any version of Symfony in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.56), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Symfony, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Description `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. As 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. Applications 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. ### Resolution `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. As 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. `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. The 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). ### Credits Symfony would like to thank Vincent Cassiau (CyberVanguard) for reporting the issue and Nicolas Grekas for providing the fix. Symfony would also like to thank [Bruno Dias](https://github.com/cx-bruno-dias) from Checkmarx for their help getting a CVE assigned.

CVE-2026-123746 Affected Symfony Versions

8 component(s)
Fixed Versions:
5.4.566.4.507.4.238.1.11
Product / Package Ecosystem Affected Versions Fixed Version
symfony/security-http
Packagist
< 5.4.56
5.4.56
symfony/security-http
Packagist
≥ 6.0.0
< 6.4.50
6.4.50
symfony/security-http
Packagist
≥ 7.0.0
< 7.4.23
7.4.23
symfony/security-http
Packagist
≥ 8.0.0
< 8.1.11
8.1.11
symfony/symfony
Packagist
< 5.4.56
5.4.56
symfony/symfony
Packagist
≥ 6.0.0
< 6.4.50
6.4.50
symfony/symfony
Packagist
≥ 7.0.0
< 7.4.23
7.4.23
symfony/symfony
Packagist
≥ 8.0.0
< 8.1.11
8.1.11

References

Frequently Asked Questions

What is CVE-2026-123746?
CVE-2026-123746 is a security vulnerability in Symfony involving Programmatic Logins Skip the checkPostAuth() Method of User Checkers under CWE-287: Improper Authentication.
Which Symfony versions are affected?
Affected versions include releases prior to 5.4.56, 6.4.50, 7.4.23, 8.1.11 across affected packages: symfony/security-http, symfony/symfony.
What version fixes CVE-2026-123746?
Upgrading to 5.4.56, 6.4.50, 7.4.23, 8.1.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/security-http affected?
Yes, symfony/security-http is affected in releases prior to 5.4.56, 6.4.50, 7.4.23, 8.1.11. Upgrade your dependency to 5.4.56, 6.4.50, 7.4.23, 8.1.11 or later.
Is symfony/symfony affected?
Yes, symfony/symfony is affected in releases prior to 5.4.56, 6.4.50, 7.4.23, 8.1.11. Upgrade your dependency to 5.4.56, 6.4.50, 7.4.23, 8.1.11 or later.
What CWE is associated with CVE-2026-123746?
CVE-2026-123746 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Packagist dependencies for CVE-2026-123746?
Run the dependency tree command: 'inspect dependencies for symfony/security-http'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8f57-m8wj-x65w",
  "modified" : "2026-12-01T21:45:53Z",
  "published" : "2026-12-01T21:45:52Z",
  "aliases" : [ "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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/security-http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.56"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/security-http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.4.50"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/security-http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.4.23"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/security-http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.1.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.56"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.4.50"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.4.23"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.1.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "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" : "WEB",
    "url" : "https://github.com/symfony/symfony/commit/af0aae5012beedf0a0c3fd581fd8b9ef696240c4"
  }, {
    "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"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287", "CWE-288" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T21:45:52Z",
    "nvd_published_at" : "2026-11-06T13:17:29Z"
  }
}