{"id":"CVE-2022-24894","aliases":["CVE-2022-24894","GHSA-h7vf-5wrv-9fhv","BIT-SYMFONY-2022-24894"],"related":[],"kind":"vulnerability","state":"published","title":"Symfony storing cookie headers in HttpCache","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Description\n-----------\n\nThe Symfony HTTP cache system acts as a reverse proxy: it caches HTTP responses (including headers) and returns them to clients.\n\nIn a recent `AbstractSessionListener` change, the response might now contain a `Set-Cookie` header. If the Symfony HTTP cache system is enabled, this header might be stored and returned to some other clients. An attacker can use this vulnerability to retrieve the victim's session.\n\nResolution\n----------\n\nThe `HttpStore` constructor now takes a parameter containing a list of private headers that are removed from the HTTP response headers.\nThe default value for this parameter is `Set-Cookie`, but it can be overridden or extended by the application.\n\nThe patch for this issue is available [here](https://github.com/symfony/symfony/commit/d2f6322af9444ac5cd1ef3ac6f280dbef7f9d1fb) for branch 4.4.\n\nCredits\n-------\n\nWe would like to thank Soner Sayakci for reporting the issue and Nicolas Grekas for fixing it.","format":"markdown","source":"ghsa"}],"published":"2023-02-01T18:48:09.000Z","modified":"2026-06-17T04:32:44.990Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-285"],"affected":[{"ranges":[{"version":">= 2.0.0, < 4.4.50","status":"affected"},{"version":">= 5.0.0, < 5.4.20","status":"affected"},{"version":">= 6.0.0, < 6.0.20","status":"affected"},{"version":">= 6.1.0, < 6.1.12","status":"affected"},{"version":">= 6.2.0, < 6.2.6","status":"affected"}],"vendor":"symfony","product":"symfony","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"4.4.50"}],"ecosystem":"Packagist","package":"symfony/http-kernel","purl":"pkg:composer/symfony/http-kernel","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.4.20"}],"ecosystem":"Packagist","package":"symfony/http-kernel","purl":"pkg:composer/symfony/http-kernel","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.0.20"}],"ecosystem":"Packagist","package":"symfony/http-kernel","purl":"pkg:composer/symfony/http-kernel","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.1.0","status":"affected","fixed":"6.1.12"}],"ecosystem":"Packagist","package":"symfony/http-kernel","purl":"pkg:composer/symfony/http-kernel","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.2.0","status":"affected","fixed":"6.2.6"}],"ecosystem":"Packagist","package":"symfony/http-kernel","purl":"pkg:composer/symfony/http-kernel","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"4.4.50"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.4.20"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","fixed":"6.0.20"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.1.0","status":"affected","fixed":"6.1.12"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.2.0","status":"affected","fixed":"6.2.6"}],"ecosystem":"Packagist","package":"symfony/symfony","purl":"pkg:composer/symfony/symfony","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"4.4.50"},{"status":"affected","introduced":"5.0.0","fixed":"5.4.2"},{"status":"affected","introduced":"6.0.0","fixed":"6.0.20"},{"status":"affected","introduced":"6.1.0","fixed":"6.1.12"},{"status":"affected","introduced":"6.2.0","fixed":"6.2.6"}],"vendor":"sensiolabs","product":"symfony","cpe":"cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"4.4.50"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.4.2"},{"type":"semver","introduced":"6.0.0","status":"affected","fixed":"6.0.20"},{"type":"semver","introduced":"6.1.0","status":"affected","fixed":"6.1.12"},{"type":"semver","introduced":"6.2.0","status":"affected","fixed":"6.2.6"}],"ecosystem":"Bitnami","package":"symfony","purl":"pkg:bitnami/symfony","source":"bitnami"}],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-h7vf-5wrv-9fhv","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/symfony/symfony/commit/d2f6322af9444ac5cd1ef3ac6f280dbef7f9d1fb","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00014.html","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24894","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-kernel/CVE-2022-24894.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-24894.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/symfony/symfony","tags":["package"],"sources":["ghsa"]},{"url":"https://symfony.com/cve-2022-24894","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-03-10T20:58:29.599Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-24894","url":"https://www.cve.org/CVERecord?id=CVE-2022-24894","licence":"CVE Terms of Use","modified":"2025-03-10T21:16:23.607Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h7vf-5wrv-9fhv","url":"https://github.com/advisories/GHSA-h7vf-5wrv-9fhv","licence":"CC-BY-4.0","modified":"2025-02-13T19:02:16.092Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-24894","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24894","licence":"Public domain","modified":"2026-06-17T04:32:44.990Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-SYMFONY-2022-24894","url":"https://osv.dev/vulnerability/BIT-SYMFONY-2022-24894","licence":"Apache-2.0","modified":"2024-03-06T11:25:28.861Z"}],"updatedAt":"2026-11-25T22:58:18.502Z","epss":{"score":0.04107,"percentile":0.91005,"date":"2026-12-01T12:00:22.000Z"}}