CVE-2021-32693
JSON

6.8medium

Authentication granted with multiple firewalls

Severity
6.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.39% (higher than 73% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-rfcf-m67m-jcrqBIT-SYMFONY-2021-32693

Description

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. A vulnerability related to firewall authentication is in Symfony starting with version 5.3.0 and prior to 5.3.2. When an application defines multiple firewalls, the token authenticated by one of the firewalls was available for all other firewalls. This could be abused when the application defines different providers for each part of the application, in such a situation, a user authenticated on a part of the application could be considered authenticated on the rest of the application. Starting in version 5.3.2, a patch ensures that the authenticated token is only available for the firewall that generates it.

Affected

Product or packageVersionsReported by
symfony symfony>= 5.3.0, < 5.3.2CVE List
symfony/security-http (Packagist)from 5.3.0 before 5.3.2GitHub Advisory Database
symfony/symfony (Packagist)from 5.3.0 before 5.3.2GitHub Advisory Database
sensiolabs symfonyfrom 5.3.0 before 5.3.2NVD
symfony (Bitnami)from 5.3.0 before 5.3.2Bitnami Vulnerability Database

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. A vulnerability related to firewall authentication is in Symfony starting with version 5.3.0 and prior to 5.3.2. When an application defines multiple firewalls, the token authenticated by one of the firewalls was available for all other firewalls. This could be abused when the application defines different providers for each part of the application, in such a situation, a user authenticated on a part of the application could be considered authenticated on the rest of the application. Starting in version 5.3.2, a patch ensures that the authenticated token is only available for the firewall that generates it.

GitHub Advisory Database

Description

When an application defines multiple firewalls, the authenticated token delivered by one of the firewalls is available to all other firewalls. This can be abused when the application defines different providers for different parts of an application. In such a situation, a user authenticated on one part of the application is considered authenticated on the whole application.

Resolution

We now ensure that the authenticated token is only available for the firewall that generates it.

The patch for this issue is available here for branch 5.3.

Credits

I would like to thank Bogdan, gndk, Paweł Warchoł, Warxcell, and Adrien Lamotte for reporting the issue and Wouter J for fixing the issue.

NVD (es)

Symfony es un framework PHP para aplicaciones web y de consola y un ajuste de componentes PHP reutilizables. Una vulnerabilidad relacionada con la autenticación del firewall se presenta en Symfony a partir de versión 5.3.0 y anteriores a 5.3.2. Cuando una aplicación define múltiples firewalls, el token autenticado por uno de los firewalls estaba disponible para todos los otros firewalls. Esto podría ser abusado cuando la aplicación define diferentes proveedores para cada parte de la aplicación, en tal situación, un usuario autenticado en una parte de la aplicación podría ser considerado autenticado en el resto de la aplicación. A partir de versión 5.3.2, un parche asegura que el token autenticado sólo está disponible para el firewall que lo genera

References

https://github.com/symfony/symfony/security/advisories/GHSA-rfcf-m67m-jcrqpatch, third-party-advisory, web
https://github.com/symfony/security-http/commit/6bf4c31219773a558b019ee12e54572174ff8129patch, third-party-advisory, web
https://github.com/symfony/symfony/commit/3084764ad82f29dbb025df19978b9cbc3ab34728patch, third-party-advisory, web
https://symfony.com/blog/cve-2021-32693-authentication-granted-to-all-firewalls-instead-of-just-onepatch, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-32693advisory
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2021-32693.yamlweb
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2021-32693.yamlweb
https://github.com/symfony/security-httppackage
https://symfony.com/cve-2021-32693web

Sources

SourceRecordLicence
CVE ListCVE-2021-32693 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-rfcf-m67m-jcrq changed 2026-07-08CC-BY-4.0
NVDCVE-2021-32693 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-SYMFONY-2021-32693 changed 2024-03-06Apache-2.0