Live threats

All CVEs / Sensiolabs

CVE-2022-24895Sensiolabs Symfony

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
0.9%
probability of exploitation in 30 days · percentile 58
Auth required
No
Published
Feb 3, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-384, CWE-613
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Symfony.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist symfony/security-bundle ≥ 2.0.0 < 4.4.50 4.4.50 composer require "symfony/security-bundle:^4.4.50"
Packagist symfony/security-bundle ≥ 5.0.0 < 5.4.20 5.4.20 composer require "symfony/security-bundle:^5.4.20"
Packagist symfony/security-bundle ≥ 6.0.0 < 6.0.20 6.0.20 composer require "symfony/security-bundle:^6.0.20"
Packagist symfony/security-bundle ≥ 6.1.0 < 6.1.12 6.1.12 composer require "symfony/security-bundle:^6.1.12"
Packagist symfony/security-bundle ≥ 6.2.0 < 6.2.6 6.2.6 composer require "symfony/security-bundle:^6.2.6"
Packagist symfony/symfony ≥ 2.0.0 < 4.4.50 4.4.50 composer require "symfony/symfony:^4.4.50"
Packagist symfony/symfony ≥ 5.0.0 < 5.4.20 5.4.20 composer require "symfony/symfony:^5.4.20"
Packagist symfony/symfony ≥ 6.0.0 < 6.0.20 6.0.20 composer require "symfony/symfony:^6.0.20"
Packagist symfony/symfony ≥ 6.1.0 < 6.1.12 6.1.12 composer require "symfony/symfony:^6.1.12"
Packagist symfony/symfony ≥ 6.2.0 < 6.2.6 6.2.6 composer require "symfony/symfony:^6.2.6"

Per OSV / GitHub Advisories (GHSA-3gv2-29qc-v67m). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sensiolabssymfony≥ 2.0.0 < 4.4.50
sensiolabssymfony≥ 5.0.0 < 5.4.20
sensiolabssymfony≥ 6.0.0 < 6.0.20
sensiolabssymfony≥ 6.1.0 < 6.1.12
sensiolabssymfony≥ 6.2.0 < 6.2.6

Official sources

References

Links published by the sources. Open them with care.