Advisory

GHSA-g4m9-5hpf-hx72

Also known as: BIT-symfony-2020-5275, CVE-2020-5275

Summary

Firewall configured with unanimous strategy was not actually unanimous in Symfony

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-03-30 20:09 UTC
Modified
2026-09-10 03:48 UTC

Affected packages and fixes

symfony/security

Packagist · All systems

Affected

  • introduced 4.4.0, fixed 4.4.7 (ecosystem)

Fixed versions

4.4.7

Fix

The export has no generic command for this ecosystem.

symfony/security

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.0.7 (ecosystem)

Fixed versions

5.0.7

Fix

The export has no generic command for this ecosystem.

symfony/security-http

Packagist · All systems

Affected

  • introduced 4.4.0, fixed 4.4.7 (ecosystem)

Fixed versions

4.4.7

Fix

The export has no generic command for this ecosystem.

symfony/security-http

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.0.7 (ecosystem)

Fixed versions

5.0.7

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 4.4.0, fixed 4.4.7 (ecosystem)

Fixed versions

4.4.7

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 5.0.0, fixed 5.0.7 (ecosystem)

Fixed versions

5.0.7

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences