Intel

AIKIDO-2026-11003

symfony/security-bundle is vulnerable to Improper Authentication

Improper Authentication Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 2 days ago

59

Medium Risk

This Affects:

PHPsymfony/security-bundle
6.4.0 - 6.4.39
Fixed in 6.4.41
7.4.0 - 7.4.12
Fixed in 7.4.13
8.0.0 - 8.0.12
Fixed in 8.0.13
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

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.

How to fix this

Upgrade the symfony/security-bundle and/or the symfony/symfony library to the patch version.