Vulnerability · Published Nov 24, 2021 · Assigned by GitHub_M
CVE-2021-41268Cookie persistence in Symfony
Medium 6.5
In plain English
A medium-severity session fixation in symfony from symfony. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | symfony/security-bundle | 5.3.12 | GHSA-qw36-p97w-vcqr |
| Packagist | symfony/symfony | 5.3.12 | GHSA-qw36-p97w-vcqr |
Affected products (as reported)
Weakness: CWE-384 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/symfony/symfony/security/advisories/GHSA-qw36-p97w-vcqr x_refsource_CONFIRM
- https://github.com/symfony/symfony/pull/44243 x_refsource_MISC
- https://github.com/symfony/symfony/commit/36a808b857cd3240244f4b224452fb1e70dc6dfc x_refsource_MISC
- https://github.com/symfony/symfony/releases/tag/v5.3.12 x_refsource_MISC