CVE-2022-24895
published 2023-02-03CVE-2022-24895: 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…
PriorityP340high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
0.79%
52.2th percentile
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
28 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | symfony | < symfony 5.4.20+dfsg-1 (bookworm) | symfony 5.4.20+dfsg-1 (bookworm) |
| sensiolabs | symfony | >= 2.0.0 < 4.4.50 | 4.4.50 |
| sensiolabs | symfony | >= 5.0.0 < 5.4.20 | 5.4.20 |
| sensiolabs | symfony | >= 6.0.0 < 6.0.20 | 6.0.20 |
| sensiolabs | symfony | >= 6.1.0 < 6.1.12 | 6.1.12 |
| sensiolabs | symfony | >= 6.2.0 < 6.2.6 | 6.2.6 |
| symfony | security-bundle | >= 2.0.0 < 4.4.50 | 4.4.50 |
| symfony | security-bundle | >= 5.0.0 < 5.4.20 | 5.4.20 |
| symfony | security-bundle | >= 6.0.0 < 6.0.20 | 6.0.20 |
| symfony | security-bundle | >= 6.1.0 < 6.1.12 | 6.1.12 |
| symfony | security-bundle | >= 6.2.0 < 6.2.6 | 6.2.6 |
| symfony | symfony | — | — |
| symfony | symfony | — | — |
| symfony | symfony | — | — |
| symfony | symfony | — | — |
| symfony | symfony | — | — |
| symfony | symfony | >= 0 < 4.4.19+dfsg-2+deb11u2 | 4.4.19+dfsg-2+deb11u2 |
| symfony | symfony | >= 0 < 5.4.20+dfsg-1 | 5.4.20+dfsg-1 |
| symfony | symfony | >= 0 < 5.4.20+dfsg-1 | 5.4.20+dfsg-1 |
| symfony | symfony | >= 0 < 5.4.20+dfsg-1 | 5.4.20+dfsg-1 |
| symfony | symfony | >= 0 < 4.3.8+dfsg-1ubuntu1+esm2 | 4.3.8+dfsg-1ubuntu1+esm2 |
| symfony | symfony | >= 0 < 5.4.4+dfsg-1ubuntu8+esm1 | 5.4.4+dfsg-1ubuntu8+esm1 |
| symfony | symfony | >= 0 < 6.4.5+dfsg-3ubuntu3+esm1 | 6.4.5+dfsg-3ubuntu3+esm1 |
| symfony | symfony | >= 2.0.0 < 4.4.50 | 4.4.50 |
| symfony | symfony | >= 5.0.0 < 5.4.20 | 5.4.20 |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
osv8.8HIGH
vendor_debian6.3MEDIUM
vendor_ubuntu5.9MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Symfony vulnerabilities
vendor_ubuntu·2025-02-18·CVSS 5.9
CVE-2022-24895 [MEDIUM] Symfony vulnerabilities
Title: Symfony vulnerabilities
Summary: Several security issues were fixed in Symfony.
Soner Sayakci discovered that Symfony incorrectly handled cookie storage in
the web cache. An attacker could possibly use this issue to obtain
sensitive information and access unauthorized resources. (CVE-2022-24894)
Marco Squarcina discovered that Symfony incorrectly handled the storage of
user session information. An attacker could possibly use this issue to
perform a cross-site request forgery (CSRF) attack. (CVE-2022-24895)
Pierre Rudloff discovered that Symfony incorrectly checked HTML input. An
attacker could possibly use this issue to perform cross site scripting.
(CVE-2023-46734)
Vladimir Dusheyko discovered that Symfony incorrectly sanitized special
input with a PHP directive in URL query s
Debian
CVE-2022-24895: symfony - Symfony is a PHP framework for web and console applications and a set of reusabl...
vendor_debian·2022·CVSS 6.3
CVE-2022-24895 [MEDIUM] CVE-2022-24895: symfony - Symfony is a PHP framework for web and console applications and a set of reusabl...
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.
Scope: local
bookworm: resolved (fixed in 5.4.20+dfsg-1)
bullseye: resolved (fixed in 4.4.19+dfsg-2+deb11u2)
forky: resolved (fixed in 5.4.20+dfsg-1)
sid: resolved (fixed in 5.4.20+dfsg-1)
trixie: resolved (fixed in 5.4.20+dfsg-1)
OSV
symfony vulnerabilities
osv·2025-02-18·CVSS 8.8
CVE-2022-24894 [HIGH] symfony vulnerabilities
symfony vulnerabilities
Soner Sayakci discovered that Symfony incorrectly handled cookie storage in
the web cache. An attacker could possibly use this issue to obtain
sensitive information and access unauthorized resources. (CVE-2022-24894)
Marco Squarcina discovered that Symfony incorrectly handled the storage of
user session information. An attacker could possibly use this issue to
perform a cross-site request forgery (CSRF) attack. (CVE-2022-24895)
Pierre Rudloff discovered that Symfony incorrectly checked HTML input. An
attacker could possibly use this issue to perform cross site scripting.
(CVE-2023-46734)
Vladimir Dusheyko discovered that Symfony incorrectly sanitized special
input with a PHP directive in URL query strings. An attacker could possibly
use this issue to expose sens
OSV
CVE-2022-24895: Symfony is a PHP framework for web and console applications and a set of reusable PHP components
osv·2023-02-03·CVSS 8.8
CVE-2022-24895 [HIGH] CVE-2022-24895: Symfony is a PHP framework for web and console applications and a set of reusable PHP components
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.
OSV
Symfony vulnerable to Session Fixation of CSRF tokens
osv·2023-02-01
CVE-2022-24895 [MEDIUM] Symfony vulnerable to Session Fixation of CSRF tokens
Symfony vulnerable to Session Fixation of CSRF tokens
Description
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](https://canitakeyoursubdomain.name/) to bypass the CSRF protection mechanism by performing an attack similar to a session-fixation.
Resolution
Symfony removes all CSRF tokens from the session on successful login.
The patch for this issue is available [here](https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4) for branch 4.4.
Credits
We would like to thank Marco Squarcina for reporting the issue and Nicolas Grekas for fixing it.
GHSA
Symfony vulnerable to Session Fixation of CSRF tokens
ghsa·2023-02-01
CVE-2022-24895 [MEDIUM] CWE-384 Symfony vulnerable to Session Fixation of CSRF tokens
Symfony vulnerable to Session Fixation of CSRF tokens
Description
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](https://canitakeyoursubdomain.name/) to bypass the CSRF protection mechanism by performing an attack similar to a session-fixation.
Resolution
Symfony removes all CSRF tokens from the session on successful login.
The patch for this issue is available [here](https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4) for branch 4.4.
Credits
We would like to thank Marco Squarcina for reporting the issue and Nicolas Grekas for fixing it.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2022-24895.yamlhttps://github.com/symfony/security-bundle/commit/076fd2088ada33d760758d98ff07ddedbf567946https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4https://github.com/symfony/symfony/security/advisories/GHSA-3gv2-29qc-v67mhttps://lists.debian.org/debian-lts-announce/2023/07/msg00014.htmlhttps://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2022-24895.yamlhttps://github.com/symfony/security-bundle/commit/076fd2088ada33d760758d98ff07ddedbf567946https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4https://github.com/symfony/symfony/security/advisories/GHSA-3gv2-29qc-v67mhttps://lists.debian.org/debian-lts-announce/2023/07/msg00014.html
2023-02-03
Published