Vulnerability · Published Feb 3, 2023 · Assigned by GitHub_M

CVE-2022-24894Symfony storing cookie headers in HttpCache

Medium 5.9

In plain English

A medium-severity security flaw in symfony from symfony. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.0% (higher than 91% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)4.0%top 9.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12symfony5.4.20+dfsg-1DEBIAN-CVE-2022-24894
Debian:13symfony5.4.20+dfsg-1DEBIAN-CVE-2022-24894
Debian:14symfony5.4.20+dfsg-1DEBIAN-CVE-2022-24894
Packagistsymfony/http-kernel6.1.12GHSA-h7vf-5wrv-9fhv
Packagistsymfony/http-kernel6.2.6GHSA-h7vf-5wrv-9fhv
Packagistsymfony/http-kernel4.4.50GHSA-h7vf-5wrv-9fhv
Packagistsymfony/http-kernel5.4.20GHSA-h7vf-5wrv-9fhv
Packagistsymfony/http-kernel6.0.20GHSA-h7vf-5wrv-9fhv
Packagistsymfony/symfony6.1.12GHSA-h7vf-5wrv-9fhv
Packagistsymfony/symfony6.2.6GHSA-h7vf-5wrv-9fhv
Packagistsymfony/symfony6.0.20GHSA-h7vf-5wrv-9fhv
Packagistsymfony/symfony5.4.20GHSA-h7vf-5wrv-9fhv
Packagistsymfony/symfony4.4.50GHSA-h7vf-5wrv-9fhv

Affected products (as reported)

VendorProductVersions
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

Weakness: CWE-285 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L

References