CVE-2026-133753: The Unanimous Strategy Grants access_control Rules When Only One of Their Roles Matches: Regression of CVE-2020-5275
With the unanimous access decision strategy, an accesscontrol rule that lists several roles requires all of them. That's the behavior restored by the fix for CVE-2020-5275. Since Symfony 5.4, the access decision manager asked each voter once about all the attributes of a rule. RoleVoter grants access as soon as the user has one of the roles. So a user who had only one of these roles was granted access:
security: accessdecisionmanager: strategy: unanimous accesscontrol: - { path: ^/admin, roles: [ROLEADMIN, ROLEAUDITOR] }
Only attributes decided by the same voter were affected. For example, a role combined with allowif still required both.
With the unanimous strategy, voters are asked about each attribute separately again, as before Symfony 5.4. Access is denied as soon as one of the attributes is denied.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Set the access decision manager strategy to `unanimous` so an access_control rule listing several roles requires all of them.
Symfony security access decision manager strategy = unanimous
Event History
Frequently Asked Questions
Which deployments are exposed to this authorization bypass?
Deployments using Symfony's unanimous access decision strategy are affected when an access_control rule contains multiple roles that are evaluated by the same voter, such as multiple roles handled by RoleVoter. The described regression has existed since Symfony 5.4.
What access does an attacker need to exploit this issue?
An attacker needs an authenticated account holding at least one role from a multi-role access_control rule. If the rule is intended to require all listed roles, having only one of them can be enough to gain access.
Are rules that combine a role with allow_if affected?
No. A role combined with allow_if still required both conditions, because those attributes are decided by different voters. The issue affects only attributes decided by the same voter.
What configuration change can reduce exposure until the fix is applied?
Avoid relying on a single multi-role access_control rule to enforce that all listed roles are required under the unanimous strategy. Review such rules, especially those protecting administrative paths, because the vulnerable behavior grants when RoleVoter finds any one listed role.