CVEMETERBack to radar
OFFICIAL RECORD · PHP packages

CVE-2022-31091

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 7.7 · high

Change in port should be considered a change in origin in Guzzle

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.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 1.590% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:57:41.748Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 7.7 · published by GitHub_M
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Assessment source · checked 2026-11-19T12:56:32.141Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T16:57:41.748ZCISA KEV
cvssverified2026-11-19T12:56:32.141ZCVE Program
epssverified2026-11-19T16:04:33.773ZFIRST EPSS
patchesverified2026-11-19T12:52:00.283ZOSV
affectedverified2026-11-19T12:56:32.141ZCVE Program
lifecycleverified2026-11-19T12:56:32.141ZCVE Program

Affected versions and configuration

guzzle guzzle; default status: unknown: < 6.5.8 [affected; scheme: unspecified]; >=7.0.0, < 7.4.5 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "guzzle",
      "product": "guzzle",
      "versions": [
        {
          "status": "affected",
          "version": "< 6.5.8"
        },
        {
          "status": "affected",
          "version": ">=7.0.0, < 7.4.5"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CVE Program Container",
      "references": [
        {
          "url": "https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699",
          "tags": [
            "x_transferred"
          ]
        },
        {
          "url": "https://www.debian.org/security/2022/dsa-5246",
          "name": "DSA-5246",
          "tags": [
            "vendor-advisory",
            "x_transferred"
          ]
        },
        {
          "url": "https://security.gentoo.org/glsa/202305-24",
          "name": "GLSA-202305-24",
          "tags": [
            "vendor-advisory",
            "x_transferred"
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "af854a3a-2127-422b-91ae-364da2661108",
        "shortName": "CVE",
        "dateUpdated": "2024-08-03T07:11:39.362Z"
      }
    },
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2022-31091",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2025-04-23T14:04:47.252733Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2025-04-23T18:08:21.161Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-q559-8m2m-g699",
  "aliases": [
    "CVE-2022-31091"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.5.8"
            }
          ]
        }
      ],
      "package": {
        "name": "guzzlehttp/guzzle",
        "purl": "pkg:composer/guzzlehttp/guzzle",
        "ecosystem": "Packagist"
      },
      "versions": [
        "4.0.0",
        "4.0.0-rc.1",
        "4.0.0-rc.2",
        "4.0.1",
        "4.0.2",
        "4.1.0",
        "4.1.1",
        "4.1.2",
        "4.1.3",
        "4.1.4",
        "4.1.5",
        "4.1.6",
        "4.1.7",
        "4.1.8",
        "4.2.0",
        "4.2.1",
        "4.2.2",
        "4.2.3",
        "4.2.4",
        "5.0.0",
        "5.0.1",
        "5.0.2",
        "5.0.3",
        "5.1.0",
        "5.2.0",
        "5.3.0",
        "5.3.1",
        "5.3.2",
        "5.3.3",
        "5.3.4",
        "6.0.0",
        "6.0.1",
        "6.0.2",
        "6.1.0",
        "6.1.1",
        "6.2.0",
        "6.2.1",
        "6.2.2",
        "6.2.3",
        "6.3.0",
        "6.3.1",
        "6.3.2",
        "6.3.3",
        "6.4.0",
        "6.4.1",
        "6.5.0",
        "6.5.1",
        "6.5.2",
        "6.5.3",
        "6.5.4",
        "6.5.5",
        "6.5.6",
        "6.5.7",
        "v1.0.3",
        "v1.0.4",
        "v2.0.0",
        "v2.0.1",
        "v2.0.2",
        "v2.0.3",
        "v2.0.4",
        "v2.0.5",
        "v2.1.0",
        "v2.1.1",
        "v2.1.2",
        "v2.1.3",
        "v2.1.4",
        "v2.2.0",
        "v2.2.1",
        "v2.2.2",
        "v2.2.3",
        "v2.2.4",
        "v2.3.2",
        "v2.4.0",
        "v2.4.1",
        "v2.5.0",
        "v2.6.0",
        "v2.6.1",
        "v2.6.2",
        "v2.6.3",
        "v2.6.4",
        "v2.6.5",
        "v2.6.6",
        "v2.7.0",
        "v2.7.1",
        "v2.7.2",
        "v2.8.0",
        "v2.8.1",
        "v2.8.2",
        "v2.8.3",
        "v2.8.4",
        "v2.8.5",
        "v2.8.6",
        "v2.8.7",
        "v2.8.8",
        "v3.0.0",
        "v3.0.1",
        "v3.0.2",
        "v3.0.3",
        "v3.0.4",
        "v3.0.5",
        "v3.0.6",
        "v3.0.7",
        "v3.1.0",
        "v3.1.1",
        "v3.1.2",
        "v3.2.0",
        "v3.3.0",
        "v3.3.1",
        "v3.4.0",
        "v3.4.1",
        "v3.4.2",
        "v3.4.3",
        "v3.5.0",
        "v3.6.0",
        "v3.7.0",
        "v3.7.1",
        "v3.7.2",
        "v3.7.3",
        "v3.7.4",
        "v3.8.0",
        "v3.8.1"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-q559-8m2m-g699/GHSA-q559-8m2m-g699.json"
      }
    },
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "7.0.0"
            },
            {
              "fixed": "7.4.5"
            }
          ]
        }
      ],
      "package": {
        "name": "guzzlehttp/guzzle",
        "purl": "pkg:composer/guzzlehttp/guzzle",
        "ecosystem": "Packagist"
      },
      "versions": [
        "7.0.0",
        "7.0.1",
        "7.1.0",
        "7.1.1",
        "7.2.0",
        "7.3.0",
        "7.4.0",
        "7.4.1",
        "7.4.2",
        "7.4.3",
        "7.4.4"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-q559-8m2m-g699/GHSA-q559-8m2m-g699.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699",
      "type": "WEB"
    },
    {
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-31091",
      "type": "ADVISORY"
    },
    {
      "url": "https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
      "type": "WEB"
    },
    {
      "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/guzzlehttp/guzzle/CVE-2022-31091.yaml",
      "type": "WEB"
    },
    {
      "url": "https://github.com/guzzle/guzzle",
      "type": "PACKAGE"
    },
    {
      "url": "https://security.gentoo.org/glsa/202305-24",
      "type": "WEB"
    },
    {
      "url": "https://www.debian.org/security/2022/dsa-5246",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-200"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "nvd_published_at": "2022-06-27T22:15:00Z",
    "github_reviewed_at": "2022-06-21T20:07:16Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryPackagist / packageguzzlehttp/guzzleNot a distribution channel6.5.8Official record
ecosystem-boundaryPackagist / packageguzzlehttp/guzzleNot a distribution channel7.4.5Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history