LiveActive security incident?Get immediate response
CVE Record

CVE-2022-31043: Fix failure to strip Authorization header on HTTP downgrade in Guzzle

Guzzle is an open source PHP HTTP client. In affected versions `Authorization` headers on requests are sensitive information. On making a request using the `https` scheme to a server which responds with a redirect to a URI with the `http` scheme, we should not forward the `Authorization` header on. This is much the same as to how we don't forward on the header if the host changes. Prior to this fix, `https` to `http` downgrades did not result in the `Authorization` header being removed, only changes to the host. Affected Guzzle 7 users should upgrade to Guzzle 7.4.4 as soon as possible. Affected users using any earlier series of Guzzle should upgrade to Guzzle 6.5.7 or 7.4.4. Users unable to upgrade may consider an alternative approach which would be to use their own redirect middleware. Alternately users may simply disable redirects all together if redirects are not expected or required.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This flaw can cause PHP apps using vulnerable Guzzle to send Authorization credentials over unencrypted HTTP after a redirect from HTTPS to HTTP. That can expose API tokens or bearer credentials to interception or logging. Business risk is credential disclosure where applications follow redirects during authenticated outbound requests.

Executive priority

Treat as a high-priority dependency update for systems that make authenticated outbound HTTP calls. The issue can expose reusable credentials, but the provided evidence does not indicate active exploitation or code execution. Prioritize internet-facing services, integration hubs, and platforms with broad API token access.

Technical view

Guzzle failed to remove Authorization when a request to an HTTPS URI was redirected to HTTP on the same host. It already stripped the header on host changes, but not scheme downgrades. Affected versions are before 6.5.7 and 7.0.0 before 7.4.4. Fixes are in 6.5.7 and 7.4.4.

Likely exposure

Exposure is most likely in PHP services, CMS modules, or integrations using Guzzle for authenticated outbound requests with automatic redirects enabled. Drupal and Debian advisories show downstream packaging impact. Systems not using affected Guzzle versions, not sending Authorization, or not following redirects have lower exposure.

Exploitation context

The provided sources do not show CISA KEV listing or active exploitation. Abuse depends on an HTTPS-to-HTTP redirect while an Authorization header is present. The documented impact is confidentiality loss of credentials, not remote code execution, integrity compromise, or availability loss.

Researcher notes

Focus validation on redirect handling, dependency reachability, and whether Authorization-bearing requests can be redirected from HTTPS to HTTP. The CVSS vector is network, low complexity, no privileges, no user interaction, with high confidentiality impact only. Avoid assuming exposure without affected Guzzle versions and relevant redirect behavior.

Mitigation direction

  • Upgrade Guzzle 6.x to 6.5.7 or Guzzle 7.x to 7.4.4 or later.
  • Inventory direct and transitive Guzzle dependencies in PHP applications and packaged platforms.
  • Apply relevant downstream vendor updates, including Drupal or Debian packages where applicable.
  • If upgrade is blocked, use custom redirect middleware that strips Authorization on downgrades.
  • Disable automatic redirects where redirects are not expected or required.

Validation and detection

  • Check dependency manifests and lockfiles for vulnerable Guzzle versions.
  • Confirm deployed containers or servers are not carrying older vendored copies.
  • Review outbound HTTP client usage for Authorization headers and automatic redirect behavior.
  • Verify vendor advisories for Drupal, Debian, or other packaged distributions in use.
  • After updating, run application regression tests covering authenticated outbound requests.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-200: Information exposure and cloud metadata lookup

Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31043 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
6Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N3.93.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2022-31043Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
guzzleguzzle< 6.5.7, >=7.0.0, < 7.4.4Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-200 · source CWE mapping

Exposure of Sensitive Information to an Unauthorized Actor

Exposure of Sensitive Information to an Unauthorized Actor represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.