Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-31042

7.5 · HIGH
Published Jun 10, 2022 guzzlephp CWE-200 EPSS 1.91% (78th pctl)

Overview

CVE-2022-31042 is a high-severity vulnerability affecting guzzlephp guzzle. It was published on June 10, 2022 and has a CVSS 3.1 base score of 7.5 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

Guzzle is an open source PHP HTTP client. In affected versions the `Cookie` 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, or on making a request to a server which responds with a redirect to a a URI to a different host, we should not forward the `Cookie` header on. Prior to this fix, only cookies that were managed by our cookie middleware would be safely removed, and any `Cookie` header manually added to the initial request would not be stripped. We now always strip it, and allow the cookie middleware to re-add any cookies that it deems should be there. 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 to use your own redirect middleware, rather than ours. If you do not require or expect red

Remediation

Check the references section for vendor advisories and patches from guzzlephp. Update guzzle to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
guzzlephp guzzle >= 0, < 6.5.7 Affected
drupal drupal >= 9.2.0, < 9.2.21 Affected

Frequently Asked Questions

What is CVE-2022-31042?

CVE-2022-31042 is a high-severity vulnerability affecting guzzlephp guzzle. It was published on June 10, 2022 and has a CVSS 3.1 base score of 7.5 (HIGH).

How severe is CVE-2022-31042?

This vulnerability has a CVSS 3.1 base score of 7.5, rated HIGH. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2022-31042?

Check the references section for vendor advisories and patches from guzzlephp. Update guzzle to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-31042?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-31042 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.