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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | guzzle | 7.4.4-1 | DEBIAN-CVE-2022-29248 |
| Debian:13 | guzzle | 7.4.4-1 | DEBIAN-CVE-2022-29248 |
| Debian:14 | guzzle | 7.4.4-1 | DEBIAN-CVE-2022-29248 |
| Debian:12 | mediawiki | 1:1.35.7-1 | DEBIAN-CVE-2022-29248 |
| Debian:13 | mediawiki | 1:1.35.7-1 | DEBIAN-CVE-2022-29248 |
| Debian:14 | mediawiki | 1:1.35.7-1 | DEBIAN-CVE-2022-29248 |
| Packagist | drupal/core | 9.2.20, 9.3.14 | DRUPAL-CORE-2022-010 |
| Packagist | guzzlehttp/guzzle | 7.4.3 | GHSA-cwmx-hcrq-mhc3 |
| Packagist | guzzlehttp/guzzle | 6.5.6 | GHSA-cwmx-hcrq-mhc3 |
| Ubuntu:24.04:LTS | guzzle | no fix listed | UBUNTU-CVE-2022-29248 |
| Ubuntu:25.10 | guzzle | no fix listed | UBUNTU-CVE-2022-29248 |
| Ubuntu:26.04:LTS | guzzle | no fix listed | UBUNTU-CVE-2022-29248 |
| Ubuntu:26.10 | guzzle | no fix listed | UBUNTU-CVE-2022-29248 |
Affected products (as reported)
Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N