Search for vulnerabilities
Vulnerability details: VCID-eabm-r6ua-nbcv
Vulnerability ID VCID-eabm-r6ua-nbcv
Aliases CVE-2022-31090
GHSA-25mq-v84q-4j7r
GMS-2022-2528
Summary CURLOPT_HTTPAUTH option not cleared on change of origin ### Impact `Authorization` headers on requests are sensitive information. 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, if we choose to follow it, we should remove the `CURLOPT_HTTPAUTH` and `CURLOPT_USERPWD` options before continuing, stopping curl from appending the `Authorization` header to the new request. Previously, we would only consider a change in host. Now, we consider any change in host, port or scheme to be a change in origin. ### Patches 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. ### Workarounds 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 stream handler backend, rather than curl. ### References * [RFC9110 Section 15.4](https://www.rfc-editor.org/rfc/rfc9110.html#name-redirection-3xx) * [CVE-2022-27776](https://curl.se/docs/CVE-2022-27776.html) ### For more information If you have any questions or comments about this advisory, please get in touch with us in `#guzzle` on the [PHP HTTP Slack](https://php-http.slack.com/). Do not report additional security advisories in that public channel, however - please follow our [vulnerability reporting process](https://github.com/guzzle/guzzle/security/policy).
Status Published
Exploitability 0.5
Weighted Severity 8.0
Risk 4.0
Affected and Fixed Packages Package Details
Weaknesses (4)
System Score Found at
epss 0.02856 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.02856 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.02856 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.02856 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.02856 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.02856 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.02856 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.02856 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.02856 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.03447 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.03447 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.03447 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.04306 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.04306 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.04306 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.04306 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.04306 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.04306 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.04306 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.04306 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.04306 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.04306 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.0442 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.0442 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.0442 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
epss 0.0442 https://api.first.org/data/v1/epss?cve=CVE-2022-31090
cvssv3.1_qr HIGH https://github.com/advisories/GHSA-25mq-v84q-4j7r
cvssv3.1 7.7 https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31090.yaml
generic_textual HIGH https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31090.yaml
cvssv3.1 7.7 https://github.com/guzzle/guzzle
generic_textual HIGH https://github.com/guzzle/guzzle
cvssv3.1 7.7 https://github.com/guzzle/guzzle/blob/6.5.8/CHANGELOG.md
generic_textual HIGH https://github.com/guzzle/guzzle/blob/6.5.8/CHANGELOG.md
cvssv3.1 7.7 https://github.com/guzzle/guzzle/blob/7.4.5/CHANGELOG.md
generic_textual HIGH https://github.com/guzzle/guzzle/blob/7.4.5/CHANGELOG.md
cvssv3.1 7.7 https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
generic_textual HIGH https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
ssvc Track https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
cvssv3.1 7.7 https://github.com/guzzle/guzzle/security/advisories/GHSA-25mq-v84q-4j7r
cvssv3.1_qr HIGH https://github.com/guzzle/guzzle/security/advisories/GHSA-25mq-v84q-4j7r
generic_textual HIGH https://github.com/guzzle/guzzle/security/advisories/GHSA-25mq-v84q-4j7r
ssvc Track https://github.com/guzzle/guzzle/security/advisories/GHSA-25mq-v84q-4j7r
cvssv2 4.0 https://nvd.nist.gov/vuln/detail/CVE-2022-31090
cvssv3.1 7.7 https://nvd.nist.gov/vuln/detail/CVE-2022-31090
generic_textual HIGH https://nvd.nist.gov/vuln/detail/CVE-2022-31090
archlinux Unknown https://security.archlinux.org/AVG-2823
cvssv3.1 7.7 https://security.gentoo.org/glsa/202305-24
generic_textual HIGH https://security.gentoo.org/glsa/202305-24
ssvc Track https://security.gentoo.org/glsa/202305-24
cvssv3.1 7.7 https://www.debian.org/security/2022/dsa-5246
generic_textual HIGH https://www.debian.org/security/2022/dsa-5246
ssvc Track https://www.debian.org/security/2022/dsa-5246
Reference id Reference type URL
https://api.first.org/data/v1/epss?cve=CVE-2022-31090
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44854
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44855
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-44856
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28201
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28202
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-28203
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29248
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31042
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31043
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31090
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-31091
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-34911
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-34912
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41765
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41767
https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31090.yaml
https://github.com/guzzle/guzzle
https://github.com/guzzle/guzzle/blob/6.5.8/CHANGELOG.md
https://github.com/guzzle/guzzle/blob/7.4.5/CHANGELOG.md
https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
https://github.com/guzzle/guzzle/security/advisories/GHSA-25mq-v84q-4j7r
https://nvd.nist.gov/vuln/detail/CVE-2022-31090
https://security.gentoo.org/glsa/202305-24
https://www.debian.org/security/2022/dsa-5246
1014492 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1014492
AVG-2823 https://security.archlinux.org/AVG-2823
cpe:2.3:a:guzzlephp:guzzle:*:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:guzzlephp:guzzle:*:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
GHSA-25mq-v84q-4j7r https://github.com/advisories/GHSA-25mq-v84q-4j7r
No exploits are available.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31090.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://github.com/guzzle/guzzle
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://github.com/guzzle/guzzle/blob/6.5.8/CHANGELOG.md
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://github.com/guzzle/guzzle/blob/7.4.5/CHANGELOG.md
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:04:50Z/ Found at https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://github.com/guzzle/guzzle/security/advisories/GHSA-25mq-v84q-4j7r
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:04:50Z/ Found at https://github.com/guzzle/guzzle/security/advisories/GHSA-25mq-v84q-4j7r
Vector: AV:N/AC:L/Au:S/C:P/I:N/A:N Found at https://nvd.nist.gov/vuln/detail/CVE-2022-31090
Exploitability (E) Access Vector (AV) Access Complexity (AC) Authentication (Au) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

high

functional

unproven

proof_of_concept

not_defined

local

adjacent_network

network

high

medium

low

multiple

single

none

none

partial

complete

none

partial

complete

none

partial

complete

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://nvd.nist.gov/vuln/detail/CVE-2022-31090
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://security.gentoo.org/glsa/202305-24
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:04:50Z/ Found at https://security.gentoo.org/glsa/202305-24
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N Found at https://www.debian.org/security/2022/dsa-5246
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-23T14:04:50Z/ Found at https://www.debian.org/security/2022/dsa-5246
Exploit Prediction Scoring System (EPSS)
Percentile 0.8573
EPSS Score 0.02856
Published At Sept. 9, 2025, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2025-07-31T09:05:34.949604+00:00 GithubOSV Importer Import https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-25mq-v84q-4j7r/GHSA-25mq-v84q-4j7r.json 37.0.0