7.6high
Firewall configured with unanimous strategy was not actually unanimous in symfony/security-http
- Severity
- 7.6high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.15% (higher than 67% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-g4m9-5hpf-hx72BIT-SYMFONY-2020-5275
Description
In symfony/security-http before versions 4.4.7 and 5.0.7, when a `Firewall` checks access control rule, it iterate overs each rule's attributes and stops as soon as the accessDecisionManager decides to grant access on the attribute, preventing the check of next attributes that should have been take into account in an unanimous strategy. The accessDecisionManager is now called with all attributes at once, allowing the unanimous strategy being applied on each attribute. This issue is patched in versions 4.4.7 and 5.0.7.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| symfony symfony | >= 4.4.0, < 4.4.7, >= 5.0.0, < 5.0.7 | CVE List |
| symfony/security (Packagist) | from 4.4.0 before 4.4.7, from 5.0.0 before 5.0.7 | GitHub Advisory Database |
| symfony/security-http (Packagist) | from 4.4.0 before 4.4.7, from 5.0.0 before 5.0.7 | GitHub Advisory Database |
| symfony/symfony (Packagist) | from 4.4.0 before 4.4.7, from 5.0.0 before 5.0.7 | GitHub Advisory Database |
| sensiolabs symfony | from 4.4.0 before 4.4.7, from 5.0.0 before 5.0.7 | NVD |
| symfony (Bitnami) | from 4.4.0 before 4.4.7, from 5.0.0 before 5.0.7 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |
| GitHub | 7.6high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 5.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
In symfony/security-http before versions 4.4.7 and 5.0.7, when a `Firewall` checks access control rule, it iterate overs each rule's attributes and stops as soon as the accessDecisionManager decides to grant access on the attribute, preventing the check of next attributes that should have been take into account in an unanimous strategy. The accessDecisionManager is now called with all attributes at once, allowing the unanimous strategy being applied on each attribute. This issue is patched in versions 4.4.7 and 5.0.7.
GitHub Advisory Database
Description
On Symfony before 4.4.0, when a Firewall checks an access control rule (using the unanimous strategy), it iterates over all rule attributes and grant access only if all calls to the accessDecisionManager decide to grant access.
As of Symfony 4.4.0, a bug was introduced that prevents the check of attributes as soon as accessDecisionManager decide to grant access on one attribute.
Resolution
The accessDecisionManager is now called with all attributes at once, allowing the unanimous strategy being applied on each attribute.
The patch for this issue is available here for the 4.4 branch.
Credits
I would like to thank Antonio J. García Lagar for reporting & Robin Chalas for fixing the issue.
NVD (es)
En symfony/security-http versiones anteriores a 4.4.7 y 5.0.7, cuando un "Firewall" comprueba la regla de control de acceso, itera sobre los atributos de cada regla y se detiene tan pronto como accessDecisionManager decide otorgar acceso sobre el atributo, impidiendo la comprobación de los siguientes atributos que deberían haberse tenido en cuenta en una estrategia unánime. AccessDecisionManager es ahora llamado con todos los atributos a la vez, permitiendo que la estrategia unánime sea aplicada en cada atributo. Este problema está parcheado en las versiones 4.4.7 y 5.0.7.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-5275 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g4m9-5hpf-hx72 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2020-5275 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-SYMFONY-2020-5275 changed 2024-03-06 | Apache-2.0 |