Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. symfony/http-kernel
  4. ›
  5. GMS-2023-209

GMS-2023-209: Symfony storing cookie headers in HttpCache

February 1, 2023 (updated February 22, 2023)

Description

The Symfony HTTP cache system acts as a reverse proxy: it caches HTTP responses (including headers) and returns them to clients.

In 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.

Resolution

The HttpStore constructor now takes a parameter containing a list of private headers that are removed from the HTTP response headers. The default value for this parameter is Set-Cookie, but it can be overridden or extended by the application.

The patch for this issue is available here for branch 4.4.

Credits

We would like to thank Soner Sayakci for reporting the issue and Nicolas Grekas for fixing it.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-kernel/CVE-2022-24894.yaml
  • github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2022-24894.yaml
  • github.com/advisories/GHSA-h7vf-5wrv-9fhv
  • github.com/symfony/symfony/security/advisories/GHSA-h7vf-5wrv-9fhv
  • symfony.com/cve-2022-24894

Code Behaviors & Features

Detect and mitigate GMS-2023-209 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 4.4.50, all versions starting from 5.0.0 before 5.4.20, all versions starting from 6.0.0 before 6.0.20, all versions starting from 6.1.0 before 6.1.12, all versions starting from 6.2.0 before 6.2.6

Fixed versions

  • 4.4.50
  • 5.4.20
  • 6.0.20
  • 6.1.12
  • 6.2.6

Solution

Upgrade to versions 4.4.50, 5.4.20, 6.0.20, 6.1.12, 6.2.6 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:L

Learn more about CVSS

Source file

packagist/symfony/http-kernel/GMS-2023-209.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:19 +0000.