CVE-2022-24895: Possible CSRF token fixation
CVE-2022-24895: Possible CSRF token fixation
Other sources
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. When authenticating users Symfony by default regenerates the session ID upon login, but preserves the rest of session attributes. Because this does not clear CSRF tokens upon login, this might enables same-site attackers to bypass the CSRF protection mechanism by performing an attack similar to a session-fixation. This issue has been fixed in the 4.4 branch.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 4.4.50 - Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 5.4.20 - Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 6.0.20 - Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 6.1.12 - Upgrade
Upgrade
composer/symfony/symfonyto a version that resolves this vulnerability.Fixed in 6.2.6 - Upgrade
Upgrade
composer/symfony/security-bundleto a version that resolves this vulnerability.Fixed in 4.4.50 - Upgrade
Upgrade
composer/symfony/security-bundleto a version that resolves this vulnerability.Fixed in 5.4.20 - Upgrade
Upgrade
composer/symfony/security-bundleto a version that resolves this vulnerability.Fixed in 6.0.20 - Upgrade
Upgrade
composer/symfony/security-bundleto a version that resolves this vulnerability.Fixed in 6.1.12 - Upgrade
Upgrade
composer/symfony/security-bundleto a version that resolves this vulnerability.Fixed in 6.2.6 - Upgrade
Upgrade
debian/symfonyto a version that resolves this vulnerability.Fixed in 5.4.20+dfsg-1 - Upgrade
Upgrade
debian/symfonyto a version that resolves this vulnerability.Fixed in 5.4.53+dfsg-0+deb12u1Fixed in 6.4.41+dfsg-0+deb13u1Fixed in 6.4.49+dfsg-0+deb13u1Fixed in 7.4.22+dfsg-1Fixed in 7.4.23+dfsg-1 - Upgrade
Upgrade
Symfonyto a version that resolves this vulnerability.Fixed in 4.4
Event History
Frequently Asked Questions
What is the vulnerability ID for this security issue?
The vulnerability ID for this security issue is CVE-2022-24895.
What is the severity of CVE-2022-24895?
The severity of CVE-2022-24895 is high (8.8).
What is the affected software for CVE-2022-24895?
The affected software for CVE-2022-24895 is Symfony versions from 2.0.0 to 6.2.6.
How does this vulnerability occur?
This vulnerability occurs because Symfony does not clear CSRF tokens upon login.
Is there a fix or patch available for CVE-2022-24895?
Yes, a fix is available for CVE-2022-24895. It is recommended to update Symfony to a version that includes the patch.