CVE-2021-41268
Cookie persistence after password changes in symfony/security-bundle
Description
Symfony/SecurityBundle is the security system for Symfony, a PHP framework for web and console applications and a set of reusable PHP components. Since the rework of the Remember me cookie in version 5.3.0, the cookie is not invalidated when the user changes their password. Attackers can therefore maintain their access to the account even if the password is changed as long as they have had the chance to login once and get a valid remember me cookie. Starting with version 5.3.12, Symfony makes the password part of the signature by default. In that way, when the password changes, then the cookie is not valid anymore.
How to fix CVE-2021-41268
To remediate CVE-2021-41268, upgrade the affected package to a fixed version below.
- —upgrade to 5.3.12 or later
- —upgrade to 5.3.12 or later
- —upgrade to 5.3.12 or later
Is CVE-2021-41268 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- >= 5.3.0, < 5.3.12
- >= 5.3.0, < 5.3.12
- >= 5.3.0, < 5.3.12
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |