Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. guzzlehttp/guzzle
  4. ›
  5. CVE-2022-29248

CVE-2022-29248: Exposure of Sensitive Information to an Unauthorized Actor

May 25, 2022 (updated July 21, 2023)

Guzzle is a PHP HTTP client. Guzzle prior to versions 6.5.6 and 7.4.3 contains a vulnerability with the cookie middleware. The vulnerability is that it is not checked if the cookie domain equals the domain of the server which sets the cookie via the Set-Cookie header, allowing a malicious server to set cookies for unrelated domains. The cookie middleware is disabled by default, so most library consumers will not be affected by this issue. Only those who manually add the cookie middleware to the handler stack or construct the client with [‘cookies’ => true] are affected. Moreover, those who do not use the same Guzzle client to call multiple domains and have disabled redirect forwarding are not affected by this vulnerability. Guzzle versions 6.5.6 and 7.4.3 contain a patch for this issue. As a workaround, turn off the cookie middleware.

References

  • github.com/advisories/GHSA-cwmx-hcrq-mhc3
  • github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab
  • github.com/guzzle/guzzle/pull/3018
  • github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3

Code Behaviors & Features

Detect and mitigate CVE-2022-29248 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 before 6.5.6, all versions starting from 7.0.0 before 7.4.3

Fixed versions

  • 6.5.6
  • 7.4.3

Solution

Upgrade to versions 6.5.6, 7.4.3 or above.

Impact 8.1 HIGH

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

Learn more about CVSS

Weakness

  • CWE-565: Reliance on Cookies without Validation and Integrity Checking

Source file

packagist/guzzlehttp/guzzle/CVE-2022-29248.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:01 +0000.