cve.bz

CVE-2022-31043

7.5 highEPSS 2.0%Fix available

High (7.5). EPSS 2.0% estimated probability of exploitation activity in the next 30 days. Fixed in drupal/core 9.2.21, 9.3.16.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-31043 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-31043?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-31043?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-31043 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
guzzlephp:guzzlebefore 6.5.7
guzzlephp:guzzlefrom 7.0.0 before 7.4.4
drupal:drupalfrom 9.2.0 before 9.2.21
drupal:drupalfrom 9.3.0 before 9.3.16
drupal:drupal9.4.0:alpha1
drupal:drupal9.4.0:beta1
drupal:drupal9.4.0:rc1
debian:debian_linux11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
DRUPAL-CORE-2022-011Packagistdrupal/core>=8.0.0 <9.2.21
>=9.3.0 <9.3.16
9.2.21, 9.3.16
GHSA-f2wf-25xc-69c9Packagistguzzlehttp/guzzle>=4.0.0 <6.5.76.5.7
GHSA-f2wf-25xc-69c9Packagistguzzlehttp/guzzle>=7.0.0 <7.4.47.4.4
GHSA-w248-ffj2-4v5qPackagistguzzlehttp/guzzle>=4.0.0 <6.5.76.5.7
GHSA-w248-ffj2-4v5qPackagistguzzlehttp/guzzle>=7.0.0 <7.4.47.4.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11mediawiki1:1.35.8-1~deb11u1DSA-5246-1
Debian12, 13, 14guzzle7.4.4-1DEBIAN-CVE-2022-31043
Debian12, 13, 14mediawiki1:1.35.7-1DEBIAN-CVE-2022-31043
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 moreguzzleno fix listedUBUNTU-CVE-2022-31043

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-168 Windows ::DATA Alternate Data Stream Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON