{"schemaVersion":3,"id":"CVE-2022-31091","aliases":["UBUNTU-CVE-2022-31091","DEBIAN-CVE-2022-31091"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-06-27T00:00:00.000Z","modified":"2025-04-23T18:08:21.161Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.7,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","exploitability":7.9,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","exploitability":7.9,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01528,"percentile":0.74479,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.01528},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01528,"percentile":0.74479}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01528,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01528,"percentile":0.74479}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"}],"affected":[{"vendor":"debian","product":"guzzle","name":"guzzle","label":"guzzle","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/guzzle","purlType":"deb","versions":[{"text":"< 7.4.5-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.4.5-1","eol":null,"hubHref":null},{"vendor":"debian","product":"mediawiki","name":"mediawiki","label":"mediawiki","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/mediawiki","purlType":"deb","versions":[{"text":"< 1:1.35.7-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:1.35.7-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"civicrm","name":"civicrm","label":"civicrm","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/civicrm","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"icinga-php-thirdparty","name":"icinga-php-thirdparty","label":"icinga-php-thirdparty","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/icinga-php-thirdparty","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"icingaweb2-module-reactbundle","name":"icingaweb2-module-reactbundle","label":"icingaweb2-module-reactbundle","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/icingaweb2-module-reactbundle","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mediawiki","name":"mediawiki","label":"mediawiki","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mediawiki","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"11.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"11.0","eol":{"isEol":true,"eolDate":"2026-08-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"11","label":"11 (Bullseye)","eolFrom":"2026-08-31T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"11.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"guzzle","product":"guzzle","name":"guzzle","label":"guzzle","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.5.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.0.0, < 7.4.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.5.8 | ≥ 7.0.0, < 7.4.5","eol":null,"hubHref":"/vendor/guzzle/guzzle"},{"vendor":"guzzlephp","product":"guzzle","name":"guzzle","label":"guzzle","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.5.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.0.0, < 7.4.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.5.8 | ≥ 7.0.0, < 7.4.5","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"guzzle","label":"Guzzle","category":"framework"}},"hubHref":"/vendor/guzzlephp/guzzle"}],"affectedCount":9,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82","label":"github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82","hostname":"github.com","tags":["REPORT","Patch","Third Party Advisory"]},{"url":"https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699","label":"github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699","hostname":"github.com","tags":["REPORT","Mitigation","Third Party Advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5246","label":"www.debian.org/security/2022/dsa-5246","hostname":"www.debian.org","tags":["Vendor Advisory","Third Party Advisory"]},{"url":"https://security.gentoo.org/glsa/202305-24","label":"security.gentoo.org/glsa/202305-24","hostname":"security.gentoo.org","tags":["Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-31091","label":"ubuntu.com/security/CVE-2022-31091","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-31091","label":"www.cve.org/CVERecord?id=CVE-2022-31091","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-31091","label":"security-tracker.debian.org/tracker/CVE-2022-31091","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-5246-1","MGASA-2022-0338"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-06-27T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T18:08:21.161Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T18:07:42.535Z","stale":false,"partial":false}}