CVE-2022-31090
PHP vulnerability analysis and mitigation

Overview

Guzzle, an extensible PHP HTTP client, was found to have a security vulnerability (CVE-2022-31090) related to the handling of authorization headers during redirects. The vulnerability was discovered and disclosed on June 20, 2022, affecting versions <=6.5.7 and >=7.0.0,<=7.4.4 (GitHub Advisory).

Technical details

The vulnerability occurs when using the Curl handler with CURLOPTHTTPAUTH option. When a request responds with a redirect to a URI with a different origin, the CURLOPTHTTPAUTH and CURLOPT_USERPWD options were not properly cleared before following the redirect. Previously, only changes in host were considered, but the vulnerability showed that changes in host, port, or scheme should all be treated as changes in origin that require clearing these sensitive authentication options (GitHub Advisory).

Impact

The vulnerability could lead to unauthorized disclosure of sensitive authentication information. When following redirects to different origins, the authorization headers, which contain sensitive information, could be inappropriately forwarded to the new destination (GitHub Advisory).

Mitigation and workarounds

Users are advised to upgrade to Guzzle version 7.4.5 or 6.5.8, which contain the security fix. For those unable to upgrade immediately, two workarounds are available: either disable redirects completely if they are not required, or use the Guzzle stream handler backend instead of curl (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management