CVE-2022-24894: Session disclosure via cached Set-Cookie replay in Symfony HttpCache
- Vendor
- Sensiolabs
In Symfony (symfony/http-kernel; Symfony 4.4 branch), a change in AbstractSessionListener could result in responses containing a Set-Cookie header. When Symfony’s HTTP cache system (HttpCache reverse proxy) is enabled, it may cache entire responses including headers and subsequently replay the cached Set-Cookie header to other clients. This can expose a victim’s session cookie to a different client, enabling session disclosure and potential session hijacking. The issue is patched in Symfony 4.4.50+ (commit d2f6322af9444ac5cd1ef3ac6f280dbef7f9d1fb).
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Session disclosure/hijacking: a Set-Cookie header containing session information may be stored by HttpCache and returned to other clients, allowing an attacker to obtain a victim’s session cookie and potentially impersonate the victim.
Mitigation
If you can’t patch tonight, do this now.
Prevent caching of sensitive headers in Symfony HttpCache. Configure HttpStore to treat Set-Cookie as a private header and strip it from cached responses (ensure Set-Cookie is included in the private headers list). If immediate upgrade is not possible, override/extend HttpStore private headers configuration to remove Set-Cookie from cacheable responses.
Remediation
Patch, then assume compromise.
Upgrade to a fixed version: symfony/http-kernel and symfony/symfony 4.4.50 or later (within the affected branch). Where upgrading is not possible, apply the upstream patch (commit d2f6322af9444ac5cd1ef3ac6f280dbef7f9d1fb).
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-24894 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2022-24894 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2022-24894?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2022-24894.
- Is there a patch for CVE-2022-24894?
- Upgrade to a fixed version: symfony/http-kernel and symfony/symfony 4.4.50 or later (within the affected branch). Where upgrading is not possible, apply the upstream patch (commit d2f6322af9444ac5cd1ef3ac6f280dbef7f9d1fb).
- What products are affected by CVE-2022-24894?
- Sensiolabs Symfony.
- How severe is CVE-2022-24894?
- CVE-2022-24894 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 4.1% (91st percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.