Information disclosure in Drupal
CVE-2022-29248
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.
Vulnerability class: Information Disclosure
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.0 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N.
EPSS exploit prediction
EPSS 0.014, 72.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Drupal
- Guzzle — versions < 6.5.6, >= 7.0.0, < 7.4.3
- Guzzlephp Guzzle
- Debian Linux — versions 11.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (amakhu/cdp, blue-goheimochi/phpcon-nagoya2025, jsanchez949/CavernSafeVuln). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3 (Third Party Advisory)
- github.com/guzzle/guzzle/pull/3018 (Patch, Third Party Advisory, Issue Tracking)
- github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab (Patch, Third Party Advisory)
- www.drupal.org/sa-core-2022-010 (Patch, Third Party Advisory)
- DSA-5246 (vendor-advisory, Third Party Advisory)