CVEfocus › CVE database › CVE-2022-31043

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

CVSS 7.5 HighEPSS 2.0% (higher than 82% of CVEs)Published 2022-06-09Updated 2025-04-23Assigner: GitHub_M

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.

CWE-200

What to do

Fixed builds are available from Debian, Packagist: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fixed
1Fix pending
2Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10guzzleFix pendingUBUNTU-CVE-2022-31043
Ubuntu 26.04guzzleUnder investigationUBUNTU-CVE-2022-31043
Ubuntu 25.10guzzleWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-31043
Ubuntu 24.04guzzleUnder investigationUBUNTU-CVE-2022-31043
Debian 14guzzleFixed7.4.4-1DEBIAN-CVE-2022-31043
Debian 14mediawikiFixed1:1.35.7-1DEBIAN-CVE-2022-31043
Debian 13guzzleFixed7.4.4-1DEBIAN-CVE-2022-31043
Debian 13mediawikiFixed1:1.35.7-1DEBIAN-CVE-2022-31043
Debian 12guzzleFixed7.4.4-1DEBIAN-CVE-2022-31043
Debian 12mediawikiFixed1:1.35.7-1DEBIAN-CVE-2022-31043
Packagist libraryguzzlehttp/guzzleFixed6.5.7GHSA-w248-ffj2-4v5q

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.