Skip to content
Heist/ feed
Back to feed
High

guzzle — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2022-29248

Guzzle is a PHP HTTP client. Guzzle prior to versions 6.5.6 and 7.4.3 contains a vulnerability with the cookie middleware. The vulnerability is that it is not checked if the cookie domain equals the domain of the server which sets the cookie via the Set-Cookie header, allowing a malicious server to set cookies for unrelated domains. The cookie middleware is disabled by default, so most library consumers will not be affected by this issue. Only those who manually add the cookie middleware to the handler stack or construct the client with ['cookies' => true] are affected. Moreover, those who do not use the same Guzzle client to call multiple domains and have disabled redirect forwarding are not affected by this vulnerability. Guzzle versions 6.5.6 and 7.4.3 contain a patch for this issue. As a workaround, turn off the cookie middleware.

Products
guzzle
Affected versions
7.13.1-1, 7.15.1-1, 7.15.2-1, 7.15.3-1, 7.4.5-1, 7.9.2-0.1, 7.9.2-0.1build1
Fixed versions
Not specified
CVEs
CVE-2022-29248
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:00 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-29248

core-osv · Original source

Published 25 May 2022, 18:15 UTC

Guzzle is a PHP HTTP client. Guzzle prior to versions 6.5.6 and 7.4.3 contains a vulnerability with the cookie middleware. The vulnerability is that it is not checked if the cookie domain equals the domain of the server which sets the cookie via the Set-Cookie header, allowing a malicious server to set cookies for unrelated domains. The cookie middleware is disabled by default, so most library consumers will not be affected by this issue. Only those who manually add the cookie middleware to the handler stack or construct the client with ['cookies' => true] are affected. Moreover, those who do not use the same Guzzle client to call multiple domains and have disabled redirect forwarding are not affected by this vulnerability. Guzzle versions 6.5.6 and 7.4.3 contain a patch for this issue. As a workaround, turn off the cookie middleware.

osv:UBUNTU-CVE-2022-29248

guzzle

Fixed versions: Not specified

guzzle

Fixed versions: Not specified

guzzle

Fixed versions: Not specified

guzzle

Fixed versions: Not specified

Complete source record
{
  "id": "855a3c86b91981f202ebc829686c821d65befd7c4203ff470b724339028cb8af",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-29248",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-29248",
    "summary": "Guzzle is a PHP HTTP client. Guzzle prior to versions 6.5.6 and 7.4.3 contains a vulnerability with the cookie middleware. The vulnerability is that it is not checked if the cookie domain equals the domain of the server which sets the cookie via the Set-Cookie header, allowing a malicious server to set cookies for unrelated domains. The cookie middleware is disabled by default, so most library consumers will not be affected by this issue. Only those who manually add the cookie middleware to the handler stack or construct the client with ['cookies' => true] are affected. Moreover, those who do not use the same Guzzle client to call multiple domains and have disabled redirect forwarding are not affected by this vulnerability. Guzzle versions 6.5.6 and 7.4.3 contain a patch for this issue. As a workaround, turn off the cookie middleware.",
    "evidence": "osv:UBUNTU-CVE-2022-29248",
    "products": [
      {
        "name": {
          "value": "guzzle",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.4.5-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "guzzle",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.9.2-0.1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "guzzle",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.9.2-0.1build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "7.13.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "7.15.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "7.15.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "7.15.3-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "guzzle",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.9.2-0.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.9.2-0.1build1",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2022-29248",
      "aliases": [
        "UBUNTU-CVE-2022-29248"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "guzzle",
            "purl": "pkg:deb/ubuntu/guzzle?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "7.4.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29248.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-guzzlehttp-guzzle",
                "binary_version": "7.4.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "guzzle",
            "purl": "pkg:deb/ubuntu/guzzle?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "7.9.2-0.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29248.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-guzzlehttp-guzzle",
                "binary_version": "7.9.2-0.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "guzzle",
            "purl": "pkg:deb/ubuntu/guzzle?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "7.9.2-0.1build1",
            "7.13.1-1",
            "7.15.1-1",
            "7.15.2-1",
            "7.15.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29248.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-guzzlehttp-guzzle",
                "binary_version": "7.15.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "guzzle",
            "purl": "pkg:deb/ubuntu/guzzle?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "7.9.2-0.1",
            "7.9.2-0.1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-29248.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "php-guzzlehttp-guzzle",
                "binary_version": "7.9.2-0.1build1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:21.407272949Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-29248"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-29248",
        "https://github.com/guzzle/guzzle/security/advisories/GHSA-cwmx-hcrq-mhc3",
        "https://github.com/guzzle/guzzle/commit/74a8602c6faec9ef74b7a9391ac82c5e65b1cdab",
        "https://github.com/guzzle/guzzle/pull/3018",
        "https://www.drupal.org/sa-core-2022-010",
        "https://www.cve.org/CVERecord?id=CVE-2022-29248"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-29248",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 355395,
  "published_at": "2022-05-25T18:15:00+00:00"
}