Vulnerability · Published May 25, 2022 · Assigned by GitHub_M

CVE-2022-29248Cross-domain cookie leakage in Guzzle

High 8.0

In plain English

A high-severity information exposure in guzzle from guzzle. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.0High
Exploit odds (30 days)1.4%top 28.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12guzzle7.4.4-1DEBIAN-CVE-2022-29248
Debian:13guzzle7.4.4-1DEBIAN-CVE-2022-29248
Debian:14guzzle7.4.4-1DEBIAN-CVE-2022-29248
Debian:12mediawiki1:1.35.7-1DEBIAN-CVE-2022-29248
Debian:13mediawiki1:1.35.7-1DEBIAN-CVE-2022-29248
Debian:14mediawiki1:1.35.7-1DEBIAN-CVE-2022-29248
Packagistdrupal/core9.2.20, 9.3.14DRUPAL-CORE-2022-010
Packagistguzzlehttp/guzzle7.4.3GHSA-cwmx-hcrq-mhc3
Packagistguzzlehttp/guzzle6.5.6GHSA-cwmx-hcrq-mhc3
Ubuntu:24.04:LTSguzzleno fix listedUBUNTU-CVE-2022-29248
Ubuntu:25.10guzzleno fix listedUBUNTU-CVE-2022-29248
Ubuntu:26.04:LTSguzzleno fix listedUBUNTU-CVE-2022-29248
Ubuntu:26.10guzzleno fix listedUBUNTU-CVE-2022-29248

Affected products (as reported)

VendorProductVersions
guzzle guzzle < 6.5.6>= 7.0.0, < 7.4.3

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

References