# CVE-2022-24894: Symfony storing cookie headers in HttpCache

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.11%, higher than 91% of CVEs (2026-12-01)
- Published: 2023-02-01T18:48:09.000Z
- Modified: 2026-06-17T04:32:44.990Z
- Also known as: GHSA-h7vf-5wrv-9fhv, BIT-SYMFONY-2022-24894
- Weaknesses: CWE-285
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. The Symfony HTTP cache system, acts as a reverse proxy: It caches entire responses (including headers) and returns them to the clients. In a recent change in the `AbstractSessionListener`, the response might contain a `Set-Cookie` header. If the Symfony HTTP cache system is enabled, this response might bill stored and return to the next clients. An attacker can use this vulnerability to retrieve the victim's session. This issue has been patched and is available for branch 4.4.

(As written by CVE List.)

## Affected

- symfony symfony: >= 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
- symfony/http-kernel (Packagist): from 2.0.0 before 4.4.50; from 5.0.0 before 5.4.20; from 6.0.0 before 6.0.20; from 6.1.0 before 6.1.12; from 6.2.0 before 6.2.6
- symfony/symfony (Packagist): from 2.0.0 before 4.4.50; from 5.0.0 before 5.4.20; from 6.0.0 before 6.0.20; from 6.1.0 before 6.1.12; from 6.2.0 before 6.2.6
- sensiolabs symfony: from 2.0.0 before 4.4.50; from 5.0.0 before 5.4.2; from 6.0.0 before 6.0.20; from 6.1.0 before 6.1.12; from 6.2.0 before 6.2.6
- symfony (Bitnami): from 2.0.0 before 4.4.50; from 5.0.0 before 5.4.2; from 6.0.0 before 6.0.20; from 6.1.0 before 6.1.12; from 6.2.0 before 6.2.6

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/symfony/symfony/security/advisories/GHSA-h7vf-5wrv-9fhv> (third-party-advisory, web)
- <https://github.com/symfony/symfony/commit/d2f6322af9444ac5cd1ef3ac6f280dbef7f9d1fb> (patch, web)
- <https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html> (mailing-list, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-24894> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-kernel/CVE-2022-24894.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-24894.yaml> (web)
- <https://github.com/symfony/symfony> (package)
- <https://symfony.com/cve-2022-24894> (web)

## Sources

- CVE List: [CVE-2022-24894](https://www.cve.org/CVERecord?id=CVE-2022-24894), CVE Terms of Use, modified 2025-03-10
- GitHub Advisory Database: [GHSA-h7vf-5wrv-9fhv](https://github.com/advisories/GHSA-h7vf-5wrv-9fhv), CC-BY-4.0, modified 2025-02-13
- NVD: [CVE-2022-24894](https://nvd.nist.gov/vuln/detail/CVE-2022-24894), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-SYMFONY-2022-24894](https://osv.dev/vulnerability/BIT-SYMFONY-2022-24894), Apache-2.0, modified 2024-03-06

---

Page: https://cve.day/CVE-2022-24894 · Whole record: https://cve.day/CVE-2022-24894.json · Rebuilt by cve.day 2026-11-25T22:58:18.502Z
