High severity · published May 25, 2022
CVE-2022-29248
Guzzle is a PHP HTTP client
8.1
CVSS
1.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.4% · higher than 72% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DR
Drupal · Drupal
9.2.0 before 9.2.20; 9.3.0 before 9.3.14 · source: NVD
DL
Debian Linux · Debian
11.0 · source: NVD
GU
Guzzle · Guzzlephp
before 6.5.6; 7.0.0 before 7.4.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-29248
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-29248
Patch
https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab
Issue Tracking
https://github.com/guzzle/guzzle/pull/3018
Third Party Advisory
https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3
Third Party Advisory
https://www.debian.org/security/2022/dsa-5246
Patch
https://www.drupal.org/sa-core-2022-010
More from Drupal
9.8
CVE-2026-9082
Drupal core - Highly critical - SQL injection - SA-CORE-2026-004
9.8
CVE-2018-7602
Drupal core - Highly critical - Remote Code Execution - SA-CORE-2018-004
9.8
CVE-2018-7600
Drupal Core Remote Code Execution Vulnerability
8.8
CVE-2020-13671
Drupal core Un-restricted Upload of File
8.1
CVE-2019-6340
Drupal core - Highly critical - Remote Code Execution
