Name | CVE-2022-31042 |
Description | Guzzle is an open source PHP HTTP client. In affected versions the `Cookie` headers on requests are sensitive information. On making a request using the `https` scheme to a server which responds with a redirect to a URI with the `http` scheme, or on making a request to a server which responds with a redirect to a a URI to a different host, we should not forward the `Cookie` header on. Prior to this fix, only cookies that were managed by our cookie middleware would be safely removed, and any `Cookie` header manually added to the initial request would not be stripped. We now always strip it, and allow the cookie middleware to re-add any cookies that it deems should be there. Affected Guzzle 7 users should upgrade to Guzzle 7.4.4 as soon as possible. Affected users using any earlier series of Guzzle should upgrade to Guzzle 6.5.7 or 7.4.4. Users unable to upgrade may consider an alternative approach to use your own redirect middleware, rather than ours. If you do not require or expect redirects to be followed, one should simply disable redirects all together. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-5246-1 |
Debian Bugs | 1012821 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
guzzle (PTS) | bookworm | 7.4.5-1 | fixed |
sid, trixie | 7.9.2-0.1 | fixed | |
mediawiki (PTS) | stretch (security) | 1:1.27.7-1+deb9u11 | fixed |
stretch (lts), stretch | 1:1.27.7-1+deb9u13 | fixed | |
buster (security), buster, buster (lts) | 1:1.31.16-1+deb10u8 | fixed | |
bullseye | 1:1.35.13-1+deb11u2 | fixed | |
bullseye (security) | 1:1.35.13-1+deb11u3 | fixed | |
bookworm (security), bookworm | 1:1.39.10-1~deb12u1 | fixed | |
sid, trixie | 1:1.39.10-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
guzzle | source | (unstable) | 7.4.4-1 | 1012821 | ||
mediawiki | source | stretch | (not affected) | |||
mediawiki | source | buster | (not affected) | |||
mediawiki | source | bullseye | 1:1.35.8-1~deb11u1 | DSA-5246-1 | ||
mediawiki | source | (unstable) | 1:1.35.7-1 |
[buster] - mediawiki <not-affected> (Embedded Guzzle copy not present)
https://github.com/guzzle/guzzle/security/advisories/GHSA-f2wf-25xc-69c9
https://github.com/guzzle/guzzle/commit/e3ff079b22820c2029d4c2a87796b6a0b8716ad8 (7.4.4)
[stretch] - mediawiki <not-affected> (Embedded Guzzle copy not present)