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...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Debian:12symfony |
All versions→ Not listed |
Not listed |
| Debian:13symfony |
< 6.4.51+dfsg-0+deb13u1→ 6.4.51+dfsg-0+deb13u1 |
6.4.51+dfsg-0+deb13u1 |
| Debian:14symfony |
All versions→ Not listed |
Not listed |
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security-tracker.debian.org