CVE-2022-31090 json
CURLOPT_HTTPAUTH option not cleared on change of origin in Guzzle
published 2022-06-21 4 y ago modified 2026-06-17 4 mo ago also GHSA-25mq-v84q-4j7r , EUVD-2022-5884
- cvss
- 7.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
Guzzle, an extensible PHP HTTP client. `Authorization` headers on requests are sensitive information. In affected versions when using our Curl handler, it is possible to use the `CURLOPT_HTTPAUTH` option to specify an `Authorization` header. On making a request which responds with a redirect to a URI with a different origin (change in host, scheme or port), if we choose to follow it, we should remove the `CURLOPT_HTTPAUTH` option before continuing, stopping curl from appending the `Authorization` header to the new request. 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. If you do not require or expect redirects to be followed, one should simply disable redirects all together. Alternatively, one can specify to use the Guzzle steam handler backend, rather than curl.
Patch / fix
- packagist guzzlehttp/guzzle 6.5.8, 7.4.5
- guzzlephp guzzle 6.5.8, 7.4.5
- guzzle Debian 14, Debian 13, Debian 12 7.4.5-1
- mediawiki Debian 14, Debian 13, Debian 12 1:1.35.7-1
debian advisories DEBIAN-CVE-2022-31090
- mediawiki Arch Linux 1.38.3-1
arch linux advisories AVG-2823
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-31090 updated cvss 7.7
php-guzzlehttp-guzzle: CURLOPT_HTTPAUTH option not cleared on change of origin
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.92% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| NVD | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| NVD | 2.0 | 4.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
| GitHub | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | guzzlehttp/guzzle | <6.5.8 >=7.0.0, <7.4.5 |
6.5.8 7.4.5 |
Affected products
- guzzle guzzle
Classification
References
-
github.com
/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
web, patch, third-party-advisory
-
debian.org
/security/2022/dsa-5246
vendor-advisory, web, third-party-advisory
-
security.gentoo.org
/glsa/202305-24
vendor-advisory, web, third-party-advisory
-
github.com
/guzzle/guzzle/security/advisories/GHSA-25mq-v84q-4j7r
web, mitigation, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31090
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31090.yaml
web
-
github.com
/guzzle/guzzle
package
-
github.com
/guzzle/guzzle/blob/6.5.8/CHANGELOG.md
web
-
github.com
/guzzle/guzzle/blob/7.4.5/CHANGELOG.md
web
Sources
- CVE List CVE-2022-31090
- GitHub Advisory GHSA-25mq-v84q-4j7r
- NVD CVE-2022-31090
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.