Vulnerability advisory
CVE-2022-29248
Cross-domain cookie leakage in Guzzle
Also known as BIT-drupal-2022-29248DRUPAL-CORE-2022-010GHSA-cwmx-hcrq-mhc3
- CVSS 3.x
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/drupal/drupal ↗ | |
| 943ecef3c0bc9822338252a7df6419aeb9253c9d to before dddf4bdf8dd5c61d021bf88d42db73c7ccb59a60 | dddf4bdf8dd5c61d021bf88d42db73c7ccb59a60 |
| 698ee686c23de8c97d7e0601cf745b220d54f4e1 to before 6acb839ece4f3275b748cc22d03a443b396a55e8 | 6acb839ece4f3275b748cc22d03a443b396a55e8 |
| GIT github.com/guzzle/guzzle ↗ | |
| All commits before f092dd734083473658de3ee4bef093ed77d2689c | f092dd734083473658de3ee4bef093ed77d2689c |
| 414c24961042f6616fb43e23fa69a785f9fc053e to before 74a8602c6faec9ef74b7a9391ac82c5e65b1cdab | 74a8602c6faec9ef74b7a9391ac82c5e65b1cdab |
Also listed as affected (143)
| |
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.
References
- Webwww.drupal.org/sa-core-2022-010 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2022/29xxx/CVE-2022-29248.json ↗
- Advisorygithub.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3 ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-29248 ↗
- Advisorywww.debian.org/security/2022/dsa-5246 ↗
- Fixgithub.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab ↗
- Fixgithub.com/guzzle/guzzle/pull/3018 ↗