symfony/security-bundle is vulnerable to Improper Authentication
59
Medium Risk
When Security::login() is called with a target firewall name that differs from the firewall handling the current request, the freshly minted authentication token is written to the current firewall session bucket instead of the target firewall bucket. Stateful applications with multiple firewalls can therefore persist the wrong token context, leaving the target firewall unauthenticated or exposing the target user identity and roles on the current firewall. The fix writes the token under the target firewall session key and clears _security_firewall_run so the current firewall ContextListener does not overwrite its own bucket with a foreign token.
You are affected if you are using a version that falls within the vulnerable range.
symfony/security-bundle is vulnerable to Improper Authentication in versions 6.4.0 - 6.4.39, 7.4.0 - 7.4.12 and 8.0.0 - 8.0.12.
Upgrade the symfony/security-bundle and/or the symfony/symfony library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant