CVE-2022-24895
Symfony vulnerable to Session Fixation of CSRF tokens
Reported by github_m · Published February 3, 2023
symfony/security-bundle is fixed in 6.2.6, 6.1.12, 6.0.20 and 2 more (Packagist)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| symfony/security-bundle | Packagist | 6.2.6, 6.1.12, 6.0.20, 5.4.20, 4.4.50 |
| symfony/symfony | Packagist | 6.2.6, 6.1.12, 6.0.20, 5.4.20, 4.4.50 |
| symfony | sensiolabs | 6.2.6, 6.1.12, 6.0.20, 5.4.20, 4.4.50 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| symfony | symfony | >= 2.0.0, < 4.4.50, >= 5.0.0, < 5.4.20, >= 6.0.0, < 6.0.20 |
| symfony | symfony | 2.0.0, 5.0.0, 6.0.0 |
| symfony | symfony | 2.0.0, 5.0.0, 6.0.0 |
Timeline
- Feb 1, 2023 CVE Published
- Feb 4, 2023 EPSS Score (30 in total, the first dated here)
- Feb 13, 2025 CVE Updated
- Mar 17, 2026 Security Advisory
- Jul 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-24895
vulnetix vdb fixes CVE-2022-24895
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-24895/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
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://nvd.nist.gov/vuln/detail/CVE-2022-24895 advisory
- https://github.com/advisories/GHSA-3gv2-29qc-v67m advisory
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-24895.yaml url
- https://github.com/symfony/symfony url
- https://symfony.com/cve-2022-24895 url