# Symfony vulnerable to Session Fixation of CSRF tokens

Advisory record · `GHSA-3gv2-29qc-v67m`

- **Identifiers:** `GHSA-3gv2-29qc-v67m` · `BIT-symfony-2022-24895` · `CVE-2022-24895` · `PKSA-4w9w-fp7s-ddy7` · `PKSA-53qn-v9cx-yn6c`
- **State:** Confirmed
- **Severity:** CVSS 6.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-384](https://cwe.mitre.org/data/definitions/384.html) · [CWE-613](https://cwe.mitre.org/data/definitions/613.html)
- **Tags:** [Authentication bypass](https://agentprime.io/advisories/tag/auth-bypass.md)
- **Published:** 1 Feb 2023
- **Updated:** 13 Feb 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 1 Feb 2023, 18:48 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `symfony/security-bundle` (Packagist): affected `>=2.0.0, <4.4.50 || >=5.0.0, <5.4.20 || >=6.0.0, <6.0.20 || >=6.1.0, <6.1.12 || >=6.2.0, <6.2.6`; fixed in `4.4.50`, `5.4.20`, `6.0.20`, `6.1.12`, `6.2.6`
- `symfony/symfony` (Packagist): affected `>=2.0.0, <4.4.50 || >=5.0.0, <5.4.20 || >=6.0.0, <6.0.20 || >=6.1.0, <6.1.12 || >=6.2.0, <6.2.6`; fixed in `4.4.50`, `5.4.20`, `6.0.20`, `6.1.12`, `6.2.6`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.3 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0081, the 57th percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 1 Feb 2023. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-3gv2-29qc-v67m](https://github.com/advisories/GHSA-3gv2-29qc-v67m)
- [OSV: GHSA-3gv2-29qc-v67m](https://osv.dev/vulnerability/GHSA-3gv2-29qc-v67m)
- <https://github.com/symfony/symfony/security/advisories/GHSA-3gv2-29qc-v67m>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24895>
- <https://github.com/symfony/security-bundle/commit/076fd2088ada33d760758d98ff07ddedbf567946>
- <https://github.com/symfony/symfony/commit/5909d74ecee359ea4982fcf4331aaf2e489a1fd4>
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-bundle/CVE-2022-24895.yaml>
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-24895.yaml>
- <https://github.com/symfony/symfony>
- <https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html>
- <https://symfony.com/cve-2022-24895>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-3gv2-29qc-v67m>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-3gv2-29qc-v67m/>. Everything for agents: <https://agentprime.io/llms.txt>.
