CVE-2022-29248
CVE-2022-29248 is a high-severity vulnerability in Guzzlephp Guzzle with a CVSS 3.x base score of 8.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-565.
Key facts
- Severity: High (CVSS 3.x base score 8.0)
- CVSS v2: 5.8
- EPSS exploit prediction: 1% (66th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-565
- Affected product: Guzzlephp Guzzle
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2022-29248?
- CVE-2022-29248 has a CVSS 3.x base score of 8.0, rated high severity. It is exploitable over network with high attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability none.
- Is CVE-2022-29248 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (66th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-29248?
- CVE-2022-29248 primarily affects Guzzlephp Guzzle. In total, 3 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2022-29248?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2022-29248 published?
- CVE-2022-29248 was published on 2022-05-25 and last updated on 2026-06-17.
References
- https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab
- https://github.com/guzzle/guzzle/pull/3018
- https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3
- https://www.debian.org/security/2022/dsa-5246
- https://www.drupal.org/sa-core-2022-010
Affected products (3)
- cpe:2.3:a:guzzlephp:guzzle:*:*:*:*:*:*:*:*
- cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
More vulnerabilities in Guzzlephp Guzzle
- CVE-2022-31091 — High (CVSS 7.7): Guzzle, an extensible PHP HTTP client. `Authorization` and `Cookie` headers on requests are sensitive information. In…
- CVE-2022-31090 — High (CVSS 7.7): Guzzle, an extensible PHP HTTP client. `Authorization` headers on requests are sensitive information. In affected…
- CVE-2022-31043 — High (CVSS 7.5): Guzzle is an open source PHP HTTP client. In affected versions `Authorization` headers on requests are sensitive…
- CVE-2022-31042 — High (CVSS 7.5): Guzzle is an open source PHP HTTP client. In affected versions the `Cookie` headers on requests are sensitive…
- CVE-2026-55568 — Medium (CVSS 5.9): Guzzle is an extensible PHP HTTP client. Prior to 7.12.1, in certain configurations, traffic expected to be protected…
- CVE-2026-55767 — Medium (CVSS 5.8): Guzzle is an extensible PHP HTTP client. Prior to 7.12.1, CookieJar incorrectly accepts cookies with a dot-only Domain…
All CVEs affecting Guzzlephp Guzzle →
Other CWE-565 vulnerabilities
- CVE-2023-41084 — Critical (CVSS 10.0): Session management within the web application is incorrect and allows attackers to steal session cookies to perform a…
- CVE-2014-125112 — Critical (CVSS 9.8): Plack::Middleware::Session::Cookie versions through 0.21 for Perl allows remote code…
- CVE-2022-50926 — Critical (CVSS 9.8): WAGO 750-8212 PFC200 G2 2ETH RS firmware contains a privilege escalation vulnerability that allows attackers to…
- CVE-2025-65212 — Critical (CVSS 9.8): An issue was discovered in NJHYST HY511 POE core before 2.1 and plugins before 0.1. The vulnerability stems from the…
- CVE-2025-14440 — Critical (CVSS 9.8): The JAY Login & Register plugin for WordPress is vulnerable to authentication bypass in versions up to, and including,…
- CVE-2025-2395 — Critical (CVSS 9.8): The U-Office Force from e-Excellence has an Improper Authentication vulnerability, allowing unauthenticated remote…