Advisory

GHSA-qw36-p97w-vcqr

Also known as: BIT-symfony-2021-41268, CVE-2021-41268

Summary

Cookie persistence after password changes in symfony/security-bundle

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-11-24 20:05 UTC
Modified
2026-07-08 06:29 UTC

Affected packages and fixes

symfony/security-bundle

Packagist · All systems

Affected

  • introduced 5.3.0, fixed 5.3.12 (ecosystem)

Fixed versions

5.3.12

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 5.3.0, fixed 5.3.12 (ecosystem)

Fixed versions

5.3.12

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