CVE-2022-24894
Symfony storing cookie headers in HttpCache
Reported by github_m · Published February 3, 2023
symfony/symfony is fixed in 6.2.6, 6.1.12, 6.0.20 and 2 more (Packagist)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| symfony/symfony | Packagist | 6.2.6, 6.1.12, 6.0.20, 5.4.20, 4.4.50 |
| symfony/form | Packagist | 6.2.6, 6.1.12, 6.0.20, 5.4.2, 4.4.50 |
| symfony/http-kernel | Packagist | 6.2.6, 6.1.12, 6.0.20, 5.4.20, 4.4.50 |
| symfony | sensiolabs | 6.2.6, 6.1.12, 6.0.20, 5.4.2, 4.4.50 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| symfony | symfony | >= 2.0.0, < 4.4.50, >= 5.0.0, < 5.4.20, >= 6.0.0, < 6.0.20 |
| symfony | symfony | 2.0.0, 5.0.0, 6.0.0 |
| symfony | form | 2.0.0, 5.0.0, 6.0.0 |
| symfony | symfony | 2.0.0, 5.0.0, 6.0.0 |
Timeline
- Feb 1, 2023 CVE Published
- Feb 4, 2023 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory
- Jul 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-24894
vulnetix vdb fixes CVE-2022-24894
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-24894/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/symfony/symfony/security/advisories/GHSA-h7vf-5wrv-9fhv x_refsource_CONFIRM
- https://github.com/symfony/symfony/commit/d2f6322af9444ac5cd1ef3ac6f280dbef7f9d1fb x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2022-24894 advisory
- https://github.com/advisories/GHSA-h7vf-5wrv-9fhv advisory
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-kernel/CVE-2022-24894.yaml url
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-24894.yaml url
- https://github.com/symfony/symfony url
- https://symfony.com/cve-2022-24894 url