VDB

CVE-2022-24895

CVE-2022-24895 PUBLISHED CVSS 6.3 MEDIUM

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.

PackageEcosystemFixed in
symfony/security-bundlePackagist6.2.6, 6.1.12, 6.0.20, 5.4.20, 4.4.50
symfony/symfonyPackagist6.2.6, 6.1.12, 6.0.20, 5.4.20, 4.4.50
symfonysensiolabs6.2.6, 6.1.12, 6.0.20, 5.4.20, 4.4.50

Risk scores

CVSS 3.1
6.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Affected products

VendorProductVersions
symfonysymfony>= 2.0.0, < 4.4.50, >= 5.0.0, < 5.4.20, >= 6.0.0, < 6.0.20
symfonysymfony2.0.0, 5.0.0, 6.0.0
symfonysymfony2.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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›