# GHSA-4Q5M-F3JQ-V37C: Doctrine Remember-Me Token Provider Accepts Outdated Tokens Under the Series of Their Copy, Also After Logout

- Database: GitHub
- Severity: CVSS 6.3 (Medium)
- Published: 2026-11-25
- Modified: 2026-11-25

## Tracked as

- [CVE-2026-133759](https://cve.now/CVE-2026-133759.md): Symfony Doctrine Bridge auth bypass in remember-me token provider

## Affected versions

- symfony/doctrine-bridge (Packagist): fixed in 5.4.57
- symfony/symfony (Packagist): fixed in 5.4.57
- symfony/doctrine-bridge (Packagist): from 6, fixed in 6.4.51
- symfony/symfony (Packagist): from 6, fixed in 6.4.51
- symfony/doctrine-bridge (Packagist): from 7, fixed in 7.4.24
- symfony/symfony (Packagist): from 7, fixed in 7.4.24
- symfony/doctrine-bridge (Packagist): from 8, fixed in 8.1.12
- symfony/symfony (Packagist): from 8, fixed in 8.1.12

## Description

### Description

`DoctrineTokenProvider` keeps a copy of the previous token of a remember-me cookie. This way, concurrent requests sent with that token are still accepted for 60 seconds. The copy is stored in another row, under a series derived from the series of the cookie. Since Symfony 6.4.45, 7.4.18 and 8.1.6, a copy is stored for every series that the remember-me handler generates. Before, copies were stored only for the series created before Symfony 5.4.19, 6.0.19, 6.1.11 and 6.2.5.

A cookie could use the series of the copy instead of its own series. The copy then matched as a current token, so the limit of 60 seconds didn't apply and the theft detection didn't trigger. Logging out deleted only the row of the original series, and the copy stayed.

An attacker who got hold of a remember-me cookie could then keep logging in as its user after the user logged out. This works when the token was rotated at most once since the attacker got the cookie.

### Resolution

`DoctrineTokenProvider` now accepts only the series formats that the remember-me handler generates, whatever the collation of the database. It also deletes the copy together with its token.

The patch for this issue is available [here](https://github.com/symfony/symfony/commit/9a519a3629bab3ab6e88dab061c52e7b3f9cd184) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).

### Credits

We would like to thank Rex (General Analysis) for reporting the issue, [Amimul Ihsan](https://github.com/aimahdi) for reporting it independently, and Nicolas Grekas for providing the fix.

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-4q5m-f3jq-v37c

Page: https://cve.now/GHSA-4Q5M-F3JQ-V37C

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
