CVE-2020-5275
JSON

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 packageVersionsReported by
symfony symfony>= 4.4.0, < 4.4.7, >= 5.0.0, < 5.0.7CVE List
symfony/security (Packagist)from 4.4.0 before 4.4.7, from 5.0.0 before 5.0.7GitHub Advisory Database
symfony/security-http (Packagist)from 4.4.0 before 4.4.7, from 5.0.0 before 5.0.7GitHub Advisory Database
symfony/symfony (Packagist)from 4.4.0 before 4.4.7, from 5.0.0 before 5.0.7GitHub Advisory Database
sensiolabs symfonyfrom 4.4.0 before 4.4.7, from 5.0.0 before 5.0.7NVD
symfony (Bitnami)from 4.4.0 before 4.4.7, from 5.0.0 before 5.0.7Bitnami Vulnerability Database

All scores

GitHub_M7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
GitHub7.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD5.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:N
Bitnami Vulnerability Databasehigh 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

https://github.com/symfony/symfony/security/advisories/GHSA-g4m9-5hpf-hx72third-party-advisory, web
https://github.com/symfony/symfony/commit/c935e4a3fba6cc2ab463a6ca382858068d63cebfpatch, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ/vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2020-5275advisory
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2020-5275.yamlweb
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2020-5275.yamlweb
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2020-5275.yamlweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQweb
https://symfony.com/cve-2020-5275web

Sources

SourceRecordLicence
CVE ListCVE-2020-5275 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-g4m9-5hpf-hx72 changed 2026-09-10CC-BY-4.0
NVDCVE-2020-5275 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-SYMFONY-2020-5275 changed 2024-03-06Apache-2.0