CVE-2022-29248

HIGH
Published May 25, 20224y ago · Modified Jun 17, 20262w ago
8.1 CVSS 3.1
High
Find Similar
Published May 25, 2022 4y ago
Last Modified Jun 17, 2026 2w ago

Description

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.

CVSS Details

Base Score
8.1
Exploitability
2.8
Impact
5.2
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Unchanged
Confidentiality High
Integrity High
Availability None

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 2

CWE-200 Exposure of Sensitive Information to an Unauthorized Actor Information Exposure
CWE-565

Affected Products 5

VendorProductVersionRange
guzzlephpguzzle* <6.5.6
guzzlephpguzzle*≥7.0.0  –  <7.4.3
drupaldrupal*≥9.2.0  –  <9.2.20
drupaldrupal*≥9.3.0  –  <9.3.14
debiandebian_linux11.0any

References 5

  • github.com https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab
    PatchThird Party Advisory
  • github.com https://github.com/guzzle/guzzle/pull/3018
    Issue TrackingPatchThird Party Advisory
  • github.com https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3
    Third Party Advisory
  • debian.org https://www.debian.org/security/2022/dsa-5246
    Third Party Advisory
  • drupal.org https://www.drupal.org/sa-core-2022-010
    PatchThird Party Advisory

Remediation

  • github.com https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab
    PatchThird Party Advisory
  • github.com https://github.com/guzzle/guzzle/pull/3018
    Issue TrackingPatchThird Party Advisory
  • drupal.org https://www.drupal.org/sa-core-2022-010
    PatchThird Party Advisory