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.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)1.3%top 28.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Packagistsymfony/security-bundle5.3.12GHSA-qw36-p97w-vcqr
Packagistsymfony/symfony5.3.12GHSA-qw36-p97w-vcqr

Affected products (as reported)

VendorProductVersions
symfony symfony >= 5.3.0, < 5.3.12

Weakness: CWE-384 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

References