ubuntu-cve-2022-31091
Vulnerability from osv_ubuntu
Published
2022-06-27 22:15
Modified
2026-05-27 10:02
Summary
Details

Guzzle, an extensible PHP HTTP client. Authorization and Cookie headers on requests are sensitive information. In affected versions on making a request which responds with a redirect to a URI with a different port, if we choose to follow it, we should remove the Authorization and Cookie headers from the request, before containing. Previously, we would only consider a change in host or scheme. Affected Guzzle 7 users should upgrade to Guzzle 7.4.5 as soon as possible. Affected users using any earlier series of Guzzle should upgrade to Guzzle 6.5.8 or 7.4.5. Note that a partial fix was implemented in Guzzle 7.4.2, where a change in host would trigger removal of the curl-added Authorization header, however this earlier fix did not cover change in scheme or change in port. An alternative approach would be to use your own redirect middleware, rather than ours, if you are unable to upgrade. If you do not require or expect redirects to be followed, one should simply disable redirects all together.


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "civicrm-common",
            "binary_version": "4.7.1+dfsg-2ubuntu1+esm1"
          },
          {
            "binary_name": "civicrm-l10n",
            "binary_version": "4.7.1+dfsg-2ubuntu1+esm1"
          },
          {
            "binary_name": "drupal7-mod-civicrm",
            "binary_version": "4.7.1+dfsg-2ubuntu1+esm1"
          },
          {
            "binary_name": "wordpress-civicrm",
            "binary_version": "4.7.1+dfsg-2ubuntu1+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:16.04:LTS",
        "name": "civicrm",
        "purl": "pkg:deb/ubuntu/civicrm@4.7.1+dfsg-2ubuntu1+esm1?arch=source\u0026distro=esm-apps/xenial"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.7.1+dfsg-1",
        "4.7.1+dfsg-2",
        "4.7.1+dfsg-2ubuntu1",
        "4.7.1+dfsg-2ubuntu1+esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "civicrm-common",
            "binary_version": "4.7.30+dfsg-1ubuntu1+esm1"
          },
          {
            "binary_name": "civicrm-l10n",
            "binary_version": "4.7.30+dfsg-1ubuntu1+esm1"
          },
          {
            "binary_name": "wordpress-civicrm",
            "binary_version": "4.7.30+dfsg-1ubuntu1+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:18.04:LTS",
        "name": "civicrm",
        "purl": "pkg:deb/ubuntu/civicrm@4.7.30+dfsg-1ubuntu1+esm1?arch=source\u0026distro=esm-apps/bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "4.7.23+dfsg-1ubuntu1",
        "4.7.24+dfsg-1ubuntu1",
        "4.7.30+dfsg-1ubuntu1",
        "4.7.30+dfsg-1ubuntu1+esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "mediawiki",
            "binary_version": "1:1.27.4-3"
          },
          {
            "binary_name": "mediawiki-classes",
            "binary_version": "1:1.27.4-3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "mediawiki",
        "purl": "pkg:deb/ubuntu/mediawiki@1:1.27.4-3?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:1.27.3-1",
        "1:1.27.4-1",
        "1:1.27.4-2",
        "1:1.27.4-3"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "civicrm-common",
            "binary_version": "5.21.2+dfsg-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "civicrm-l10n",
            "binary_version": "5.21.2+dfsg-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "wordpress-civicrm",
            "binary_version": "5.21.2+dfsg-1ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "civicrm",
        "purl": "pkg:deb/ubuntu/civicrm@5.21.2+dfsg-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "5.11.0+dfsg-1",
        "5.18.1+dfsg-1",
        "5.20.3+dfsg-1",
        "5.21.0+dfsg-1",
        "5.21.1+dfsg-1",
        "5.21.2+dfsg-1",
        "5.21.2+dfsg-1ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "mediawiki",
            "binary_version": "1:1.31.7-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "mediawiki-classes",
            "binary_version": "1:1.31.7-1ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:20.04:LTS",
        "name": "mediawiki",
        "purl": "pkg:deb/ubuntu/mediawiki@1:1.31.7-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:1.31.2-1ubuntu1",
        "1:1.31.5-1",
        "1:1.31.5-1ubuntu1",
        "1:1.31.5-2",
        "1:1.31.5-3",
        "1:1.31.5-3ubuntu1",
        "1:1.31.6-1",
        "1:1.31.7-1",
        "1:1.31.7-1ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "icinga-php-thirdparty",
            "binary_version": "0.10.0-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "icinga-php-thirdparty",
        "purl": "pkg:deb/ubuntu/icinga-php-thirdparty@0.10.0-1?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.10.0-1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "icingaweb2-module-reactbundle",
            "binary_version": "0.9.0-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "icingaweb2-module-reactbundle",
        "purl": "pkg:deb/ubuntu/icingaweb2-module-reactbundle@0.9.0-1?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.8.0-1.1",
        "0.9.0-1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "civicrm-common",
            "binary_version": "5.33.2+dfsg1-1ubuntu1+esm1"
          },
          {
            "binary_name": "civicrm-l10n",
            "binary_version": "5.33.2+dfsg1-1ubuntu1+esm1"
          },
          {
            "binary_name": "wordpress-civicrm",
            "binary_version": "5.33.2+dfsg1-1ubuntu1+esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:22.04:LTS",
        "name": "civicrm",
        "purl": "pkg:deb/ubuntu/civicrm@5.33.2+dfsg1-1ubuntu1+esm1?arch=source\u0026distro=esm-apps/jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "5.33.2+dfsg1-1",
        "5.33.2+dfsg1-1build1",
        "5.33.2+dfsg1-1ubuntu1",
        "5.33.2+dfsg1-1ubuntu1+esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "mediawiki",
            "binary_version": "1:1.35.6-1ubuntu0.1~esm1"
          },
          {
            "binary_name": "mediawiki-classes",
            "binary_version": "1:1.35.6-1ubuntu0.1~esm1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:Pro:22.04:LTS",
        "name": "mediawiki",
        "purl": "pkg:deb/ubuntu/mediawiki@1:1.35.6-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1:1.35.3-1",
        "1:1.35.4-1",
        "1:1.35.5-1",
        "1:1.35.5-1ubuntu1",
        "1:1.35.5-1ubuntu2",
        "1:1.35.5-1ubuntu3",
        "1:1.35.6-1",
        "1:1.35.6-1ubuntu0.1~esm1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "icinga-php-thirdparty",
            "binary_version": "0.12.1+ds-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "icinga-php-thirdparty",
        "purl": "pkg:deb/ubuntu/icinga-php-thirdparty@0.12.1+ds-1?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.11.0-2",
        "0.12.0+ds-1",
        "0.12.1+ds-1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "icingaweb2-module-reactbundle",
            "binary_version": "0.9.0-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "icingaweb2-module-reactbundle",
        "purl": "pkg:deb/ubuntu/icingaweb2-module-reactbundle@0.9.0-1?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.9.0-1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "icinga-php-thirdparty",
            "binary_version": "0.12.1+ds-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "icinga-php-thirdparty",
        "purl": "pkg:deb/ubuntu/icinga-php-thirdparty@0.12.1+ds-1?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.12.1+ds-1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "icingaweb2-module-reactbundle",
            "binary_version": "0.9.0-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "icingaweb2-module-reactbundle",
        "purl": "pkg:deb/ubuntu/icingaweb2-module-reactbundle@0.9.0-1?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.9.0-1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "icinga-php-thirdparty",
            "binary_version": "0.14.0+ds-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "icinga-php-thirdparty",
        "purl": "pkg:deb/ubuntu/icinga-php-thirdparty@0.14.0+ds-1?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.12.1+ds-1",
        "0.13.1+ds-1",
        "0.14.0+ds-1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "icingaweb2-module-reactbundle",
            "binary_version": "0.9.0-1build1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "icingaweb2-module-reactbundle",
        "purl": "pkg:deb/ubuntu/icingaweb2-module-reactbundle@0.9.0-1build1?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.9.0-1",
        "0.9.0-1build1"
      ]
    }
  ],
  "aliases": [],
  "details": "Guzzle, an extensible PHP HTTP client. `Authorization` and `Cookie` headers on requests are sensitive information. In affected versions on making a request which responds with a redirect to a URI with a different port, if we choose to follow it, we should remove the `Authorization` and `Cookie` headers from the request, before containing. Previously, we would only consider a change in host or scheme. Affected Guzzle 7 users should upgrade to Guzzle 7.4.5 as soon as possible. Affected users using any earlier series of Guzzle should upgrade to Guzzle 6.5.8 or 7.4.5. Note that a partial fix was implemented in Guzzle 7.4.2, where a change in host would trigger removal of the curl-added Authorization header, however this earlier fix did not cover change in scheme or change in port. An alternative approach would be to use your own redirect middleware, rather than ours, if you are unable to upgrade. If you do not require or expect redirects to be followed, one should simply disable redirects all together.",
  "id": "UBUNTU-CVE-2022-31091",
  "modified": "2026-05-27T10:02:26Z",
  "published": "2022-06-27T22:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2022-31091"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/guzzle/guzzle/security/advisories/GHSA-q559-8m2m-g699"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/guzzle/guzzle/commit/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2022-31091"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2022-31091"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…