Bug 2097356 (CVE-2022-31042) - CVE-2022-31042 php-guzzlehttp-guzzle: disclosure of sensitive information
Summary: CVE-2022-31042 php-guzzlehttp-guzzle: disclosure of sensitive information
Alias: CVE-2022-31042
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 2097357 2097358
TreeView+ depends on / blocked
Reported: 2022-06-15 13:50 UTC by Marian Rehak
Modified: 2022-06-15 17:53 UTC (History)
1 user (show)

Fixed In Version: php-guzzlehttp-guzzle 6.5.7, php-guzzlehttp-guzzle 7.4.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2022-06-15 17:53:24 UTC

Attachments (Terms of Use)

Description Marian Rehak 2022-06-15 13:50:41 UTC
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.



Comment 1 Marian Rehak 2022-06-15 13:50:55 UTC
Created php-guzzlehttp-guzzle tracking bugs for this issue:

Affects: epel-7 [bug 2097358]
Affects: fedora-all [bug 2097357]

Comment 2 Product Security DevOps Team 2022-06-15 17:53:22 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.

Note You need to log in before you can comment on or make changes to this bug.