CVE-2021-32693: Symfony/security http Authentication Granted To All Firewalls Vulnerability
MODERATECVE-2021-32693 is a MODERATE (CVSS 6.8) authentication granted to all firewalls vulnerability (CWE-287: Improper Authentication) affecting Symfony/security http libraries in the Packagist ecosystem. The issue involves authentication granted to all firewalls instead of just one. Remediation is available by upgrading affected packages to version 5.3.2.
CVE-2021-32693 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2021-32693
To remediate this vulnerability, upgrade all affected Symfony/security http dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade symfony/security-http to 5.3.2
Upgrade symfony/symfony to 5.3.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for symfony/security-http
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-32693, inspect your project dependencies for Symfony/security http:
inspect dependencies for symfony/security-http
Analyze the terminal output to locate any version of Symfony/security http in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.3.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Symfony/security http, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-32693 Affected Symfony/security http Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/security-http
|
Packagist |
≥ 5.3.0
< 5.3.2
|
5.3.2
|
|
symfony/symfony
|
Packagist |
≥ 5.3.0
< 5.3.2
|
5.3.2
|
References
Frequently Asked Questions
What is CVE-2021-32693?
Which Symfony/security http versions are affected?
What version fixes CVE-2021-32693?
Is symfony/security-http affected?
Is symfony/symfony affected?
What is the CVSS score of CVE-2021-32693?
What CWE is associated with CVE-2021-32693?
How can I check Packagist dependencies for CVE-2021-32693?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rfcf-m67m-jcrq",
"modified" : "2024-02-05T11:13:38Z",
"published" : "2021-06-21T17:03:44Z",
"aliases" : [ "CVE-2021-32693" ],
"summary" : "Authentication granted to all firewalls instead of just one",
"details" : "Description\n-----------\n\nWhen 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.\n\nResolution\n----------\n\nWe now ensure that the authenticated token is only available for the firewall that generates it.\n\nThe patch for this issue is available [here](https://github.com/symfony/symfony/commit/3084764ad82f29dbb025df19978b9cbc3ab34728) for branch 5.3.\n\nCredits\n-------\n\nI would like to thank Bogdan, gndk, Paweł Warchoł, Warxcell, and Adrien Lamotte for reporting the issue and Wouter J for fixing the issue.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security-http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.3.0"
}, {
"fixed" : "5.3.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.3.0"
}, {
"fixed" : "5.3.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/security/advisories/GHSA-rfcf-m67m-jcrq"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-32693"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/security-http/commit/6bf4c31219773a558b019ee12e54572174ff8129"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/commit/3084764ad82f29dbb025df19978b9cbc3ab34728"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2021-32693.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2021-32693.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/symfony/security-http"
}, {
"type" : "WEB",
"url" : "https://symfony.com/blog/cve-2021-32693-authentication-granted-to-all-firewalls-instead-of-just-one"
}, {
"type" : "WEB",
"url" : "https://symfony.com/cve-2021-32693"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-06-18T20:33:08Z",
"nvd_published_at" : "2021-06-17T23:15:00Z"
}
}