CVE-2021-41268: Cookie persistence in Symfony

Published Oct 23, 2021
·
Updated

CVE-2021-41268: Remember me cookie persistance after password changes

Other sources

Description -----------

Since the rework of the Remember me cookie in Symfony 5.3, the cookie is not invalidated anymore when the user changes its 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.

Resolution ----------

Symfony now makes the password part of the signature by default. In that way, when the password changes then the cookie is not valid anymore.

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

Credits -------

We would like to thank Thibaut Decherit for reporting the issue and Wouter J for fixing the issue.

GitHub

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.

MITRE

Affected Software

5 affected componentsFixes available
composer/symfony/symfony>=5.3.0, <5.3.12
composer/symfony/security-bundle>=5.3.0, <5.3.12
composer/symfony/symfony>=5.3.0<5.3.12
5.3.12
composer/symfony/security-bundle>=5.3.0<5.3.12
5.3.12
SensioLabs Symfony>=5.3.0<5.3.12

Event History

Oct 23, 2021
Advisory Published
11:11 AM
Nov 24, 2021
CVE Published
via MITRE·06:55 PM
Data Sourced
via MITRE·06:55 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-41268?

CVE-2021-41268 is a vulnerability in the Symfony/SecurityBundle that allows the Remember me cookie to persist after password changes.

2

How does CVE-2021-41268 affect Symfony?

CVE-2021-41268 affects Symfony version 5.3.0 up to version 5.3.12.

3

What is the severity of CVE-2021-41268?

The severity of CVE-2021-41268 is high, with a severity score of 8.8.

4

How can attackers exploit CVE-2021-41268?

Attackers can exploit CVE-2021-41268 by taking advantage of the Remember me cookie not being invalidated when a user changes their password.

5

Is there a fix available for CVE-2021-41268?

Yes, a fix for CVE-2021-41268 is available in the Symfony framework, with commits and pull requests available on GitHub.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203