CVE-2022-29248Cross-domain cookie leakage in Guzzle
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.
What to do
Fixed builds are available from Debian, Packagist: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | guzzle | Fix pending | UBUNTU-CVE-2022-29248 | |
| Ubuntu 26.04 | guzzle | Under investigation | UBUNTU-CVE-2022-29248 | |
| Ubuntu 25.10 | guzzle | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-29248 | |
| Ubuntu 24.04 | guzzle | Under investigation | UBUNTU-CVE-2022-29248 | |
| Debian 14 | guzzle | Fixed | 7.4.4-1 | DEBIAN-CVE-2022-29248 |
| Debian 14 | mediawiki | Fixed | 1:1.35.7-1 | DEBIAN-CVE-2022-29248 |
| Debian 13 | guzzle | Fixed | 7.4.4-1 | DEBIAN-CVE-2022-29248 |
| Debian 13 | mediawiki | Fixed | 1:1.35.7-1 | DEBIAN-CVE-2022-29248 |
| Debian 12 | guzzle | Fixed | 7.4.4-1 | DEBIAN-CVE-2022-29248 |
| Debian 12 | mediawiki | Fixed | 1:1.35.7-1 | DEBIAN-CVE-2022-29248 |
| Packagist library | guzzlehttp/guzzle | Fixed | 6.5.6 | GHSA-cwmx-hcrq-mhc3 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- guzzle: affected: < 6.5.6, >= 7.0.0, < 7.4.3
Vendor advisories:
- https://www.debian.org/security/2022/dsa-5246 (vendor-advisory)
References
- https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3
- https://github.com/guzzle/guzzle/pull/3018
- https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab
- https://www.drupal.org/sa-core-2022-010
- https://www.debian.org/security/2022/dsa-5246
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.