Skip to content
OpenAdvisories
Medium · 5.9 Public exploit CVE-2022-24894 BIT-symfony-2022-24894EUVD-2023-0715GHSA-h7vf-5wrv-9fhv

Symfony storing cookie headers in HttpCache

Published Feb 3, 2023 · Updated Mar 10, 2025 · 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.

Affected products

VendorProductAffectedFixed
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 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 symfony 5.4.20+dfsg-1 —
Debian 13 symfony 5.4.20+dfsg-1 —
Debian 12 symfony 5.4.20+dfsg-1 —
Debian 10 symfony 3.4.22+dfsg-2+deb10u2 DLA-3493-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS symfony No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS symfony 6.4.5+dfsg-3ubuntu3+esm1 USN-7272-1
Ubuntu Pro 22.04 LTS symfony 5.4.4+dfsg-1ubuntu8+esm1 USN-7272-1
Ubuntu Pro 20.04 LTS symfony 4.3.8+dfsg-1ubuntu1+esm2 USN-7272-1
Ubuntu Pro 18.04 LTS symfony No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • moften/Symfony-CVE-Scanner-PoC- ★ 0 · May 7, 2025

    CVE-2021-21424 - CRLF Injection - CVE-2021-41268 - Host Header Injection - CVE-2022-24894 - WebProfiler abierto - CVE-2019-10909 - Directory Traversal

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist symfony/http-kernel >= 2.0.0, < 4.4.50 4.4.50 GHSA-h7vf-5wrv-9fhv
Packagist symfony/http-kernel >= 5.0.0, < 5.4.20 5.4.20 GHSA-h7vf-5wrv-9fhv
Packagist symfony/http-kernel >= 6.0.0, < 6.0.20 6.0.20 GHSA-h7vf-5wrv-9fhv
Packagist symfony/http-kernel >= 6.1.0, < 6.1.12 6.1.12 GHSA-h7vf-5wrv-9fhv
Packagist symfony/http-kernel >= 6.2.0, < 6.2.6 6.2.6 GHSA-h7vf-5wrv-9fhv
Packagist symfony/symfony >= 2.0.0, < 4.4.50 4.4.50 GHSA-h7vf-5wrv-9fhv
Packagist symfony/symfony >= 5.0.0, < 5.4.20 5.4.20 GHSA-h7vf-5wrv-9fhv
Packagist symfony/symfony >= 6.0.0, < 6.0.20 6.0.20 GHSA-h7vf-5wrv-9fhv
Packagist symfony/symfony >= 6.1.0, < 6.1.12 6.1.12 GHSA-h7vf-5wrv-9fhv
Packagist symfony/symfony >= 6.2.0, < 6.2.6 6.2.6 GHSA-h7vf-5wrv-9fhv

Advisories 2

References