CVE-2022-31091: Guzzle - Information Disclosure
- Cve: CVE-2022-31091
- Name: Guzzle - Information Disclosure
- Description: Guzzle, an extensible PHP HTTP client. `Authorization` and `Cookie` headers on requests are sensitive information. In affected versions on making a request which responds with a redirect to a URI with a different port, if we choose to follow it, we should remove the `Authorization` and `Cookie` headers from the request, before containing. Previously, we would only consider a change in host or scheme. Affected Guzzle 7 users should upgrade to Guzzle 7.4.5 as soon as possible. Affected users using any earlier series of Guzzle should upgrade to Guzzle 6.5.8 or 7.4.5. Note that a partial fix was implemented in Guzzle 7.4.2, where a change in host would trigger removal of the curl-added Authorization header, however this earlier fix did not cover change in scheme or change in port. An alternative approach would be to use your own redirect middleware, rather than ours, if you are unable to upgrade. If you do not require or expect redirects to be followed, one should simply disable redirects all together.
- Impact: Attackers can access sensitive Authorization and Cookie headers during redirects to different ports, risking information disclosure.
- Remediation: Upgrade to Guzzle 7.4.5 or Guzzle 6.5.8. Alternatively, disable redirects or implement custom redirect middleware.
- Vulnerability type: misconfiguration
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.7
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- Epss score: 0.0159
- Epss percentile: 0.76283
- Assignee: [email protected]
- Published at: 2022-06-27T22:15:08Z
- Age in days: 1611
- Modified at: 2026-06-17T04:44:46Z
- Patch available: yes
- References total: 4
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-31091
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor |
| NVD-CWE-noinfo | — |
Hackerone
- Reports: 2
- Rank: 3806
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82 | Patch, Third Party Advisory |
| https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699 | Mitigation, Third Party Advisory |
| https://www.debian.org/security/2022/dsa-5246 | Third Party Advisory |
| https://security.gentoo.org/glsa/202305-24 |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| guzzlephp:guzzle | >= 7.0.0, < 7.4.5; < 6.5.8 | no | nvd | /v1/products/guzzlephp/guzzle |
| debian:debian_linux | = 11.0 | no | nvd | /v1/products/debian/debian_linux |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| guzzle/guzzle | commit, fix, package, security_advisory | yes | /v1/repositories/guzzle/guzzle |
Index
- Repositories: 216
- Repositories high signal: 144
- Packages: 1
Exploitation
- Remote: yes
- Authentication required: yes
- Hackerone reports: 2
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since