The Unanimous Strategy Grants access_control Rules When Only One of Their Roles Matches: Regression of CVE-2020-5275
- CVE-2026-133753
- EUVD-2026-135242
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.
Text from the CVE.org record.
Recommendation
Symfony symfony/security-core
- If you run a version from 8.0.0 to before 8.1.12update to 8.1.12 or laterMinor version change: check the release notes
- If you run a version from 7.0.0 to before 7.4.24update to 7.4.24 or laterMinor version change: check the release notes
- If you run a version from 6.0.0 to before 6.4.51update to 6.4.51 or laterMinor version change: check the release notes
- If you run 5.4.xupdate to 5.4.57 or laterPatch update: breaking changes are unlikely
Symfony symfony/symfony
- If you run a version from 8.0.0 to before 8.1.12update to 8.1.12 or laterMinor version change: check the release notes
- If you run a version from 7.0.0 to before 7.4.24update to 7.4.24 or laterMinor version change: check the release notes
- If you run a version from 6.0.0 to before 6.4.51update to 6.4.51 or laterMinor version change: check the release notes
- If you run 5.4.xupdate to 5.4.57 or laterPatch update: breaking changes are unlikely
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
Symfony symfony/security-core
Affected versions Fixed in from 8.0.0 to before 8.1.12 8.1.12 from 7.0.0 to before 7.4.24 7.4.24 from 6.0.0 to before 6.4.51 6.4.51 from 5.4.0 to before 5.4.57 5.4.57 Symfony symfony/symfony
Affected versions Fixed in from 8.0.0 to before 8.1.12 8.1.12 from 7.0.0 to before 7.4.24 7.4.24 from 6.0.0 to before 6.4.51 6.4.51 from 5.4.0 to before 5.4.57 5.4.57
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.