The Unanimous Strategy Grants access_control Rules When Only One of Their Roles Matches: Regression of CVE-2020-5275

State
Published
Severity
5.3 Medium
Published
Nov 25, 2026
Updated
Nov 25, 2026
Reserved
Nov 20, 2026

Read the record on cve.org

Description

With the unanimous access decision strategy, an access_control 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: access_decision_manager: strategy: unanimous access_control: - { path: ^/admin, roles: [ROLE_ADMIN, ROLE_AUDITOR] }

Only attributes decided by the same voter were affected. For example, a role combined with allow_if 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.

ProductVersions
symfony/security-core Symfony5.4.0 to before 5.4.57 Affected6.0.0 to before 6.4.51 Affected7.0.0 to before 7.4.24 Affected8.0.0 to before 8.1.12 Affected
symfony/symfony Symfony5.4.0 to before 5.4.57 Affected6.0.0 to before 6.4.51 Affected7.0.0 to before 7.4.24 Affected8.0.0 to before 8.1.12 Affected

Weaknesses

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.