Vulnerability · Published Feb 3, 2023 · Assigned by GitHub_M
CVE-2022-24895Symfony vulnerable to Session Fixation of CSRF tokens
Medium 6.3
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 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | symfony | 5.4.20+dfsg-1 | DEBIAN-CVE-2022-24895 |
| Debian:13 | symfony | 5.4.20+dfsg-1 | DEBIAN-CVE-2022-24895 |
| Debian:14 | symfony | 5.4.20+dfsg-1 | DEBIAN-CVE-2022-24895 |
| Packagist | symfony/security-bundle | 6.1.12 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | 6.2.6 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | 4.4.50 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | 5.4.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/security-bundle | 6.0.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | 6.1.12 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | 6.2.6 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | 6.0.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | 5.4.20 | GHSA-3gv2-29qc-v67m |
| Packagist | symfony/symfony | 4.4.50 | GHSA-3gv2-29qc-v67m |
Affected products (as reported)
Weakness: CWE-384 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
References
- https://github.com/symfony/symfony/security/advisories/GHSA-3gv2-29qc-v67m x_refsource_CONFIRM
- https://github.com/symfony/security-bundle/commit/076fd2088ada33d760758d98ff07ddedbf567946 x_refsource_MISC
- https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4 x_refsource_MISC
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2022-24895.yaml x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html