# GHSA-H32J-4QCQ-HW69: The Unanimous Strategy Grants access\_control Rules When Only One of Their Roles Matches: Regression of CVE-2020-5275

- Database: GitHub
- Severity: CVSS 5.3 (Medium)
- Published: 2026-11-25
- Modified: 2026-11-25

## Tracked as

- [CVE-2026-133753](https://cve.now/CVE-2026-133753.md): Symfony Security Core authorization bypass in unanimous access\_control rules

## Affected versions

- symfony/security-core (Packagist): from 5.4, fixed in 5.4.57
- symfony/security-core (Packagist): from 6, fixed in 6.4.51
- symfony/security-core (Packagist): from 7, fixed in 7.4.24
- symfony/security-core (Packagist): from 8, fixed in 8.1.12
- symfony/symfony (Packagist): from 5.4, fixed in 5.4.57
- symfony/symfony (Packagist): from 6, fixed in 6.4.51
- symfony/symfony (Packagist): from 7, fixed in 7.4.24
- symfony/symfony (Packagist): from 8, fixed in 8.1.12

## Description

### 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:

```yaml
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.

### Resolution

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.

The patches for this issue are available [here](https://github.com/symfony/symfony/commit/cdcbddcc0b5fd4de51d0ea01b148a7608d75d35c) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).

### Credits

We would like to thank [Jack Worman](https://github.com/jack-worman) for reporting the issue and providing the fix.

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-h32j-4qcq-hw69

Page: https://cve.now/GHSA-H32J-4QCQ-HW69

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
